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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x28], eax
mov eax, esi
mov byte [ebx + 0x84], al
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
lea eax, [ebx + 0x78]
mov dword [esp], eax
call fcn.00404340
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x20]
add eax, dword [ebx + 0x18]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
add eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x28]
add eax, dword [ebx + 0x14]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
add eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.00419a70
mov edx, dword [eax + 4]
test esi, 0xd
mov dword [esp + 0x30], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jne 0x417b62
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0xc]
sub edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
add edx, dword [ebx + 0x14]
add eax, edx
mov dword [esp + 0x38], eax
test esi, 0x32
jne 0x417b82
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x10]
sub edx, eax
add eax, dword [ebx + 0x18]
add eax, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
movzx edx, byte [ebx + 0x85]
lea eax, [esp + 0x30]
call fcn.00416ba0
lea eax, [esp + 0x30]
mov edx, ebx
call fcn.00416b00
mov eax, dword [ebx + 0x40]
cmp dword [esp + 0x38], eax
jle 0x417baa
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x44]
cmp dword [esp + 0x3c], eax
jle 0x417bb7
mov dword [esp + 0x3c], eax
test byte [ebx + 0x2c], 0x80
je 0x417bf4
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [ebx + 0x54]
mov ebp, dword [ebx + 0x50]
mov edx, ecx
imul eax, edi
imul edx, ebp
cmp eax, edx
jge 0x417be0
cdq
idiv ebp
mov ecx, eax
mov dword [esp + 0x3c], eax
mov ebp, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x58]
imul edi, ebp
imul eax, ecx
cmp edi, eax
jg 0x417d30
test esi, 1
je 0x417ca0
test byte [ebx + 0x7a], 0x10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], ecx
mov eax, ecx
je 0x417d19
test esi, 2
je 0x417c54
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
add edx, eax
sub ecx, eax
test byte [ebx + 0x7a], 0x10
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x18], ecx
jne 0x417c4c
mov eax, ecx
sub eax, dword [ebx + 0x34]
cdq
idiv dword [ebx + 0x4c]
sub ecx, edx
mov dword [ebx + 0x18], ecx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, 0x10
je 0x417d40
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x3c]
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
sub ecx, edx
sub ecx, dword [esp + 0x24]
test byte [ebx + 0x7a], 0x10
mov dword [ebx + 0x18], ecx
jne 0x417c4c
mov eax, ecx
sub eax, dword [ebx + 0x34]
cdq
idiv dword [ebx + 0x4c]
sub ecx, edx
mov dword [ebx + 0x18], ecx
jmp 0x417c4c
test esi, 4
je 0x417ce0
mov eax, dword [esp + 0x30]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
sub ecx, dword [esp + 0x2c]
test byte [ebx + 0x7a], 0x10
mov dword [ebx + 0x14], ecx
jne 0x417c1a
mov eax, ecx
sub eax, dword [ebx + 0x30]
cdq
idiv dword [ebx + 0x48]
sub ecx, edx
mov dword [ebx + 0x14], ecx
jmp 0x417c1a
test esi, 8
je 0x417c1a
mov eax, dword [esp + 0x38]
mov edx, eax
shr edx, 0x1f
add eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
add edx, eax
sub eax, dword [esp + 0x28]
add edx, dword [esp + 0x2c]
test byte [ebx + 0x7a], 0x10
mov dword [ebx + 0xc], edx
mov ecx, eax
mov dword [ebx + 0x14], eax
jne 0x417c1a
sub eax, dword [ebx + 0x30]
cdq
idiv dword [ebx + 0x48]
mov eax, ecx
sub eax, edx
mov dword [ebx + 0x14], eax
jmp 0x417c1a
cdq
idiv ebp
mov dword [esp + 0x38], eax
jmp 0x417bf4
and esi, 0x20
je 0x417c4c
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
mov eax, dword [esp + 0x34]
sar ecx, 1
add eax, ecx
add eax, edx
mov dword [ebx + 0x10], eax
jmp 0x417c7a