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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov ebx, dword [esp + 0x78]
push ebx
call fcn.10058170
add esp, 4
mov ecx, dword [ebx + 0xc]
cmp ecx, edx
ja 0x1002fcc4
mov edi, dword [esp + 0x7c]
lea esi, [esp + 4]
mov ebp, dword [0x1017e714]
sub edx, ecx
add eax, ecx
mov ecx, dword [ebx + 0x38]
push edx
push eax
push edi
push dword [ebx + 0x34]
push esi
call dword [ecx + 0x10]
add esp, 0x14
cmp byte [esp + 4], 5
je 0x1002fb16
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp cl, 4
jne 0x1002fb1f
mov dword [esp], eax
mov eax, dword [ebp]
cmp eax, 1
ja 0x1002facb
mov eax, dword [0x1017d924]
mov al, byte [eax + 8]
movzx ecx, al
lea edx, [ecx - 1]
cmp edx, 2
jae 0x1002fac7
movzx eax, al
push eax
mov eax, dword [0x1017d924]
push dword [eax]
call fcn.1008c89d
add esp, 8
test al, al
je 0x1002facb
mov eax, dword [0x1017d924]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x1002fcd0
mov edx, dword [eax + 0x1c]
mov ebp, dword [eax + 0x24]
mov edi, dword [eax + 0x28]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], edi
add eax, 0x1c
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov edx, esp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], fcn.100db900
mov dword [esp + 4], 0x10107674
mov dword [esp + 8], 2
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x10106db0
lea ecx, [esp + 0x1c]
push ecx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.100779c8
add esp, 0xc
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
movsd xmm0, qword [esp + 0x54]
movsd qword [esp + 0x48], xmm0
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x1017d924]
push dword [eax]
call fcn.1008cd25
add esp, 8
mov edi, dword [esp + 0x7c]
mov ebp, dword [0x1017e714]
jmp 0x1002facb
test ecx, ecx
jne 0x1002fafe
mov eax, dword [esp]
add dword [ebx + 0xc], eax
push ebx
call fcn.10058170
add esp, 4
cmp edx, dword [ebx + 0xc]
je 0x1002fb2a
cmp dword [esp], 0
je 0x1002fb47
push ebx
call fcn.10058170
add esp, 4
mov ecx, dword [ebx + 0xc]
cmp ecx, edx
jbe 0x1002f995
jmp 0x1002fcc4
push dword [0x1017d924]
call fcn.100ff6f5
add esp, 4
test al, al
jne 0x1002f9eb
jmp 0x1002facb
mov esi, dword [esp + 0x74]
mov byte [esi], 5
jmp 0x1002fb5f
mov esi, dword [esp + 0x74]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x1002fb5f
push ebx
call fcn.1006a5e3
add esp, 4
mov eax, dword [ebx + 0x38]
push edi
push dword [ebx + 0x34]
mov esi, dword [esp + 0x7c]
push esi
call dword [eax + 0x14]
add esp, 0xc
jmp 0x1002fb5f
mov eax, dword [ebp]
test eax, eax
je 0x1002fb69
mov esi, dword [esp + 0x74]
mov dword [esi + 4], 0
mov dword [esi], 0x1701
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [0x1017d920]
mov al, byte [edi + 8]
movzx ecx, al
lea edx, [ecx - 1]
cmp edx, 2
jae 0x1002fca6
movzx eax, al
push eax
push dword [edi]
call fcn.1008c89d
add esp, 8
test al, al
je 0x1002fb4e
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x1002fce1
lea edx, [ecx + 0x1c]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ecx
xor eax, eax
mov dword [esp + 0x40], eax
push ebx
call fcn.10058170
add esp, 4
mov ebp, edx
sub ebp, dword [ebx + 0xc]
lea eax, [ebx + 0x10]
push dword [ebx + 0x1c]
push eax
push esi
call fcn.10019bd5
add esp, 0xc
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov edi, esi
mov esi, dword [esp + 0x10]
mov ebx, dword [ebx + 0x14]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
lea edx, [edx + edx*4]
lea edx, [ebx + edx*8]
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*8]
lea esi, [esi + esi*4]
lea esi, [ebx + esi*8]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
xor esi, esi
push esi
push edi
call fcn.10042e56
add esp, 8
add eax, ebp
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], fcn.100db900
mov dword [esp + 4], 0x101076c0
mov dword [esp + 8], 2
mov dword [esp + 0x14], esi
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x10106db0
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x48]
lea esi, [esp + 0x5c]
push esi
call fcn.100779c8
add esp, 0xc
push esi
mov eax, dword [0x1017d920]
push dword [eax]
call fcn.1008cd25
add esp, 8
jmp 0x1002fb4e
test ecx, ecx
je 0x1002fb4e
push edi
call fcn.100ff6f5
add esp, 4
test al, al
jne 0x1002fb81
jmp 0x1002fb4e
push 0x101087c0
push edx
push ecx
call fcn.10101600
push 0x1010774c
push 0x22
push 0x10106d54
call fcn.10101180
push 0x1010775c
jmp 0x1002fcd5