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

Disassembly:
sub esp, 0x354
fldz
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x18], ebp
fst dword [esp + 0x38]
fst dword [esp + 0x14]
xor eax, eax
fst dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x370]
fst dword [esp + 0x20]
fst dword [esp + 0x3c]
mov word [esp + 0x38], ax
fldz
lea edx, [esp + 0x54]
fst qword [esp + 0x24]
push edx
fst qword [esp + 0x40]
mov ebx, 1
fld dword [0x423248]
lea ecx, [esp + 0x54]
fadd qword [0x41f890]
push edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
fstp dword [0x423248]
mov dword [esp + 0x64], ecx
fxch st(1)
fstp dword [esp + 0x44]
fstp qword [esp + 0x44]
call fcn.00402f50
add esp, 8
test eax, eax
jl 0x407a67
mov eax, dword [edi + 8]
test byte [eax], bl
je 0x407a67
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00402a70
push ebp
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004025c0
push 0x300
lea ecx, [esp + 0x78]
push ebp
push ecx
call fcn.0040b830
mov edx, dword [esp + 0x38c]
push edx
call fcn.004010c0
add esp, 0x24
cmp eax, 0x29f
jle 0x4072ef
mov dword [esp + 0x14], 6
jmp 0x40731f
cmp eax, 0xef
jle 0x407300
mov dword [esp + 0x14], 5
jmp 0x40731f
cmp eax, 0x4f
jle 0x40730f
mov dword [esp + 0x14], 4
jmp 0x40731f
xor ecx, ecx
cmp eax, 0x17
setg cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x14], ecx
push esi
mov esi, dword [edi + 4]
add esi, ebx
mov ebx, dword [esp + 0x368]
push esi
push ebx
call fcn.00403670
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x4079e3
lea edx, [esp + 0x70]
push esi
push edx
call fcn.00403670
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x4079e3
lea eax, [esi + esi]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.00403670
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, ebp
jne 0x4079e3
mov ebp, dword [esp + 0x378]
test ebp, ebp
je 0x4073a4
cmp dword [ebp + 8], 0
je 0x4073a4
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
jmp 0x4074ec
fld qword [esp + 0x28]
lea edx, [esp + 0x30]
fmul qword [0x41f888]
push 1
push edx
fstp qword [esp + 0x30]
fldz
fstp qword [esp + 0x48]
fldz
fstp dword [esp + 0x48]
call fcn.00403670
mov esi, eax
add esp, 8
test esi, esi
jne 0x4073ff
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea ecx, [eax*4]
push ecx
push esi
push edx
call fcn.0040b830
mov eax, dword [esp + 0x44]
mov dword [eax], 1
add esp, 0xc
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], esi
test esi, esi
jne 0x4079ea
mov ecx, dword [edi + 4]
shl ecx, 6
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00403ee0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4079ea
lea eax, [esp + 0x30]
push edi
push eax
mov ecx, eax
push ecx
call fcn.00407100
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4079ea
test ebp, ebp
je 0x407461
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebp], edx
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov dx, word [0x425b44]
movsx eax, dx
cmp eax, 0x874594b4
jle 0x4074a0
fld qword [0x423288]
fld qword [0x425e38]
fadd qword [0x41f880]
fsubp st(1)
fstp qword [0x423288]
fld qword [0x425e38]
fadd qword [0x41f370]
fstp qword [0x425e38]
jmp 0x4074ec
mov cx, word [0x4231d4]
movsx edx, cx
mov eax, 0xf450fedc
sub eax, edx
cmp eax, 0x2f4ccbef
jle 0x4074ec
fld dword [esp + 0x1c]
mov cx, word [esp + 0x3c]
fadd qword [0x41f878]
movsx edx, cx
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
faddp st(1)
call fcn.0040b410
mov word [esp + 0x3c], ax
fld dword [esp + 0x1c]
fadd qword [0x41f370]
fstp dword [esp + 0x1c]
mov esi, dword [esp + 0x36c]
push edi
push esi
call fcn.00402f50
add esp, 8
test eax, eax
jl 0x407512
push edi
lea eax, [esp + 0x74]
push esi
push eax
call fcn.00407100
add esp, 0xc
jmp 0x407520
lea ecx, [esp + 0x70]
push esi
push ecx
call fcn.00404330
add esp, 8
fld dword [esp + 0x1c]
mov edx, dword [0x423204]
fsub qword [0x41f870]
mov dword [esp + 0x28], edx
lea eax, [esp + 0x48]
push eax
fiadd dword [esp + 0x2c]
lea edx, [esp + 0x34]
lea eax, [esp + 0x74]
fadd dword [0x425a78]
fstp dword [0x425a78]
inc dword [0x423204]
mov ecx, dword [esp + 0x18]
push ecx
push edi
push edx
push eax
call fcn.00403790
lea ecx, [esp + 0x44]
push ecx
push ebx
call fcn.00404330
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4079ea
fld dword [0x423210]
fsub qword [0x41f868]
call fcn.0040b410
mov dword [0x425e6c], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push eax
push edi
push ebx
call fcn.00404200
mov cx, word [0x423f40]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
movsx eax, cx
add eax, 0x8f2254e7
imul edx, eax
mov dword [esp + 0x30], edx
dec word [0x423f40]
add esp, 0x10
cmp ebx, 1
jle 0x4076ba
mov eax, dword [edi + 4]
dec ebx
mov ecx, ebx
mov ebp, 1
shl ebp, cl
inc eax
push eax
lea esi, [ebp + ebp*2]
lea esi, [esp + esi*4 + 0x68]
push esi
call fcn.00403670
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4079e3
movzx ecx, word [0x425f10]
lea edx, [esp + 0x70]
push edx
add ecx, 0x1b0cdea0
push esi
mov word [0x425f10], cx
call fcn.00404330
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4079e3
test ebx, ebx
jle 0x40764e
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
push ecx
push edi
push esi
push esi
call fcn.00403790
add esp, 0x14
sub ebx, 1
jne 0x407634
mov ecx, dword [esp + 0x18]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x4076ba
lea esi, [ebp + ebp*2]
lea esi, [esp + esi*4 + 0x64]
mov edx, dword [edi + 4]
inc edx
push edx
push esi
call fcn.00403670
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4079e3
lea eax, [esi - 0xc]
push eax
push esi
call fcn.00404330
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4079e3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
push edx
push edi
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.00403790
inc ebp
add esp, 0x14
add esi, 0xc
cmp ebp, ebx
jl 0x407666
movzx eax, word [0x425e08]
mov ecx, dword [esp + 0x370]
mov edx, dword [ecx + 4]
xor ebx, ebx
xor ebp, ebp
add eax, 0x32f2a23f
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebp
mov word [0x425e08], ax
fld1
mov cx, word [0x425f28]
mov edx, dword [0x425adc]
movsx eax, cx
sub eax, edx
cmp dword [esp + 0x1c], 0
mov word [0x425f28], ax
jne 0x407732
mov eax, dword [esp + 0x20]
mov ecx, eax
dec eax
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x407946
fld dword [0x4232e0]
mov dword [esp + 0x1c], 0x20
fsub dword [esp + 0x24]
fstp dword [0x4232e0]
fld qword [0x425f20]
mov edx, dword [esp + 0x370]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, dword [eax + edx*4]
mov ax, word [esp + 0x3c]
dec ecx
shr esi, cl
mov dword [esp + 0x1c], ecx
movsx ecx, ax
mov dword [esp + 0x40], ecx
and esi, 1
fild dword [esp + 0x40]
fsubp st(1)
fadd dword [0x423e74]
fmul dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [0x423e74]
fsub st(1)
fstp dword [0x423e74]
dec dword [esp + 0x3c]
fld qword [0x425f20]
fadd st(1)
fstp qword [0x425f20]
test esi, esi
jne 0x4077a5
cmp dword [esp + 0x28], esi
je 0x4076e8
mov edx, dword [0x425eec]
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fadd dword [0x425e34]
fsub dword [0x425a30]
fcomp qword [0x41f860]
fnstsw ax
fld dword [0x425a30]
fadd st(1)
fstp dword [0x425a30]
fld dword [0x425e34]
fsub st(1)
fstp dword [0x425e34]
test ah, 0x44
jp 0x407808
fld dword [esp + 0x24]
fsub qword [0x41f858]
fmul dword [0x425bec]
fstp dword [0x425bec]
fld dword [esp + 0x24]
fadd st(1)
fstp dword [esp + 0x24]
test esi, esi
jne 0x407836
cmp dword [esp + 0x28], 1
jne 0x407836
mov ecx, dword [esp + 0x14]
fstp st(0)
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x36c]
push ecx
push edi
push eax
push eax
call fcn.00403790
add esp, 0x14
jmp 0x4076e6
fld dword [0x425e68]
mov dword [esp + 0x28], 2
fadd qword [0x41f850]
fstp dword [0x425e68]
fld dword [esp + 0x24]
fadd qword [0x41f848]
fadd dword [0x425be8]
fcomp qword [0x41f840]
fnstsw ax
fld dword [0x425be8]
fsub st(1)
fstp dword [0x425be8]
fld dword [esp + 0x24]
fadd st(1)
fstp dword [esp + 0x24]
test ah, 0x41
jne 0x407899
fld qword [0x423188]
fadd qword [0x41f838]
fstp qword [0x423188]
jmp 0x4078bd
fld dword [0x425e10]
fadd qword [0x41f830]
call fcn.0040b410
mov dword [0x423268], eax
fld dword [0x425e10]
fadd st(1)
fstp dword [0x425e10]
mov eax, dword [esp + 0x18]
inc ebx
mov ecx, eax
sub ecx, ebx
shl esi, cl
or ebp, esi
cmp ebx, eax
jne 0x4076e8
mov esi, dword [esp + 0x14]
fstp st(0)
mov ebx, eax
test ebx, ebx
jle 0x4078fd
mov edi, edi
mov eax, dword [esp + 0x368]
lea edx, [esp + 0x48]
push edx
push esi
push edi
push eax
push eax
call fcn.00403790
add esp, 0x14
sub ebx, 1
jne 0x4078e0
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x36c]
push esi
lea ecx, [ebp + ebp*2]
push edi
lea edx, [esp + ecx*4 + 0x70]
push edx
push eax
call fcn.00403790
fld qword [0x4232e8]
fsubr qword [0x41f828]
add esp, 0x14
xor ebx, ebx
mov dword [esp + 0x28], 1
fmul dword [0x423834]
xor ebp, ebp
fstp dword [0x423834]
jmp 0x4076e6
mov ecx, dword [esp + 0x18]
fstp st(0)
mov esi, 1
rol esi, cl
test ebx, ebx
jle 0x4079c8
mov dword [esp + 0x20], ebx
jmp 0x407960
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x368]
lea ecx, [esp + 0x48]
push ecx
push edx
push edi
push ebx
push ebx
call fcn.00403790
fld qword [0x425ec0]
fsub qword [0x41f820]
add ebp, ebp
add esp, 0x14
fstp dword [0x425b58]
fld qword [0x425ec0]
fadd qword [0x41f370]
fstp qword [0x425ec0]
test ebp, esi
je 0x4079bf
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
push ecx
push edi
lea edx, [esp + 0x7c]
push edx
push ebx
call fcn.00403790
add esp, 0x14
sub dword [esp + 0x20], 1
jne 0x407960
jmp 0x4079cf
mov ebx, dword [esp + 0x368]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
push ecx
push edi
push ebx
call fcn.00404200
add esp, 0x10
mov ebp, dword [esp + 0x378]
mov esi, dword [esp + 0x18]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407a23
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x64]
mov edi, edx
push 0
push esi
call fcn.00403570
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407a10
pop esi
push 0
lea edx, [esp + 0x48]
lea eax, [esp + 0x70]
test ebp, ebp
je 0x407a4a
push edx
push eax
call fcn.00403570
mov eax, dword [esp + 0x18]
add esp, 0xc
pop edi
pop ebp
pop ebx
add esp, 0x354
ret
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.00403570
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop ebp
pop ebx
add esp, 0x354
ret
pop edi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x354
ret