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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464643
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xf4
mov eax, dword [0x52eca4]
xor eax, ebp
mov dword [ebp - 0xac], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebp - 0xd4]
call fcn.00402590
mov eax, dword [ebp - 0xd4]
add eax, 0x84
push eax
mov ecx, dword [ebp - 0xd4]
add ecx, 0x80
push ecx
mov edx, dword [ebp - 0xd4]
add edx, 0x7c
push edx
mov eax, dword [ebp - 0xd4]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 0xd4]
add ecx, 8
call fcn.00404490
push eax
call fcn.0043e7a1
test eax, eax
jne 0x403259
mov ecx, dword [ebp - 0xd4]
add ecx, 8
push ecx
push 0x46b270
lea edx, [ebp - 0x9c]
push edx
call fcn.004043a0
add esp, 0xc
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xdc]
push ecx
mov ecx, dword [ebp - 0xd4]
add ecx, 8
call fcn.00404320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00404300
mov edx, dword [ebp - 0xd4]
add edx, 0x84
push edx
mov eax, dword [ebp - 0xd4]
add eax, 0x80
push eax
mov ecx, dword [ebp - 0xd4]
add ecx, 0x7c
push ecx
mov edx, dword [ebp - 0xd4]
add edx, 0x6c
push edx
mov ecx, dword [ebp - 0xd4]
add ecx, 8
call fcn.00404490
push eax
call fcn.0043e7a1
test eax, eax
jne 0x403259
xor eax, eax
jmp 0x403c12
mov ecx, dword [ebp - 0xd4]
add ecx, 0xc
call fcn.00404470
test eax, eax
je 0x4033dc
mov ecx, dword [ebp - 0xd4]
add ecx, 0xc
call fcn.00404490
push eax
call dword [0x4672b8]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x5c], 0
je 0x4032c9
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe0]
cmp dword [eax + 0x54], 0
ja 0x4032c0
mov ecx, dword [ebp - 0xe0]
cmp dword [ecx + 0x50], 0
jbe 0x4032c9
mov dword [ebp - 0x58], 0x3021
jmp 0x4032d0
mov dword [ebp - 0x58], 0x1021
push 0
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0xd4]
add ecx, 0xc
call fcn.00404490
push eax
mov ecx, dword [ebp - 0xd4]
add ecx, 0x8c
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax + 0x8c]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x403337
call dword [0x4672b0]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
push 0x1023
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [eax + 0x1c]
call edx
xor eax, eax
jmp 0x403c12
mov dword [ebp - 4], 1
push 0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [eax + 0x50]
push edx
mov ecx, dword [ebp - 0xd4]
add ecx, 0x8c
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax + 0x8c]
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ecx + 0x50]
push eax
mov ecx, dword [ebp - 0xd4]
add ecx, 0x8c
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x8c]
mov edx, dword [eax + 0x2c]
call edx
jmp 0x4033dc
mov dword [ebp - 4], 0xffffffff
jmp 0x4033f0
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx]
call eax
test eax, eax
jne 0x40340d
xor eax, eax
jmp 0x403c12
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 4]
call eax
test eax, eax
jne 0x40342b
xor eax, eax
jmp 0x403c12
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 8]
call eax
test eax, eax
jne 0x403449
xor eax, eax
jmp 0x403c12
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xd4]
cmp dword [ecx + 0x60], 0
je 0x40348f
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x403488
xor eax, eax
jmp 0x403c12
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0xd4]
cmp dword [eax + 0x64], 0
je 0x4034c0
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x4034b9
xor eax, eax
jmp 0x403c12
mov dword [ebp - 0x54], 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [eax + 0x28]
call edx
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00404470
test eax, eax
je 0x4034fa
lea ecx, [ebp - 0x18]
call fcn.00404490
mov dword [ebp - 0xe4], eax
jmp 0x403504
mov dword [ebp - 0xe4], 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00404470
push eax
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 0x78]
push edx
call dword [0x467500]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4035f7
call dword [0x4672b0]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x2f0c
jne 0x4035b7
cmp dword [ebp - 0x24], 0
jne 0x4035b7
mov eax, dword [ebp - 0xd4]
cmp dword [eax + 0x44], 0
je 0x40358d
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x40358b
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
jmp 0x4034c0
jmp 0x4035b7
mov ecx, dword [ebp - 0xd4]
call fcn.004030d0
test eax, eax
je 0x4035b7
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
jmp 0x4034c0
mov ecx, dword [ebp - 0x68]
push ecx
push 0x100f
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0xa4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xa4]
jmp 0x403c12
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 0x78]
push edx
call fcn.00404130
add esp, 8
test eax, eax
jne 0x403668
call dword [0x4672b0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
push 0x1010
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xa8]
jmp 0x403c12
cmp dword [ebp - 0x34], 0x197
je 0x40367a
cmp dword [ebp - 0x34], 0x191
jne 0x4036c9
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ecx + 0x5c]
call fcn.00451ac0
mov dword [ebp - 0xe8], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 0x78]
push edx
call dword [0x467518]
cmp dword [ebp - 0x74], 0
jne 0x4036a1
cmp dword [ebp - 0x34], 0x197
jne 0x4037a5
mov ecx, dword [ebp - 0xd4]
add ecx, 0x14
call fcn.00404470
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x40374b
cmp dword [ebp - 0x28], 0
jne 0x40374b
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x40372e
mov dword [ebp - 0xb0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xb0]
jmp 0x403c12
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
jmp 0x4034c0
mov ecx, dword [ebp - 0xd4]
cmp dword [ecx + 0x3c], 0
je 0x403760
mov dword [ebp - 0x1c], 1
jmp 0x4037a0
mov edx, dword [ebp - 0x34]
push edx
push 0x1011
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xb4]
jmp 0x403c12
jmp 0x4038d0
cmp dword [ebp - 0x34], 0x191
jne 0x40387e
mov ecx, dword [ebp - 0xd4]
add ecx, 0x1c
call fcn.00404470
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x403827
cmp dword [ebp - 0x54], 0
jne 0x403827
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x40380a
mov dword [ebp - 0xb8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xb8]
jmp 0x403c12
mov dword [ebp - 0x54], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
jmp 0x4034c0
mov ecx, dword [ebp - 0xd4]
cmp dword [ecx + 0x40], 0
je 0x40383c
mov dword [ebp - 0x1c], 1
jmp 0x40387c
mov edx, dword [ebp - 0x34]
push edx
push 0x1011
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xbc]
jmp 0x403c12
jmp 0x4038d0
cmp dword [ebp - 0x34], 0xc8
je 0x4038d0
cmp dword [ebp - 0x34], 0xce
je 0x4038d0
mov ecx, dword [ebp - 0x34]
push ecx
push 0x1011
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [eax + 0x20]
call edx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xc0]
jmp 0x403c12
cmp dword [ebp - 0x1c], 0
je 0x403954
mov dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x2c]
call eax
test eax, eax
je 0x40390e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
jmp 0x4034c0
cmp dword [ebp - 0x80], 0
je 0x403930
mov ecx, dword [ebp - 0x80]
push ecx
push 0x1024
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xc4]
jmp 0x403c12
push 0x100c
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x78]
push eax
call fcn.00404150
add esp, 8
test eax, eax
je 0x4039bd
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x40]
call eax
push 0x1014
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x38]
call eax
call dword [0x4672d4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ecx + 0x5c]
call fcn.00451ac0
mov dword [ebp - 0xec], esp
mov dword [ebp - 0x10], esp
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 0x5c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx + 0x78]
push edx
call dword [0x467518]
test eax, eax
jne 0x403a8d
call dword [0x4672b0]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
push eax
push 0x1012
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x1c]
call eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xc8]
jmp 0x403c12
cmp dword [ebp - 0x44], 0
je 0x403b9f
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x48]
call eax
test eax, eax
jne 0x403ada
mov dword [ebp - 0xcc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xcc]
jmp 0x403c12
mov ecx, dword [ebp - 0x44]
xor edx, edx
add ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
adc eax, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0xd4]
fldz
fcomp qword [ecx + 0x48]
fnstsw ax
test ah, 5
jp 0x403b9f
call dword [0x4672d4]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], 0
fild qword [ebp - 0xf4]
fstp qword [ebp - 0x98]
fild qword [ebp - 0x40]
fdiv qword [ebp - 0x98]
fstp qword [ebp - 0x90]
mov edx, dword [ebp - 0xd4]
fld qword [edx + 0x48]
fcomp qword [ebp - 0x90]
fnstsw ax
test ah, 5
jp 0x403b9f
fld qword [ebp - 0x90]
fmul qword [ebp - 0x98]
mov eax, dword [ebp - 0xd4]
fdiv qword [eax + 0x48]
fsub qword [ebp - 0x98]
fnstcw word [ebp - 0xf6]
movzx eax, word [ebp - 0xf6]
or eax, 0xc00
mov dword [ebp - 0xfc], eax
fldcw word [ebp - 0xfc]
fistp qword [ebp - 0x104]
fldcw word [ebp - 0xf6]
mov ecx, dword [ebp - 0x104]
push ecx
call dword [0x4672c4]
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0x50]
add eax, dword [edx + 0x50]
mov ecx, dword [ebp - 0x4c]
adc ecx, dword [edx + 0x54]
push ecx
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd4]
mov edx, dword [eax + 0x44]
call edx
cmp dword [ebp - 0x44], 0
je 0x403bf3
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
je 0x403a13
mov dword [ebp - 0xd0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404300
mov eax, dword [ebp - 0xd0]
lea esp, [ebp - 0x114]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xac]
xor ecx, ebp
call fcn.0044dcd8
mov esp, ebp
pop ebp
ret