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

Disassembly:
mov eax, 0x2058
call fcn.00487230
cmp dword [0x5f9320], 0
mov eax, dword [esp + 0x205c]
push ebx
push ebp
push esi
push edi
je 0x418668
mov dword [0x5f9324], 1
cmp dword [0x4f9e6c], 0
je 0x418bb0
cmp dword [0x7ec5b0], 0
mov esi, 1
mov dword [0x913078], esi
je 0x41869d
test eax, eax
jne 0x418692
call fcn.004307b0
mov dword [0x4f9e88], esi
jmp 0x418bb0
test eax, eax
jne 0x418bb0
mov esi, dword [0x902a44]
xor edi, edi
cmp esi, edi
je 0x4186ba
push edi
call fcn.00448fc0
add esp, 4
mov eax, dword [0x4f94a8]
push 0x26f70
push edi
push eax
call fcn.00487bc0
add esp, 0xc
call fcn.0043d110
cmp dword [0x4f9e78], edi
je 0x41872a
cmp dword [0x4f9ea8], edi
je 0x4186ea
mov eax, 0x91284c
jmp 0x418703
cmp dword [0x91238c], edi
je 0x4186f9
mov eax, 0x91244c
jmp 0x418703
push 1
call fcn.0045dd00
add esp, 4
mov ecx, dword [0x4f94a8]
mov edx, dword [0x4f9ec4]
push edi
push ecx
push 0x4fd274
push eax
push 0x18
push 0xc
push 0x1c
push 0x49
push edx
push 3
call fcn.00415a50
add esp, 0x28
push 0x400
lea eax, [esp + 0x46c]
push edi
push eax
call fcn.00487bc0
mov ecx, dword [0x4f9ec0]
add esp, 0xc
push ecx
lea edx, [esp + 0x46c]
push 0x4fd674
push edx
call fcn.004842f0
add esp, 0xc
cmp byte [esp + 0x468], 0
lea eax, [esp + 0x468]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
je 0x418bb0
lea ecx, [ecx]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x468]
mov ebp, ebx
sub ebp, ecx
push 0x4c72d0
push ebx
mov dword [esp + 0x30], ebp
call fcn.00483f10
push 0x400
lea edx, [esp + 0x74]
push 0
push edx
mov edi, eax
call fcn.00487bc0
add esp, 0x14
test edi, edi
je 0x4187cd
mov eax, edi
sub eax, ebx
push eax
lea ecx, [esp + 0x6c]
push ebx
push ecx
call fcn.004842f0
add esp, 0xc
jmp 0x4187df
lea edx, [esp + 0x68]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4187d5
xor edx, edx
test edi, edi
setne dl
push 0x4fba74
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
mov eax, 0x4fd674
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x24]
push edx
call fcn.0043c390
mov esi, eax
lea eax, [esp + 0x78]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418814
sub eax, edx
cmp eax, esi
lea eax, [esp + 0x68]
jle 0x4188e9
push 0x400
push 0
push eax
call fcn.00487bc0
add esp, 0xc
push esi
lea ecx, [esp + 0x6c]
push ebx
push ecx
call fcn.004842f0
add esp, 0xc
cmp byte [esp + 0x68], 0
je 0x4188cd
lea esi, [esp + 0x68]
lea edi, [esp + 0x69]
mov cl, byte [edi]
test cl, cl
je 0x418882
movzx dx, byte [esi]
shl dx, 8
movzx eax, dx
movzx ecx, cl
or eax, ecx
push eax
call fcn.00484a2a
add esp, 4
test eax, eax
je 0x4188ab
add edi, 2
add esi, 2
jmp 0x4188ad
lea eax, [esp + 0x68]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418890
sub eax, edx
movsx edx, byte [esp + eax + 0x67]
push edx
call fcn.00483fe9
add esp, 4
test eax, eax
jne 0x4188b4
inc edi
inc esi
cmp byte [esi], 0
jne 0x418857
jmp 0x4188cd
lea eax, [esp + 0x68]
lea edx, [eax + 1]
jmp 0x4188c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4188c0
sub eax, edx
mov byte [esp + eax + 0x67], cl
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4188d4
sub eax, edx
add ebx, eax
mov dword [esp + 0x38], 0
jmp 0x418906
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4188f0
sub eax, edx
add ebx, eax
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x41890a
add ebx, 2
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x68]
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x418913
sub eax, esi
je 0x41895d
lea edi, [ebp*4 + 0x4fba74]
lea esi, [ebp*2 + 0x4fca74]
mov ax, word [esi]
mov edx, dword [edi]
mov word [esp + ecx*2 + 0x868], ax
mov dword [esp + ecx*4 + 0x1068], edx
lea eax, [esp + 0x68]
inc ecx
add esi, 2
add edi, 4
lea ebp, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x418950
sub eax, ebp
cmp ecx, eax
jb 0x41892c
mov eax, dword [0x4f9eb0]
mov eax, dword [eax*4 + 0x4f9ee0]
cmp eax, 1
jne 0x418980
mov eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
mov ebx, 0x181
sub ebx, eax
jmp 0x41898e
cmp eax, 2
jne 0x418997
mov ebx, 0x2b9
sub ebx, dword [esp + 0x2c]
cmp ebx, 0x49
mov dword [esp + 0x14], ebx
jge 0x4189a0
mov ebx, 0x49
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x18]
xor edi, edi
xor esi, esi
mov dword [esp + 0x34], edi
test ebp, ebp
jle 0x4189ea
push 0x4fba74
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
mov eax, 0x4fd674
call fcn.0043c390
mov eax, dword [esp + 0x50]
inc esi
add esp, 0x10
cmp esi, ebp
lea edi, [edi + eax + 9]
jl 0x4189b0
cmp edi, 0xaf
mov dword [esp + 0x34], edi
jge 0x418bb0
lea eax, [esp + 0x68]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4189f1
mov ecx, dword [esp + 0x28]
sub eax, edx
add eax, ecx
cmp dword [0x4f9ef8], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 0
jle 0x418b09
mov eax, 0x4f9f04
mov dword [esp + 0x30], eax
mov ebp, dword [eax]
mov edx, dword [eax - 8]
lea esi, [edx + ebp - 1]
cmp esi, dword [esp + 0x28]
jl 0x418ae9
cmp esi, dword [esp + 0x24]
jge 0x418ae9
mov ecx, dword [esp + 0x18]
sub esi, ebp
mov eax, esi
sub eax, dword [esp + 0x28]
inc eax
push eax
push ecx
call fcn.0043c460
mov edi, eax
add edi, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test ebp, ebp
jle 0x418aa3
fld qword [0x4d68c0]
lea esi, [esi*4 + 0x4fba78]
fld qword [0x4d6970]
mov edx, dword [esi]
shr edx, 0x17
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
test edx, edx
jge 0x418a8c
fadd qword [0x4d68c8]
fmul st(2)
fmul st(1)
call fcn.004880e0
add ebx, eax
add esi, 4
sub ebp, 1
jne 0x418a75
fstp st(1)
fstp st(0)
mov eax, dword [0x4f94a8]
push 0x390
push eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax - 4]
lea ecx, [eax + 4]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [0x4f9ec8]
push 1
push edx
add eax, 0x38
push eax
push edi
push ecx
lea edx, [esp + 0x78]
push 3
push edx
mov eax, ebx
call fcn.00434cb0
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
add esp, 0x28
mov ecx, dword [esp + 0x3c]
inc ecx
add eax, 0x2c
cmp ecx, dword [0x4f9ef8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
jl 0x418a22
mov ebp, dword [esp + 0x18]
push 0x4fba74
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
mov eax, 0x4fd674
call fcn.0043c390
mov eax, dword [0x4f9ea8]
mov ecx, dword [esp + 0x30]
add esp, 0x10
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [0x4f94a8]
lea edx, [ecx + 0x4fa26c]
mov ecx, dword [0x4f9ec8]
push edx
push eax
push ecx
add edi, 0x40
push edi
push 0
push ebp
call fcn.0043c460
add esp, 8
add eax, ebx
push eax
lea edx, [esp + 0x1084]
push edx
lea eax, [esp + 0x888]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.00435f90
lea eax, [esp + 0x90]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418b85
sub eax, edx
add dword [esp + 0x20], eax
cmp dword [esp + 0x38], 0
je 0x418b9e
add dword [esp + 0x20], 2
mov edx, dword [esp + 0x1c]
inc ebp
cmp byte [edx], 0
mov dword [esp + 0x18], ebp
jne 0x418780
xor ecx, ecx
mov dword [0x6da39c], ecx
cmp dword [0x5f9fe0], ecx
je 0x418bcf
mov eax, 1
mov dword [0x5f9fe4], eax
mov dword [0x5f9fe8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2058
ret