Function at 0x1007b230
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.100626bf
mov esi, dword [esp + 0x38]
add esp, 4
mov edi, eax
cmp dword [esi + 0x88], ebp
je 0x1007b270
mov eax, dword [esi + 0x80]
cmp eax, ebp
je 0x1007b270
push eax
call fcn.1006243d
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.10064e10
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 0x1007b2ee
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 0x1007b31e
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 0x1007b380
xor ecx, ecx
jmp 0x1007b38c
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 0x1007b39e
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 [0x100afe28]
fidiv dword [esp + 0x34]
call fcn.10096ec0
mov dword [esp + 0x34], eax
mov dword [esi + 0x44], eax
test eax, eax
jg 0x1007b3ec
xor eax, eax
jmp 0x1007b3ff
fild dword [esp + 0x14]
fmul qword [0x100b1160]
fidiv dword [esp + 0x34]
call fcn.10096ec0
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.100626bf
add esp, 4
cmp dword [esi + 0x64], 0
mov edi, eax
je 0x1007b469
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1007b469
push eax
call fcn.1006243d
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 0x1007b48a
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 0x1007b4f5
mov ecx, dword [esi + 0x2c]
push ecx
call fcn.100626bf
add esp, 4
cmp dword [esi + 0x7c], 0
mov edi, eax
je 0x1007b4d3
mov eax, dword [esi + 0x74]
test eax, eax
je 0x1007b4d3
push eax
call fcn.1006243d
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 0x1007b47d
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