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

Disassembly:
mov ecx, dword [0x5db520]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x418d01
sub esp, 0x7c
mov eax, dword [esp + 0x80]
test byte [eax], al
lea ecx, [eax + 0x38]
mov dword [esp + 0x78], ecx
mov dword [esp], ecx
call fcn.004720c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x88]
cmp edx, ecx
sete bl
xchg ebp, ebx
setl bl
xchg ebp, ebx
mov esi, dword [esp + 0x84]
cmp esi, eax
xchg edi, ebx
setb bl
xchg edi, ebx
and ebx, edi
or ebx, ebp
test bl, bl
jne 0x418b22
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x68], ecx
sar ecx, 0x1f
mov dword [esp + 0x64], ecx
lea ebp, [eax + 0x20]
mov dword [esp + 0x74], ebp
nop
mov edi, dword [esp + 0x78]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
call fcn.00472080
nop
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.004720c0
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x20]
sub edx, ebx
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x88]
mov esi, dword [esp + 0x2c]
sbb ebx, esi
mov esi, eax
mov eax, edx
mov edi, dword [esp + 0x68]
mul edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
imul eax, ebp
imul ebx, edi
add edx, ebx
add eax, edx
mov dword [esp + 0x60], eax
test esi, esi
setne dl
test ecx, ecx
setne bl
or edx, ebx
test dl, dl
je 0x418a5d
mov eax, dword [esp + 0x74]
mov dword [esp], eax
xor eax, eax
sub eax, esi
mov dword [esp + 4], eax
mov eax, 0
sbb eax, ecx
mov dword [esp + 8], eax
call fcn.004720e0
mov eax, dword [esp + 0x80]
lea ecx, [eax + 0x30]
mov dword [esp + 0x78], ecx
nop
mov dword [esp], ecx
call fcn.004720c0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test ecx, ecx
setne dl
test eax, eax
setne bl
or ebx, edx
test bl, bl
je 0x418abb
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x78]
mov dword [esp], edx
xor edx, edx
sub edx, eax
mov dword [esp + 4], edx
mov edx, 0
sbb edx, ecx
mov dword [esp + 8], edx
call fcn.004720e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x80]
movzx ebx, byte [edx + 7]
test bl, bl
jne 0x418b18
mov ebx, dword [0x5db520]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
mov ebp, dword [ebx + 0x18]
nop
inc dword [ebp + 0x7c]
mov ebp, dword [0x5bc830]
mov dword [esp + 0x70], ebp
mov esi, dword [0x5bc834]
mov dword [esp + 0x5c], esi
mov ebx, dword [ebx + 0x18]
mov dword [esp + 0x6c], ebx
xor edi, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x68], edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
xor edi, edi
jmp 0x418be1
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
jmp 0x418b26
add esp, 0x7c
ret
movzx esi, byte [edx + 5]
xchg esi, eax
test al, al
xchg esi, eax
je 0x418b8f
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.00460130
movsd xmm0, qword [0x51d700]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.00460090
mov ebp, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
add ebp, eax
mov eax, dword [esp + 0x48]
adc ebx, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
mov dword [esp], edx
mov edx, dword [esp + 0x30]
sub edx, eax
mov eax, dword [esp + 0x60]
sbb eax, ecx
sub edx, ebp
mov dword [esp + 4], edx
sbb eax, ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00418d10
add esp, 0x7c
ret
mov ebp, dword [esp + 0x54]
lea edi, [ebp + 1]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x68], edx
mov dword [esp + 0x58], ecx
mov ecx, eax
mov eax, ebx
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x6c]
cmp edi, esi
jge 0x418cb4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + edi*4]
test byte [eax], al
add eax, 0x958
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 8], ecx
call fcn.00419100
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp al, 1
ja 0x418c49
test al, al
jne 0x418c71
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x418bbb
cmp al, 2
je 0x418c53
cmp al, 3
jne 0x418c6c
mov ebx, dword [esp + 0x58]
add ecx, ebx
mov ebx, dword [esp + 0x68]
adc edx, ebx
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
jmp 0x418bbb
cmp al, 4
jne 0x418cea
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
lea eax, [0x5be100]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004720e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
adc ecx, edx
mov edx, dword [esp + 0x68]
mov ebx, eax
mov eax, ecx
mov ecx, dword [esp + 0x58]
jmp 0x418bbb
mov ebp, dword [ebx + 0x7c]
lea esi, [ebp - 1]
nop
mov edi, dword [0x5db520]
mov edi, dword fs:[edi]
mov edi, dword [edi]
mov dword [ebx + 0x7c], esi
cmp ebp, 1
jne 0x418cdd
movzx ebx, byte [edi + 0x69]
test bl, bl
je 0x418cdd
mov dword [edi + 8], 0xfffffade
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x58]
jmp 0x418b26
lea eax, [0x4f9a21]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00467a40
nop
call fcn.0046c6d0
jmp fcn.00418930