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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x34
mov ebx, ecx
mov dword [esp + 0x14], ebp
call fcn.10057386
mov esi, dword [esp + 0x38]
add esp, 4
mov edi, eax
cmp dword [esi + 0x88], ebp
je 0x1006fde0
mov eax, dword [esi + 0x80]
cmp eax, ebp
je 0x1006fde0
push eax
call fcn.10057104
add esp, 4
mov dword [esi + 0x80], ebp
push 0x34
mov eax, edi
push ebp
push eax
mov dword [esi + 0x88], 1
mov dword [esi + 0x84], ebp
mov dword [esi + 0x80], edi
call fcn.10059a00
mov ecx, dword [ebx]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov edx, dword [ecx]
mov eax, dword [esi + 0x50]
mov edx, dword [edx + 0x14]
push ebp
push eax
call edx
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0x80]
push 0x34
push edx
call eax
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx + 8]
sub eax, dword [esp + 0x10]
je 0x1006fe5e
mov ecx, dword [ebx]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x18
lea eax, [esp + 0x20]
push eax
call edx
mov eax, dword [esi + 0x80]
mov eax, dword [eax + 0xc]
sub eax, dword [esp + 0x10]
je 0x1006fe8e
mov ecx, dword [ebx]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x14]
call eax
movzx eax, word [esp + 0x1a]
mov edi, dword [esi + 0x80]
movzx ecx, word [edi + 4]
movzx edx, word [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], eax
movzx eax, word [esp + 0x28]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
mov dword [esi + 0x10], edx
cdq
mov dword [esi], ecx
mov ecx, dword [esp + 0x20]
and edx, 7
add eax, edx
mov dword [esi + 0x14], ecx
movzx ecx, word [esp + 0x2a]
sar eax, 3
mov dword [esi + 0x24], eax
imul eax, ecx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], ecx
mov dword [esi + 0x28], eax
test ebp, ebp
jne 0x1006fef0
xor ecx, ecx
jmp 0x1006fefc
lea ecx, [ebp - 1]
imul ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x20]
test byte [esp + 0x1a], 0x20
mov dword [esi + 0x40], ecx
mov edx, 0x2c
jne 0x1006ff0e
mov edx, dword [edi + 0x14]
imul eax, ecx
mov dword [esi + 0x2c], edx
mov edi, dword [edi + 0x20]
mov dword [esi + 0x30], eax
add eax, edx
add eax, edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], edi
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov edi, dword [esi + 0x1c]
fild dword [esi + 0x40]
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], eax
mov dword [esi + 0x3c], eax
fmul qword [0x100a3df8]
fidiv dword [esp + 0x34]
call fcn.1008b9f0
mov dword [esp + 0x34], eax
mov dword [esi + 0x44], eax
test eax, eax
jg 0x1006ff5c
xor eax, eax
jmp 0x1006ff6f
fild dword [esp + 0x14]
fmul qword [0x100a5130]
fidiv dword [esp + 0x34]
call fcn.1008b9f0
mov ecx, dword [esi + 0x28]
imul ecx, edi
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esi + 0x48], eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esi + 0x80]
mov dword [esi + 0x4c], ecx
mov eax, dword [edx + 0x10]
shr eax, 2
xor ecx, ecx
mov dword [esi + 0x54], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10057386
add esp, 4
cmp dword [esi + 0x64], 0
mov edi, eax
je 0x1006ffd9
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1006ffd9
push eax
call fcn.10057104
add esp, 4
mov dword [esi + 0x5c], 0
mov ebp, 1
mov eax, edi
mov dword [esi + 0x64], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x5c], edi
test eax, eax
jne 0x1006fffa
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [ebx]
mov edx, dword [ecx]
lea edi, [esp + 0x10]
push edi
mov edi, dword [esi + 0x54]
add edi, edi
add edi, edi
push edi
push eax
mov eax, dword [edx + 0xc]
call eax
test byte [esp + 0x1a], 0x20
jne 0x10070065
mov ecx, dword [esi + 0x2c]
push ecx
call fcn.10057386
add esp, 4
cmp dword [esi + 0x7c], 0
mov edi, eax
je 0x10070043
mov eax, dword [esi + 0x74]
test eax, eax
je 0x10070043
push eax
call fcn.10057104
add esp, 4
mov dword [esi + 0x74], 0
mov eax, edi
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x74], edi
test eax, eax
je 0x1006ffed
mov esi, dword [esi + 0x2c]
mov ecx, dword [ebx]
mov edx, dword [ecx]
lea edi, [esp + 0x10]
push edi
push esi
push eax
mov eax, dword [edx + 0xc]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4