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

Disassembly:
sub esp, 0x354
fldz
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 8], ebp
fst qword [esp + 0x40]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x20], ebp
fst qword [esp + 0x40]
fldz
xor eax, eax
mov word [esp + 0x1c], ax
fst dword [esp + 0x10]
fstp dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x370]
mov dword [esp + 0x40], ebp
lea eax, [esp + 0x54]
mov dword [0x424254], 0x92a85e9a
xor ecx, ecx
push eax
mov word [esp + 0x14], cx
fstp qword [esp + 0x50]
mov ebx, 1
lea edx, [esp + 0x50]
push esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edx
call fcn.00401870
add esp, 8
test eax, eax
jl 0x406b4c
mov ecx, dword [esi + 8]
test byte [ecx], bl
je 0x406b4c
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.004010c0
push ebp
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00401f50
push 0x300
lea edx, [esp + 0x78]
push ebp
push edx
call fcn.0040b110
mov eax, dword [esp + 0x38c]
push eax
call fcn.004012c0
add esp, 0x24
cmp eax, 0x29f
jle 0x4063d8
mov dword [esp + 0x18], 6
jmp 0x406408
cmp eax, 0xef
jle 0x4063e9
mov dword [esp + 0x18], 5
jmp 0x406408
cmp eax, 0x4f
jle 0x4063f8
mov dword [esp + 0x18], 4
jmp 0x406408
xor ecx, ecx
cmp eax, 0x17
setg cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x18], ecx
push edi
mov edi, dword [esi + 4]
add edi, ebx
mov ebx, dword [esp + 0x368]
push edi
push ebx
call fcn.00401560
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x406ac8
lea edx, [esp + 0x70]
push edi
push edx
call fcn.00401560
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x406ac8
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401560
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x406ac8
mov ebp, dword [esp + 0x378]
test ebp, ebp
je 0x40648a
cmp dword [ebp + 8], 0
je 0x40648a
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jmp 0x4064fb
lea edx, [esp + 0x2c]
push 1
push edx
call fcn.00403020
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406acf
mov eax, dword [esi + 4]
shl eax, 6
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00404010
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406acf
lea edx, [esp + 0x2c]
push esi
push edx
mov eax, edx
push eax
call fcn.004061d0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406acf
test ebp, ebp
je 0x4064fb
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov edi, dword [esp + 0x36c]
push esi
push edi
call fcn.00401870
add esp, 8
test eax, eax
jl 0x406521
push esi
lea ecx, [esp + 0x74]
push edi
push ecx
call fcn.004061d0
add esp, 0xc
jmp 0x40652f
lea edx, [esp + 0x70]
push edi
push edx
call fcn.004028c0
add esp, 8
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
push ecx
push esi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.00403b00
mov cx, word [0x4250b4]
mov edx, dword [0x4250b0]
movsx eax, cx
add eax, 0x9584bbaa
add edx, eax
mov dword [esp + 0x28], edx
mov ecx, 1
add esp, 0x14
fild dword [esp + 0x14]
fld dword [0x4250d4]
add dword [0x4250b0], ecx
fcompp
fnstsw ax
fld1
test ah, 0x41
jp 0x4065fd
mov eax, dword [esp + 0x28]
add eax, 0x56e1a5b9
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fsub dword [0x4246cc]
fcomp qword [0x41f798]
fnstsw ax
test ah, 0x44
jnp 0x4065cd
mov dx, word [esp + 0x24]
fstp st(0)
movsx eax, dx
mov edx, 0x8ad1055f
sub edx, eax
add edx, dword [esp + 0x28]
mov dword [esp + 0x28], edx
add dword [esp + 0x24], ecx
jmp 0x40662c
fadd qword [0x425028]
fstp qword [0x425028]
fld qword [0x425028]
mov ax, word [esp + 0x24]
movsx ecx, ax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmulp st(1)
call fcn.0040b060
mov word [esp + 0x24], ax
jmp 0x40662c
fsubr dword [str.RY_v8]
fstp dword [str.RY_v8]
fld dword [str.RY_v8]
mov edx, dword [esp + 0x10]
fstp dword [esp + 0x14]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [esp + 0x14]
call fcn.0040b060
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.004028c0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406acf
fld qword [0x4241a8]
mov edx, dword [esp + 0x20]
fsub qword [0x41f790]
lea ecx, [esp + 0x38]
push ecx
push edx
push esi
fstp qword [0x4241a8]
push ebx
call fcn.00404c80
mov ebx, dword [esp + 0x2c]
add esp, 0x10
cmp ebx, 1
jle 0x40679c
mov eax, dword [esi + 4]
dec ebx
mov ecx, ebx
mov ebp, 1
shl ebp, cl
inc eax
push eax
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x68]
push edi
call fcn.00401560
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406ac8
lea ecx, [esp + 0x70]
push ecx
push edi
call fcn.004028c0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406ac8
test ebx, ebx
jle 0x4066dd
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
push eax
push esi
push edi
push edi
call fcn.00403b00
add esp, 0x14
sub ebx, 1
jne 0x4066c3
mov ecx, dword [esp + 0x1c]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x40679c
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x64]
lea esp, [esp]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push edi
call fcn.00401560
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406ac8
mov dx, word [0x424268]
mov ecx, dword [0x4232d0]
movsx eax, dx
add ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fsub dword [0x42312c]
mov edx, dword [0x425c1c]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040b060
mov dword [0x425c1c], eax
lea eax, [edi - 0xc]
push eax
push edi
call fcn.004028c0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x406ac8
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push edx
push esi
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.00403b00
inc ebp
add esp, 0x14
add edi, 0xc
cmp ebp, ebx
mov dword [0x4246fc], 0xc02cc563
jl 0x406700
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x370]
fsub qword [0x41f788]
xor ebx, ebx
xor edi, edi
xor ebp, ebp
fmul qword [esp + 0x48]
fstp qword [esp + 0x48]
fld dword [esp + 0x18]
mov edx, dword [ecx + 4]
fsub qword [0x41f348]
mov dword [esp + 0x10], edx
fstp dword [esp + 0x18]
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x18], 0
jne 0x406870
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x406970
fld dword [0x425074]
fcomp qword [0x41f780]
fnstsw ax
test ah, 0x41
jne 0x40681e
fld dword [0x425074]
fsub qword [0x41f778]
call fcn.0040b060
mov word [str.__bq0], ax
jmp 0x406868
or ecx, 0xffffffff
add word [0x423298], cx
movzx edx, word [0x423430]
movsx eax, dx
movzx edx, word [esp + 0x24]
movsx edx, dx
sub edx, eax
mov ax, word [0x423298]
add word [0x423430], cx
cwde
sub edx, eax
cmp edx, 0x8aadc9a1
jg 0x406868
movzx ecx, word [0x425120]
sub ecx, 0x6066c538
mov word [0x42415c], cx
mov dword [esp + 0x18], 0x20
mov edx, dword [esp + 0x370]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
dec ecx
shr eax, cl
mov dword [esp + 0x18], ecx
and eax, 1
jne 0x4068bf
test ebx, ebx
je 0x4067d4
cmp ebx, 1
jne 0x4068bf
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x36c]
push ecx
push esi
push eax
push eax
call fcn.00403b00
add esp, 0x14
jmp 0x4067d4
mov edx, dword [esp + 0x1c]
inc edi
mov ecx, edx
sub ecx, edi
shl eax, cl
mov ebx, 2
or ebp, eax
cmp edi, edx
jne 0x4067d4
fld qword [0x4232c8]
mov edi, dword [esp + 0x20]
fmul qword [0x41f770]
mov ebx, edx
fstp qword [0x4232c8]
test ebx, ebx
jle 0x40691d
jmp 0x406900
mov eax, dword [esp + 0x368]
lea edx, [esp + 0x38]
push edx
push edi
push esi
push eax
push eax
call fcn.00403b00
add esp, 0x14
sub ebx, 1
jne 0x406900
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x36c]
push edi
lea ecx, [ebp + ebp*2]
push esi
lea edx, [esp + ecx*4 + 0x70]
push edx
push eax
call fcn.00403b00
mov cx, word [0x425eac]
movzx edx, word [0x425054]
movsx eax, cx
lea eax, [edx + eax + 0x5d7a04ef]
mov ebx, 1
add esp, 0x14
xor edi, edi
xor ebp, ebp
mov word [0x425054], ax
add word [0x425eac], bx
jmp 0x4067d4
mov ecx, dword [esp + 0x1c]
mov ebx, 1
rol ebx, cl
test edi, edi
jle 0x406aad
mov dword [esp + 0x10], edi
jmp 0x406990
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x368]
lea ecx, [esp + 0x38]
push ecx
push edx
push esi
push edi
push edi
call fcn.00403b00
mov eax, dword [esp + 0x3c]
mov ecx, 1
add dword [esp + 0x3c], ecx
sub eax, 0x7b51831
add esp, 0x14
add ebp, ebp
cmp eax, 0xece94151
jg 0x406a5d
fld qword [0x424380]
mov dx, word [0x423410]
fsub qword [0x41f768]
movsx eax, dx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsubp st(1)
fld qword [0x423438]
mov edx, dword [0x4241d0]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fsubp st(1)
fadd qword [esp + 0x48]
fcompp
fnstsw ax
fld qword [esp + 0x48]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x48]
add dword [0x4241d0], ecx
fld qword [0x423438]
fadd st(1)
fstp qword [0x423438]
fld qword [0x424380]
fsub st(1)
fstp qword [0x424380]
test ah, 0x41
jp 0x406a81
fld qword [0x424380]
call fcn.0040b060
mov word [0x423404], ax
fadd qword [0x424380]
fstp qword [0x424380]
jmp 0x406a83
mov ax, word [esp + 0x24]
movsx ecx, ax
mov eax, dword [0x4241b0]
mov edx, 0x2f6f9d42
sub edx, ecx
mov ecx, dword [esp + 0x44]
add eax, edx
add ecx, eax
mov dword [0x4241b0], ecx
jmp 0x406a83
fstp st(0)
test ebp, ebx
je 0x406aa0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
push eax
push esi
lea ecx, [esp + 0x7c]
push ecx
push edi
call fcn.00403b00
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x406990
jmp 0x406ab4
mov edi, dword [esp + 0x368]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
push eax
push esi
push edi
call fcn.00404c80
add esp, 0x10
mov ebp, dword [esp + 0x378]
mov esi, dword [esp + 0x1c]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x406b08
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x64]
mov edi, edx
push 0
push esi
call fcn.004017a0
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x406af5
pop edi
push 0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x70]
test ebp, ebp
je 0x406b2f
push ecx
push edx
call fcn.004017a0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x354
ret
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
call fcn.004017a0
mov eax, dword [esp + 0x20]
add esp, 0x10
pop esi
pop ebp
pop ebx
add esp, 0x354
ret
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x354
ret