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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
fldz
push ebx
fst qword [esp + 0x80]
push esi
fldz
xor esi, esi
fst dword [esp + 0x14]
push edi
mov edi, dword [ebp + 0x14]
fst dword [esp + 0x10]
fxch st(1)
push esi
mov dword [esp + 0x40], esi
fst qword [esp + 0x7c]
fst qword [esp + 0x84]
push edi
fstp qword [esp + 0x88]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x1c], esi
fstp dword [esp + 0x24]
mov dword [esp + 0x60], esi
call fcn.00402780
add esp, 8
test eax, eax
jne 0x405837
lea eax, [esi - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x88]
fsub qword [0x41f700]
call fcn.0040ab70
mov dword [0x42311c], eax
fld qword [esp + 0x88]
fadd qword [0x41f340]
push esi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x38]
fstp qword [esp + 0x90]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004030d0
mov ebx, dword [ebp + 0x10]
push edi
push ebx
call fcn.004010c0
add esp, 0x20
test eax, eax
jge 0x405904
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x4058e0
fldz
push 1
fst dword [esp + 0x10]
push edi
fstp dword [esp + 0x14]
call fcn.004029b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
mov edx, dword [edi + 4]
add edx, edx
add edx, edx
push edx
push eax
mov eax, dword [edi + 8]
push eax
call fcn.0040acb0
mov ecx, dword [edi + 8]
add esp, 0xc
mov dword [ecx], esi
mov dword [edi], 1
test esi, esi
jne 0x4062c1
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4058fb
push ebx
push eax
call fcn.004031b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x10]
lea edx, [esp + 0x24]
fsub qword [0x41f6f8]
push ebx
push edx
fstp dword [esp + 0x18]
call fcn.004031b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
lea eax, [esp + 0x40]
push edi
push eax
call fcn.004031b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
mov ecx, dword [ebx + 4]
add ecx, 2
push ecx
lea edx, [esp + 0x50]
mov edi, 1
push edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x2c], edi
call fcn.004029b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
fld dword [0x424288]
lea eax, [esp + 0x4c]
fld dword [esp + 0x1c]
push edi
fadd qword [0x41f6f0]
push eax
fsub qword [0x41f6e8]
fsubp st(1)
fstp dword [0x424288]
fld dword [esp + 0x24]
fsub qword [0x41f340]
fstp dword [esp + 0x24]
fldz
fst dword [esp + 0x14]
fstp dword [esp + 0x14]
call fcn.004029b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
mov ecx, dword [esp + 0x50]
lea edx, [ecx*4]
push edx
push eax
mov eax, dword [esp + 0x5c]
push eax
call fcn.0040acb0
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov dword [ecx], esi
mov dword [esp + 0x4c], edi
test esi, esi
jne 0x4062c1
lea edx, [esp + 0x30]
push 2
push edx
call fcn.004029b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
lea eax, [esp + 0x6c]
push 3
push eax
call fcn.004029b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
lea ecx, [esp + 0x40]
push ecx
call fcn.00401400
add esp, 4
and eax, 0x8000001f
jns 0x405a32
dec eax
or eax, 0xffffffe0
inc eax
cmp eax, 0x1f
jge 0x405ac0
mov edi, 0x1f
sub edi, eax
lea edx, [esp + 0x24]
push edi
push edx
mov dword [esp + 0x9c], edi
call fcn.00403c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
lea ecx, [esp + 0x40]
mov eax, 0xffffda72
push edi
push ecx
mov word [0x42511c], ax
call fcn.00403c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
fld qword [0x423170]
lea edi, [esi + 1]
fsub qword [str.__a_b_]
fcomp qword [0x41f6e0]
fnstsw ax
fld qword [str.__a_b_]
fadd qword [0x41f340]
fstp qword [str.__a_b_]
test ah, 0x41
jne 0x405acb
fld qword [0x41f6d8]
fstp qword [0x424cb8]
jmp 0x405acb
mov dword [esp + 0x94], 0
mov eax, dword [esp + 0x28]
add word [0x4242a0], di
mov dx, word [0x4242a0]
movsx ecx, dx
sub ecx, 0x540592fd
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x44]
dec eax
dec ecx
mov ebx, eax
sub ebx, ecx
mov edi, ebx
shl edi, 5
lea edx, [esp + 0x40]
push edi
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x64], ecx
call fcn.00403c00
lea eax, [esp + 0x48]
fld dword [0x424c3c]
push eax
fmul qword [0x41f6d0]
lea ecx, [esp + 0x30]
push ecx
fstp dword [0x424c3c]
call fcn.00401800
add esp, 0x10
test eax, eax
jl 0x405b77
jmp 0x405b40
add dword [esp + 0x14], 0x6fd51c4f
mov eax, dword [esp + 0x54]
inc dword [eax + ebx*4]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push ecx
call fcn.00404660
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00401800
add esp, 0x14
test eax, eax
jge 0x405b40
lea ecx, [esp + 0x40]
push edi
push ecx
call fcn.00401ef0
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
jle 0x4061d6
lea ecx, [ebx*4]
add edi, 0xffffffe0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x60], edi
jmp 0x405bb4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
lea esi, [edx + eax*4]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
mov ebx, dword [edx + eax*4]
mov dword [esp + 0x58], esi
cmp dword [esi], ebx
jb 0x405be2
mov edx, dword [esp + 0x54]
or ebx, 0xffffffff
mov dword [ecx + edx - 4], ebx
jmp 0x405e96
fld dword [0x424cac]
fld qword [0x425230]
fadd qword [0x41f6c8]
fucompp
fnstsw ax
fld qword [0x425230]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x425230]
fld dword [0x424cac]
fsub st(1)
fstp dword [0x424cac]
test ah, 0x44
jnp 0x405c43
fld dword [esp + 0x18]
fsub st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fsub qword [0x41f6c0]
fcomp qword [0x41f6b8]
fnstsw ax
test ah, 5
jp 0x405c43
mov eax, dword [0x425f7c]
mov ecx, dword [0x423210]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov edi, ebx
shr edi, 0x10
fadd dword [esp + 0x18]
fstp dword [esp + 0x1c]
dec dword [0x423210]
mov edx, dword [0x4231c8]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd dword [0x425264]
fsub qword [esp + 0x78]
fsubp st(1)
call fcn.0040ab70
mov dword [0x4231c8], eax
inc dword [esp + 0x14]
fld dword [0x425264]
xor edx, edx
fadd st(1)
fstp dword [0x425264]
mov ecx, dword [esi]
mov eax, ecx
div edi
mov edx, eax
imul edx, edi
sub ecx, edx
mov dx, word [0x4236fc]
movsx esi, dx
mov edx, 0x4c5fbc8b
sub edx, esi
mov esi, dword [str.:_W]
add edx, esi
mov esi, dword [esp + 0x64]
add esi, edx
mov edx, dword [esp + 0x58]
mov dword [str.:_W], esi
dec word [0x4236fc]
movzx esi, word [edx - 2]
inc word [0x42511c]
shl ecx, 0x10
or esi, ecx
movzx edx, bx
mov ecx, eax
imul ecx, edx
mov dword [esp + 0x10], ecx
mov cx, word [0x42511c]
mov edx, dword [esp + 0x64]
inc dword [esp + 0x64]
movsx ecx, cx
sub edx, ecx
cmp edx, 0xdbec6940
mov dword [esp + 0x18], eax
jl 0x405d48
mov ecx, dword [esp + 0x3c]
cmp ecx, 0x7d69dac6
mov ecx, dword [esp + 0x10]
jne 0x405d77
fld qword [esp + 0x80]
fadd qword [esp + 0x88]
fstp qword [esp + 0x88]
jmp 0x405d77
fld qword [esp + 0x80]
mov edx, dword [0x425ffc]
fsub qword [0x41f6b0]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fmulp st(1)
call fcn.0040ab70
mov ecx, dword [esp + 0x10]
mov dword [0x425ffc], eax
mov eax, dword [esp + 0x18]
cmp esi, ecx
jae 0x405d95
dec eax
add esi, ebx
mov dword [esp + 0x18], eax
cmp esi, ebx
jb 0x405d95
cmp esi, ecx
jae 0x405d91
add esi, ebx
dec eax
cmp esi, ebx
jae 0x405d86
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
sub esi, ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax - 0x79085b1c]
or eax, 0xffffffff
add dword [esp + 0x14], eax
cmp edx, 0x4659072d
jg 0x405dce
add dword [0x4231cc], eax
mov eax, dword [0x4231cc]
mov ecx, 0x68cac936
sub ecx, eax
mov word [0x4236ac], cx
xor edx, edx
mov eax, esi
div edi
mov ecx, eax
mov eax, dword [esp + 0x58]
mov edx, ecx
imul edx, edi
sub esi, edx
movzx edx, word [eax - 4]
shl esi, 0x10
or esi, edx
movzx edx, bx
mov eax, ecx
imul eax, edx
cmp esi, eax
jae 0x405e30
fadd qword [0x425228]
add esi, ebx
dec ecx
fstp qword [0x425228]
fld qword [0x425228]
fsubr qword [0x41f6a8]
fsub qword [0x41f6a0]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
cmp esi, ebx
jb 0x405e32
cmp esi, eax
jae 0x405e32
add esi, ebx
dec ecx
cmp esi, ebx
jae 0x405e23
jmp 0x405e32
fstp st(0)
mov eax, dword [esp + 0x3c]
add eax, 0xae9ad44
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fadd qword [0x4242c0]
fcomp qword [0x41f698]
fnstsw ax
test ah, 0x44
jp 0x405e64
mov edx, 0xffffad4b
mov word [0x423264], dx
jmp 0x405e70
fld qword [0x41f690]
fstp qword [0x424820]
mov eax, dword [esp + 0x18]
fld qword [0x41f688]
mov edx, dword [esp + 0x20]
shl eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x54]
mov dword [edx + ecx - 4], eax
fstp qword [0x423728]
mov ecx, edx
or ebx, 0xffffffff
fld dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
fadd qword [0x41f680]
mov edi, 1
add dword [ecx + eax - 4], edi
fstp dword [esp + 0x1c]
jmp 0x405eb7
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x54]
fldz
add dword [ecx + eax - 4], ebx
add dword [esp + 0x14], 0x56f9f545
fst dword [esp + 0xc]
lea eax, [esp + 0x30]
fstp dword [esp + 0xc]
push edi
push eax
call fcn.004029b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
mov ecx, dword [esp + 0x34]
lea edx, [ecx*4]
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.0040acb0
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov dword [ecx], esi
mov dword [esp + 0x30], edi
test esi, esi
jne 0x4062c1
mov ecx, dword [esp + 0x5c]
cmp ecx, edi
jge 0x405f21
xor eax, eax
jmp 0x405f29
mov edx, dword [esp + 0x48]
mov eax, dword [edx + ecx*4 - 4]
mov edx, dword [esp + 0x38]
fld qword [esp + 0x78]
fsub qword [0x41f678]
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + ecx*4]
mov edx, dword [esp + 0x38]
mov dword [edx + 4], ecx
fstp qword [esp + 0x78]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + eax - 4]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, eax
push ecx
call fcn.00403d50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4062c1
fldz
lea edx, [esp + 0x6c]
push edi
fst dword [esp + 0x10]
push edx
fstp dword [esp + 0x14]
call fcn.004029b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
lea ecx, [eax*4]
push ecx
push esi
push edx
call fcn.0040acb0
mov eax, dword [esp + 0x80]
add esp, 0xc
mov dword [eax], esi
mov dword [esp + 0x6c], edi
test esi, esi
jne 0x4062c1
mov ecx, dword [esp + 0x68]
cmp ecx, 2
jge 0x405fd0
xor eax, eax
jmp 0x405fd8
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ecx*4 - 8]
mov edx, dword [esp + 0x74]
mov dword [edx], eax
mov ax, word [0x42319c]
movsx edx, ax
mov eax, 0x30bcc0d
sub eax, edx
cmp ecx, edi
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fstp dword [esp + 0x18]
jge 0x406002
xor eax, eax
jmp 0x40600a
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ecx*4 - 4]
mov edx, dword [esp + 0x74]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x14]
mov edx, 0xaf6a7f53
sub edx, eax
movzx eax, word [0x4250e4]
imul edx, eax
mov word [0x4250e4], dx
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x6c]
mov dword [ecx + 8], eax
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00401800
add esp, 8
test eax, eax
jg 0x405eb3
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + ecx - 4]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00403d50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4062c1
fld qword [esp + 0x78]
mov dx, word [0x4230d4]
fsub qword [0x41f670]
movsx eax, dx
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fsubp st(1)
fld qword [esp + 0x78]
add word [0x4230d4], di
fsub qword [0x41f668]
fcompp
fnstsw ax
test ah, 1
jne 0x4060e1
fld qword [esp + 0x80]
fadd qword [0x41f660]
call fcn.0040ab70
mov dword [0x42480c], eax
fld qword [esp + 0x80]
fadd qword [0x41f340]
fstp qword [esp + 0x80]
mov ecx, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00403c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
mov edx, ecx
push edx
call fcn.00404660
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4062c1
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00402780
add esp, 8
test eax, eax
jge 0x4061b6
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004031b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00403c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062c1
mov dx, word [0x424870]
mov ecx, dword [0x42428c]
movsx eax, dx
add eax, 0x6a5e7fed
imul ecx, eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
mov dword [0x42428c], ecx
dec word [0x424870]
push eax
mov ecx, eax
push ecx
call fcn.004046e0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4062c1
mov eax, dword [esp + 0x54]
dec dword [ebx + eax - 4]
mov eax, dword [esp + 0x68]
sub dword [esp + 0x60], 0x20
sub eax, edi
sub ebx, 4
cmp eax, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x20], ebx
jg 0x405bb0
mov edi, dword [ebp + 8]
test edi, edi
je 0x4061f8
lea edx, [esp + 0x4c]
push edx
push edi
call fcn.004031b0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x14]
add esp, 8
imul ecx, dword [edx]
mov dword [edi], ecx
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4062c1
mov ax, word [0x424838]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x94]
cwde
add eax, 0xe02abe63
imul ecx, eax
push edx
lea eax, [esp + 0x28]
mov dword [esp + 0x40], ecx
push eax
call fcn.00401ef0
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.004031b0
mov dx, word [0x424c5c]
movsx eax, dx
add eax, 0x562662ec
mov dword [esp + 0x1c], eax
add esp, 0x10
fild dword [esp + 0xc]
fld qword [0x423770]
fsub qword [0x41f658]
fadd qword [0x41f650]
fcompp
fnstsw ax
test ah, 0x41
jp 0x4062a5
fld dword [0x4242a8]
mov cx, word [0x425238]
movsx edx, cx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fsubp st(1)
fsub qword [esp + 0x78]
call fcn.0040ab70
mov dword [esp + 0x3c], eax
fld dword [0x4242a8]
fadd qword [0x41f340]
fstp dword [0x4242a8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push 0
push edi
mov dword [edi], ecx
call fcn.00402780
add esp, 8
test eax, eax
jne 0x4062c1
mov dword [edi], 1
push 0
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00401ca0
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret