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

Disassembly:
push 0xffffffffffffffff
push 0x412b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [ecx + 4]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x2c], ecx
jne 0x404742
mov ax, 2
jmp 0x404b70
mov al, byte [esp + 0x74]
mov edi, 0x413244
mov byte [esp + 0x54], al
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x50], edi
lea edx, [esp + 0x50]
mov dword [esp + 0x6c], ebx
push edx
call fcn.00403de0
mov esi, eax
cmp si, bx
je 0x404791
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x50], edi
call fcn.00405e30
mov ax, si
jmp 0x404b70
mov al, byte [esp + 0x74]
mov dword [esp + 0x34], ebx
mov byte [esp + 0x30], al
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x6c], 1
call fcn.00405980
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
jne 0x4047f0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004072d0
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x50], edi
call fcn.00405e30
mov ax, 7
jmp 0x404b70
mov ecx, dword [esp + 0x58]
cmp ecx, ebx
je 0x40480d
mov edx, dword [esp + 0x5c]
sub edx, ecx
test edx, 0xfffffffc
je 0x40480d
mov eax, 1
jmp 0x40480f
xor eax, eax
cmp eax, ebx
mov edi, eax
je 0x404adb
lea esi, [eax*4]
cmp esi, ebx
jle 0x404adb
cmp ecx, ebx
jne 0x404830
xor eax, eax
jmp 0x404839
mov eax, dword [esp + 0x5c]
sub eax, ecx
sar eax, 2
cmp edi, eax
ja 0x404adb
mov ebp, dword [esi + ecx - 4]
inc edi
add esi, 4
cmp ebp, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
je 0x404acf
mov eax, dword [esp + 0x1c]
push ebp
push eax
call fcn.004046d0
add esp, 8
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x404acb
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
push 1
push edx
lea ecx, [esp + 0x3c]
call fcn.00405e90
mov al, byte [esp + 0x74]
mov dword [esp + 0x44], ebx
mov byte [esp + 0x40], al
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [ebp + 0x6c]
mov byte [esp + 0x6c], 2
cmp eax, ebx
je 0x4048bc
mov ecx, dword [ebp + 0x70]
sub ecx, eax
test ecx, 0xfffffffc
je 0x4048bc
mov eax, 1
jmp 0x4048be
xor eax, eax
cmp eax, ebx
mov edx, eax
je 0x404a92
lea ebx, [eax*4]
jmp 0x4048d5
mov edx, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x14], 0
jle 0x404a8c
mov ecx, dword [ebp + 0x6c]
test ecx, ecx
jne 0x4048f0
xor eax, eax
jmp 0x4048f8
mov eax, dword [ebp + 0x70]
sub eax, ecx
sar eax, 2
cmp edx, eax
ja 0x404a8c
mov eax, dword [ebp + 0x6c]
inc edx
mov dword [esp + 0x24], edx
mov esi, dword [ebx + eax - 4]
add ebx, 4
test esi, esi
je 0x404a80
mov eax, dword [esi + 8]
test al, 1
jne 0x40492d
test al, 4
je 0x404929
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x40492d
test al, 8
je 0x40499f
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
call fcn.00407d2e
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0040823a
fld qword [0x413250]
fcomp st(1)
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x404971
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
dec eax
mov dword [esi + 4], edx
fstp st(0)
mov dword [esi + 0xc], eax
jmp 0x404990
fmul qword [0x413248]
call fcn.0040829c
cmp eax, 1
jl 0x404990
mov ecx, dword [esp + 0x10]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x40499f
mov dword [esp + 0x14], 6
mov al, byte [esi + 8]
mov edx, dword [esp + 0x74]
test al, 0xa
je 0x4049f3
test edx, edx
je 0x4049e2
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4049e2
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebp
call fcn.004120e0
add esp, 0xc
test eax, eax
jne 0x4049de
mov edx, dword [esp + 0x78]
mov eax, dword [esi]
cmp eax, edx
jne 0x4049de
dec dword [esi + 0x10]
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 0x10]
test eax, eax
jg 0x4049f3
mov eax, dword [esp + 0x14]
or al, 6
mov dword [esp + 0x14], eax
test byte [esi + 8], 4
je 0x404a44
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x404a44
test edx, edx
je 0x404a44
mov eax, dword [esp + 0x78]
test eax, eax
je 0x404a44
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebp
call fcn.004120e0
add esp, 0xc
test eax, eax
jne 0x404a44
mov eax, dword [esp + 0x78]
mov ecx, dword [esi]
cmp ecx, eax
jne 0x404a44
lea ecx, [esi + 4]
mov dword [esi + 0x14], 1
push ecx
call fcn.00407d2e
add esp, 4
mov eax, dword [esi + 8]
test al, 8
je 0x404b85
mov ecx, dword [esi + 0x10]
test ecx, ecx
jg 0x404a61
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x404b91
test eax, eax
je 0x404a80
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edx
push eax
push 1
push ecx
lea ecx, [esp + 0x4c]
call fcn.00405e90
mov esi, dword [esp + 0x20]
test ebx, ebx
jne 0x4048d1
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
call fcn.00404f70
test eax, eax
jne 0x404aad
mov ecx, dword [esp + 0x18]
call fcn.00404fe0
mov eax, dword [esp + 0x44]
mov byte [esp + 0x6c], 1
push eax
call fcn.004072d0
add esp, 4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x1c]
cmp esi, ebx
jne 0x404820
mov esi, dword [ebp + 4]
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x404b1d
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
cmp edi, ecx
mov eax, edi
je 0x404b00
mov edx, dword [esi]
cmp edx, dword [eax]
je 0x404b00
add eax, 4
cmp eax, ecx
jne 0x404af5
cmp eax, ecx
jne 0x404b13
mov ecx, dword [esi]
call fcn.00404fe0
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov eax, dword [ebp + 8]
add esi, 4
cmp esi, eax
jne 0x404aed
push ebp
call fcn.00405d60
mov esi, dword [esp + 0x30]
add esp, 4
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call fcn.004040d0
lea edx, [esp + 0x50]
mov ecx, esi
push edx
call fcn.004043e0
mov eax, dword [esp + 0x34]
push eax
call fcn.004072d0
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x38], ebx
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x58], 0x413244
call fcn.004072d0
add esp, 8
xor ax, ax
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x404a61
mov dword [esi + 8], 0
jmp 0x404a80