Function at 0x1002f520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10079c60
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1008f3a0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x1008f3a0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x40], edi
mov esi, edx
call fcn.100314e0
mov dword [esp + 0x20], eax
mov bl, 1
mov byte [eax + 0x2d], bl
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x78], eax
mov ecx, dword [esi]
cmp ecx, eax
je 0x1002f605
jmp 0x1002f595
xor eax, eax
mov dword [esp + 0x60], eax
mov eax, ecx
mov dword [esp + 0x64], 0xf
mov byte [esp + 0x50], 0
lea edi, [eax + 1]
jmp 0x1002f5b0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1002f5b0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.100014f0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], bl
call fcn.10030380
mov dword [eax], 0
mov byte [esp + 0x78], 0
cmp dword [esp + 0x64], 0x10
jb 0x1002f5f7
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100549f0
add esp, 4
mov ecx, dword [esi + 4]
add esi, 4
test ecx, ecx
jne 0x1002f593
mov edi, dword [esp + 0x40]
call fcn.100314e0
mov dword [esp + 0x14], eax
mov byte [eax + 0x2d], bl
mov eax, dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x14]
mov dword [eax], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax + 8], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x78], 2
cmp dword [edi + 0x60], ecx
jle 0x1002f6d5
mov edx, dword [edi + 0x5c]
or eax, 0xffffffff
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x60]
mov dword [esp + 0x34], eax
lea eax, [edi + 0x10]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
jmp 0x1002f667
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 0x10
jb 0x1002f672
mov eax, dword [eax + 4]
jmp 0x1002f675
add eax, 4
lea ecx, [esp + 0x38]
push ecx
lea esi, [esp + 0x48]
lea ebx, [esp + 0x34]
mov edi, eax
call fcn.1001c8b0
add esp, 4
test al, al
je 0x1002f6d5
mov edx, dword [esp + 0x28]
mov ecx, esi
push edx
lea esi, [esp + 0x50]
call fcn.10031750
add esp, 4
mov eax, esi
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 3
call fcn.10030380
mov dword [eax], 0
mov byte [esp + 0x78], 2
cmp dword [esp + 0x64], 0x10
jb 0x1002f663
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100549f0
add esp, 4
jmp 0x1002f663
mov edx, dword [esp + 0x14]
mov ebx, dword [edx]
lea edi, [esp + 0x10]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
test edi, edi
mov esi, dword [esp + 0x14]
je 0x1002f6f7
lea eax, [esp + 0x10]
cmp edi, eax
je 0x1002f6fc
call fcn.10055f58
cmp ebx, esi
je 0x1002f7ea
test edi, edi
jne 0x1002f70d
call fcn.10055f58
cmp ebx, dword [edi + 4]
jne 0x1002f717
call fcn.10055f58
add ebx, 0xc
mov ecx, ebx
lea eax, [esp + 0x1c]
call fcn.10030ff0
cmp eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
je 0x1002f786
mov edi, dword [eax + 0x20]
mov edx, 0x10
cmp dword [eax + 0x24], edx
jb 0x1002f749
mov ecx, dword [eax + 0x10]
jmp 0x1002f74c
lea ecx, [eax + 0x10]
mov esi, dword [ebx + 0x14]
mov eax, esi
cmp eax, esi
jae 0x1002f755
cmp esi, edi
mov eax, esi
jb 0x1002f75d
mov eax, edi
cmp dword [ebx + 0x18], edx
jb 0x1002f767
mov edx, dword [ebx + 4]
jmp 0x1002f76a
lea edx, [ebx + 4]
call fcn.10001040
test eax, eax
jne 0x1002f77e
cmp esi, edi
jb 0x1002f786
cmp esi, edi
setne al
test eax, eax
jl 0x1002f786
lea eax, [esp + 0x30]
jmp 0x1002f79a
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x38]
mov ecx, dword [eax]
test ecx, ecx
mov esi, dword [eax + 4]
mov edi, dword [esp + 0x20]
je 0x1002f7af
lea edx, [esp + 0x1c]
cmp ecx, edx
je 0x1002f7b4
call fcn.10055f58
cmp esi, edi
jne 0x1002f7d4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp eax, dword [ecx + 4]
jne 0x1002f7ca
call fcn.10055f58
push ebx
mov ebx, dword [esp + 0x44]
call fcn.1002f450
lea esi, [esp + 0x28]
call fcn.10031080
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
jmp 0x1002f6e7
mov byte [esp + 0x78], 0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
push esi
lea eax, [esp + 0x14]
push eax
mov edx, eax
push ecx
push edx
lea eax, [esp + 0x40]
push eax
mov edi, edx
call fcn.10030ce0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.100549f0
xor eax, eax
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
mov esi, ecx
push esi
lea edx, [esp + 0x40]
push edx
mov edi, ecx
call fcn.10030ce0
mov eax, dword [esp + 0x20]
push eax
call fcn.100549f0
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.1005574a
mov esp, ebp
pop ebp
ret