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

Disassembly:
sub esp, 0x34
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebp
push esi
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x50]
mov ebp, ecx
mov ecx, dword [ebp]
push edi
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push 0
push edx
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xc]
push eax
push 0x20
lea eax, [esp + 0x24]
push eax
call edx
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x1007b574
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10062448
add esp, 0x34
ret 4
push ebx
mov bx, word [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
test bl, 4
je 0x1007b5a6
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x10]
push edx
push 4
lea edx, [esp + 0x24]
push edx
call eax
mov edi, dword [esp + 0x38]
mov bx, word [esp + 0x28]
test bl, 0x10
je 0x1007b5cb
mov ecx, dword [ebp]
mov edx, dword [ecx]
lea edi, [esp + 0x10]
push edi
lea eax, [esi + 0x54]
push 4
push eax
mov eax, dword [edx + 0xc]
call eax
mov edi, dword [esp + 0x38]
mov bx, word [esp + 0x28]
jmp 0x1007b5ce
mov dword [esi + 0x54], edi
mov cx, word [esp + 0x24]
movzx eax, word [esp + 0x26]
movzx edx, cx
mov dword [esi], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 4], eax
movzx eax, bx
mov dword [esi + 0x14], edx
mov edx, 0xf3c
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
cmp cx, dx
jae 0x1007b617
mov edx, 0xed8
cmp cx, dx
jb 0x1007b610
mov edx, 0xfa0
cmp word [esp + 0x26], dx
je 0x1007b617
mov edx, 0x2400
jmp 0x1007b61c
mov edx, 0x12000
mov dword [esi + 0x10], edx
mov edx, 0xf6e
cmp cx, dx
jb 0x1007b630
mov dword [esi + 0x10], 0x48000
movzx ecx, word [esp + 0x2a]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
test al, 1
je 0x1007b64a
mov eax, 8
jmp 0x1007b650
and eax, 8
or eax, 0x10
mov dword [esi + 0x20], eax
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi + 0x24], eax
imul eax, ecx
mov dword [esi + 0x28], eax
test edi, edi
jne 0x1007b66d
xor ecx, ecx
jmp 0x1007b678
lea ecx, [edi - 1]
imul ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x3c]
mov dword [esi + 0x40], ecx
mov edx, 0x2c
test bl, 0x20
jne 0x1007b689
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
imul eax, ecx
mov dword [esi + 0x30], eax
add eax, edx
add eax, edi
mov dword [esi + 0x2c], edx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov edi, dword [esi + 0x1c]
fild dword [esi + 0x40]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esi + 0x3c], eax
fmul qword [0x100afe28]
fidiv dword [esp + 0x14]
call fcn.10096ec0
mov dword [esp + 0x14], eax
mov dword [esi + 0x44], eax
test eax, eax
jg 0x1007b6d9
xor eax, eax
jmp 0x1007b6ec
fild dword [esp + 0x18]
fmul qword [0x100b1160]
fidiv dword [esp + 0x14]
call fcn.10096ec0
mov ecx, dword [esi + 0x28]
imul ecx, edi
add ecx, ecx
mov dword [esi + 0x48], eax
add ecx, ecx
add ecx, ecx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
test byte [esp + 0x28], 0x20
mov dword [esi + 0x4c], eax
jne 0x1007b76f
mov ecx, dword [esp + 0x30]
push ecx
call fcn.100626bf
add esp, 4
cmp dword [esi + 0x7c], 0
mov edi, eax
je 0x1007b742
mov eax, dword [esi + 0x74]
test eax, eax
je 0x1007b742
push eax
call fcn.1006243d
add esp, 4
mov dword [esi + 0x74], 0
mov eax, 1
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], eax
mov eax, edi
mov dword [esi + 0x74], edi
test eax, eax
je 0x1007b804
mov ecx, dword [ebp]
mov edx, dword [ecx]
lea edi, [esp + 0x10]
push edi
mov edi, dword [esp + 0x34]
push edi
push eax
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [esi + 0x54]
xor ecx, ecx
lea ebx, [esi + 0x54]
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 0x1007b7ad
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1007b7ad
push eax
call fcn.1006243d
add esp, 4
mov dword [esi + 0x5c], 0
mov eax, 1
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], eax
mov eax, edi
mov dword [esi + 0x5c], edi
test eax, eax
je 0x1007b804
mov ecx, dword [ebp]
mov edx, dword [ecx]
lea edi, [esp + 0x10]
push edi
mov edi, dword [ebx]
add edi, edi
add edi, edi
push edi
push eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, 0xed8
cmp word [esp + 0x24], cx
ja 0x1007b82f
mov edx, dword [ebx]
push edx
call fcn.100626bf
add esp, 4
push 1
push 1
add esi, 0x68
push eax
mov ecx, esi
call fcn.10078120
mov esi, dword [esi]
test esi, esi
jne 0x1007b81c
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10062448
add esp, 0x34
ret 4
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebx]
push edx
push esi
call eax
mov ecx, dword [esp + 0x40]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.10062448
add esp, 0x34
ret 4