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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 8]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x80], esi
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x74], esi
mov ecx, dword [ebp + 0x20]
mov esi, dword [eax]
mov dword [esp + 0x64], eax
mov dword [esp + 0x84], edi
mov edi, eax
mov eax, esi
mov dword [esp + 0x70], edx
and eax, 0xffffffcf
mov dword [esp + 0x88], ecx
mov dword [edi], eax
mov eax, esi
and eax, 7
cmp eax, 3
je 0x4068e0
mov ecx, esi
and ecx, 4
mov dword [esp + 0x60], ecx
jne 0x406868
test eax, eax
je 0x4068a8
mov ecx, dword [edx]
mov eax, 0x20
xor edx, edx
mov dword [esp + 0x7c], ecx
cmp ecx, 0x20
jle 0x406641
lea esi, [esi]
add eax, eax
add edx, 1
cmp ecx, eax
jg 0x406638
mov dword [esp], edx
call sym.___Balloc_D2A
mov edx, dword [esp + 0x8c]
mov edi, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x48], edx
sub eax, 1
sar eax, 5
lea ecx, [eax*4]
mov dword [esp + 0x54], eax
lea eax, [edi + 0x14]
lea ebx, [edx + ecx]
add edx, 1
mov dword [esp + 0x58], ebx
add ebx, 1
cmp ebx, edx
setae byte [esp + 0x68]
movzx ebx, byte [esp + 0x68]
cmp ecx, 0xb
jbe 0x406910
test bl, bl
je 0x406910
mov ebx, dword [esp + 0x8c]
mov edx, eax
lea ecx, [ebx + 4]
sub edx, ecx
mov ecx, ebx
cmp edx, 8
ja 0x406930
mov ebx, dword [esp + 0x58]
lea esi, [esi]
mov edx, dword [ecx]
add ecx, 4
add eax, 4
mov dword [eax - 4], edx
cmp ebx, ecx
jae 0x4066b8
mov eax, dword [esp + 0x54]
cmp byte [esp + 0x68], 0
lea ebx, [eax*4 + 4]
mov eax, 4
cmove ebx, eax
sar ebx, 2
jmp 0x4066f0
test ebx, ebx
je 0x406920
mov eax, ebx
sub ebx, 1
mov edx, dword [edi + ebx*4 + 0x14]
test edx, edx
je 0x4066e8
bsr edx, dword [edi + ebx*4 + 0x14]
mov dword [edi + 0x10], eax
shl eax, 5
xor edx, 0x1f
sub eax, edx
mov ebx, eax
mov dword [esp], edi
call sym.___trailz_D2A
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x44], ecx
test eax, eax
jne 0x4069d0
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4068a0
lea eax, [esp + 0x9c]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.___b2d_D2A
fstp qword [esp + 0x58]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x44]
and edx, 0xfffff
or edx, 0x3ff00000
add eax, ebx
mov dword [esp + 0x6c], edx
fld qword [esp + 0x68]
mov dword [esp + 0x48], eax
fsub dword [0x40b4e0]
lea ecx, [eax - 1]
mov eax, 1
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x48]
fmul qword [str.aCoc]
fadd qword [0x40b4f0]
mov dword [esp + 0x54], ecx
sub eax, edx
fild dword [esp + 0x54]
test ecx, ecx
fmul qword [0x40b4f8]
cmovns eax, ecx
sub eax, 0x435
faddp st(1)
test eax, eax
jle 0x4067cc
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fmul qword [0x40b500]
faddp st(1)
fld st(0)
fisttp dword [esp + 0x54]
fldz
fcompi st(1)
ja 0x406d28
fstp st(0)
mov eax, ecx
mov edx, dword [esp + 0x58]
shl eax, 0x14
add eax, edx
mov dword [esp + 0x6c], eax
mov eax, ebx
sub eax, ecx
lea ecx, [eax - 1]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x54]
cmp ecx, 0x16
ja 0x4069f8
fld qword [esp + 0x68]
fld qword [ecx*8 + 0x40b560]
fcompi st(1)
fstp st(0)
ja 0x406d90
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0
test eax, eax
jg 0x406848
mov edx, 1
mov dword [esp + 0x50], 0
sub edx, eax
mov dword [esp + 0x3c], edx
lea esi, [esi]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x34], 0
add dword [esp + 0x50], ecx
mov dword [esp + 0x38], ecx
jmp 0x406a4b
xor ebx, ebx
cmp eax, 4
jne 0x4068d6
mov eax, dword [esp + 0x88]
mov dword [eax], 0xffff8000
mov dword [ebp + 0x10], 3
mov eax, dword [esp + 0x84]
mov dword [ebp + 8], 0x40b4d9
mov dword [ebp + 0xc], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym.___nrv_alloc_D2A
mov dword [esp], edi
call sym.___Bfree_D2A
mov eax, dword [esp + 0x88]
mov dword [eax], 1
mov eax, dword [esp + 0x84]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x40b4dd
call sym.___nrv_alloc_D2A
mov ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ecx], 0xffff8000
mov dword [ebp + 0x10], 8
mov eax, dword [esp + 0x84]
mov dword [ebp + 8], 0x40b4d0
mov dword [ebp + 0xc], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym.___nrv_alloc_D2A
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x58]
jmp 0x4066b8
mov dword [edi + 0x10], 0
jmp 0x40670f
mov ecx, dword [esp + 0x54]
mov edx, ebx
mov dword [esp + 0x40], esi
and ecx, 0x3fffffff
lea ebx, [ecx + 1]
mov ecx, eax
mov dword [esp + 0x50], ebx
shr ebx, 2
shl ebx, 4
add ebx, edx
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x44]
lea esi, [esi]
movdqu xmm0, xmmword [edx]
add edx, 0x10
add ecx, 0x10
movups xmmword [ecx - 0x10], xmm0
cmp edx, esi
jne 0x406960
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x50]
mov edx, ebx
and edx, 0xfffffffc
shl edx, 2
add ecx, edx
add edx, eax
and ebx, 3
je 0x4066c7
mov eax, dword [ecx]
mov ebx, dword [esp + 0x58]
mov dword [edx], eax
lea eax, [ecx + 4]
cmp ebx, eax
jb 0x4066c7
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
lea eax, [ecx + 8]
cmp ebx, eax
jb 0x4066c7
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
jmp 0x4066c7
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.___rshift_D2A
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x78]
add ecx, eax
sub ebx, eax
mov dword [esp + 0x44], ecx
jmp 0x40672e
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], 0
test edx, edx
jns 0x406a23
mov edx, 1
mov dword [esp + 0x50], 0
sub edx, eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x54]
test eax, eax
jns 0x406848
mov eax, dword [esp + 0x54]
sub dword [esp + 0x3c], eax
mov dword [esp + 0x54], 0
mov ecx, eax
mov dword [esp + 0x38], eax
neg ecx
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x80]
cmp eax, 9
ja 0x406ca0
cmp eax, 5
jg 0x406d48
mov eax, dword [esp + 0x48]
add eax, 0x3fd
cmp eax, 0x7f7
mov eax, dword [esp + 0x80]
setbe byte [esp + 0x28]
cmp eax, 4
je 0x407950
cmp eax, 5
je 0x4078d2
mov dword [esp + 0x30], 0
cmp eax, 2
je 0x407108
cmp eax, 3
jne 0x406cbe
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x74]
add eax, ecx
mov dword [esp + 0x20], eax
add eax, 1
mov dword [esp + 0x58], eax
mov edx, eax
test eax, eax
jg 0x406acf
mov edx, 1
mov eax, 1
mov dword [esp], eax
mov dword [esp + 0x9c], edx
call sym.___rv_alloc_D2A
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
sub eax, 1
mov dword [esp + 0x48], eax
je 0x406b1a
mov ecx, dword [esp + 0x48]
mov eax, 2
test ecx, ecx
cmovns eax, ecx
and esi, 8
mov dword [esp + 0x48], eax
mov ecx, eax
je 0x406f00
mov eax, 3
sub eax, ecx
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0x58]
cmp esi, 0xe
setbe al
and al, byte [esp + 0x28]
mov byte [esp + 0x1f], al
je 0x406f00
mov eax, dword [esp + 0x38]
or eax, dword [esp + 0x48]
jne 0x406f00
mov eax, dword [esp + 0x24]
fld qword [esp + 0x68]
mov dword [esp + 0x9c], 0
test eax, eax
je 0x406b61
fld1
fcompi st(1)
ja 0x407a95
fld st(0)
fadd st(1)
fadd dword [0x40b51c]
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
sub eax, 0x3400000
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x406ec7
mov dword [esp + 0x28], 1
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
fld qword [esp + 0x48]
fld qword [esi*8 + 0x40b558]
test eax, eax
je 0x407617
fdivr dword [0x40b524]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 1]
fsubrp st(1)
fxch st(1)
fld st(0)
fisttp dword [esp + 0x48]
fild dword [esp + 0x48]
movzx eax, byte [esp + 0x48]
add eax, 0x30
fsubp st(1)
fxch st(1)
mov byte [ecx], al
fcomi st(1)
jbe 0x406c39
fstp st(0)
jmp 0x407c5a
mov eax, dword [esp + 0x9c]
add eax, 1
mov dword [esp + 0x9c], eax
cmp eax, esi
jge 0x406eeb
fld dword [0x40b514]
add edx, 1
fmul st(1), st(0)
fmulp st(2)
fxch st(1)
fld st(0)
fisttp dword [esp + 0x48]
fild dword [esp + 0x48]
movzx eax, byte [esp + 0x48]
add eax, 0x30
fsubp st(1)
fxch st(1)
mov byte [edx - 1], al
fcomi st(1)
ja 0x407c58
fld st(1)
fsubr dword [0x40b510]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x406bf0
fstp st(0)
fstp st(0)
jmp 0x406c5b
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x406c5b
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x40]
jmp 0x406c76
cmp ecx, ebx
je 0x407b94
movzx eax, byte [ecx - 1]
mov edx, ecx
lea ecx, [edx - 1]
cmp al, 0x39
je 0x406c68
mov dword [esp + 0x40], ebx
add eax, 1
mov byte [ecx], al
mov dword [esp + 0x40], edx
mov dword [esp + 0x60], 0x20
jmp 0x406e67
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x48]
add eax, 0x3fd
cmp eax, 0x7f7
setbe byte [esp + 0x28]
fild dword [esp + 0x7c]
fmul qword [0x40b508]
fisttp dword [esp + 0x74]
mov eax, dword [esp + 0x74]
add eax, 3
mov dword [esp], eax
mov dword [esp + 0x9c], eax
call sym.___rv_alloc_D2A
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], eax
sub eax, 1
mov dword [esp + 0x48], eax
je 0x406da2
mov dword [esp + 0x74], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
jmp 0x406af2
fild dword [esp + 0x54]
fucompi st(1)
fstp st(0)
jp 0x406d38
je 0x4067de
sub dword [esp + 0x54], 1
jmp 0x4067de
sub eax, 4
mov dword [esp + 0x80], eax
cmp eax, 4
je 0x4070fb
cmp eax, 5
je 0x4078c0
mov dword [esp + 0x30], 0
mov byte [esp + 0x28], 0
cmp eax, 2
je 0x407108
mov dword [esp + 0x80], 3
jmp 0x406aaa
sub dword [esp + 0x54], 1
mov dword [esp + 0x24], 0
jmp 0x406a00
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], 0
test eax, eax
js 0x407c2e
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
nop
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x38]
cmp dword [esi + 0x14], eax
jl 0x406f0c
mov edx, dword [esp + 0x74]
fld qword [eax*8 + 0x40b560]
test edx, edx
jns 0x4076e7
mov esi, dword [esp + 0x58]
test esi, esi
jg 0x4076e7
jne 0x407129
fmul dword [0x40b520]
fld qword [esp + 0x68]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x40712b
add eax, 2
mov dword [esp + 0x68], 0
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov dword [esp + 0x7c], 0
add dword [esp + 0x40], 1
mov byte [ebx], 0x31
mov dword [esp + 0x60], 0x20
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call sym.___Bfree_D2A
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x406e67
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call sym.___Bfree_D2A
mov dword [esp], edi
call sym.___Bfree_D2A
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
mov byte [eax], 0
mov dword [esi], edi
mov esi, dword [esp + 0x84]
test esi, esi
je 0x406e90
mov dword [esi], eax
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
or dword [eax], esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
fld st(0)
fadd st(1)
fadd dword [0x40b51c]
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
sub eax, 0x3400000
mov dword [esp + 0x4c], eax
fsub dword [0x40b520]
fld qword [esp + 0x48]
fxch st(1)
fcomi st(1)
ja 0x407b2b
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x40712b
jmp 0x406ef3
fstp st(0)
fstp st(0)
jmp 0x406ef3
fstp st(0)
mov dword [esp + 0x48], 0
lea esi, [esi]
nop
mov ecx, dword [esp + 0x44]
test ecx, ecx
jns 0x406dd0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x407160
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x44]
sub eax, ebx
lea edx, [eax + 1]
sub esi, eax
mov dword [esp + 0x9c], edx
cmp esi, ecx
jge 0x4075f0
mov edx, dword [esp + 0x80]
lea eax, [edx - 3]
and eax, 0xfffffffd
je 0x4075b0
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x58]
sub eax, ecx
cmp edx, 1
setg dl
test esi, esi
lea ecx, [eax + 1]
setg al
mov dword [esp + 0x9c], ecx
test dl, al
je 0x406f7b
cmp ecx, esi
jg 0x407da9
mov eax, dword [esp + 0x34]
add dword [esp + 0x50], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
mov esi, eax
add eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp], 1
call sym.___i2b_D2A
mov dword [esp + 0x30], 1
mov dword [esp + 0x7c], eax
test esi, esi
jle 0x406fd1
mov ecx, dword [esp + 0x50]
test ecx, ecx
jle 0x406fd1
cmp esi, ecx
mov eax, ecx
cmovle eax, esi
sub dword [esp + 0x3c], eax
sub ecx, eax
mov dword [esp + 0x9c], eax
sub esi, eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x406fff
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x406fed
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x407879
mov eax, dword [esp + 0x34]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.___pow5mult_D2A
mov edi, eax
mov dword [esp], 1
call sym.___i2b_D2A
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x4073f0
cmp dword [esp + 0x80], 1
jle 0x407570
mov ebx, 0x1f
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
sub ebx, eax
sub ebx, 4
and ebx, 0x1f
add edx, ebx
mov dword [esp + 0x9c], ebx
mov eax, ebx
test edx, edx
jle 0x407062
mov dword [esp], edi
mov dword [esp + 4], edx
call sym.___lshift_D2A
mov edi, eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x50]
add ecx, eax
test ecx, ecx
jle 0x407080
mov eax, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.___lshift_D2A
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x80], 2
setg dl
test eax, eax
jne 0x407430
mov eax, dword [esp + 0x58]
test eax, eax
jg 0x407180
test dl, dl
je 0x407180
mov ebx, dword [esp + 0x58]
test ebx, ebx
jne 0x40713b
mov eax, dword [esp + 0x68]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call sym.___multadd_D2A
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x68], eax
call sym.___cmp_D2A
test eax, eax
jle 0x40713b
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
add eax, 2
mov dword [esp + 0x28], eax
jmp 0x406e37
mov byte [esp + 0x28], 0
mov dword [esp + 0x30], 1
mov edx, dword [esp + 0x74]
mov eax, 1
test edx, edx
cmovg eax, edx
mov dword [esp + 0x20], eax
mov edx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x74], eax
jmp 0x406acf
fstp st(0)
mov dword [esp + 0x68], 0
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x60], 0x10
neg eax
mov dword [esp + 0x28], eax
jmp 0x406e47
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], eax
jmp 0x406fab
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add eax, 1
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x4074b0
add ebx, esi
test ebx, ebx
jle 0x4071b1
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.___lshift_D2A
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x78], eax
test edx, edx
jne 0x407ae3
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, 1
jmp 0x4072b5
mov dword [esp], edx
call sym.___Bfree_D2A
mov eax, 1
test ebx, ebx
js 0x40798b
or ebx, dword [esp + 0x80]
jne 0x40720e
mov ebx, dword [esp + 0x8c]
test byte [ebx], 1
je 0x40798b
mov esi, dword [esp + 0x74]
add esi, 1
mov ebx, esi
test eax, eax
jle 0x407226
cmp dword [esp + 0x48], 2
jne 0x407b50
movzx eax, byte [esp + 0x70]
mov byte [esi - 1], al
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x9c], eax
je 0x407b7f
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call sym.___multadd_D2A
mov ebx, dword [esp + 0x78]
cmp dword [esp + 0x7c], ebx
mov dword [esp + 8], 0
mov edi, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], 0xa
mov dword [esp], eax
je 0x4073d8
call sym.___multadd_D2A
mov dword [esp + 8], 0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], 0xa
mov dword [esp], eax
call sym.___multadd_D2A
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x74], esi
add eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x68]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.___quorem_D2A
mov dword [esp], edi
lea ebx, [eax + 0x30]
mov esi, eax
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
call sym.___cmp_D2A
mov ecx, dword [esp + 0x78]
mov ebx, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.___diff_D2A
mov edx, eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4071e0
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 0x50], edx
call sym.___cmp_D2A
mov edx, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov dword [esp], edx
call sym.___Bfree_D2A
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x80]
or eax, edx
jne 0x4077b0
mov ecx, dword [esp + 0x8c]
mov ecx, dword [ecx]
mov edx, ecx
mov dword [esp + 0x54], ecx
and edx, 1
or edx, dword [esp + 0x48]
jne 0x4071ed
mov edx, dword [esp + 0x70]
cmp edx, 0x39
je 0x407ddc
test ebx, ebx
jle 0x407e69
mov dword [esp + 0x60], 0x20
lea edx, [esi + 0x31]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov byte [eax], dl
lea esi, [eax + 1]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
lea esi, [esi]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x8c], ecx
mov dword [esp], eax
call sym.___Bfree_D2A
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4077e7
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x4073c6
cmp ecx, eax
je 0x4073c6
mov dword [esp], ecx
call sym.___Bfree_D2A
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], esi
jmp 0x406e5b
call sym.___multadd_D2A
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
jmp 0x4072a7
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call sym.___pow5mult_D2A
cmp dword [esp + 0x80], 1
mov dword [esp + 0x68], eax
jle 0x40782c
mov dword [esp + 0x54], 0
mov ebx, eax
mov eax, dword [ebx + 0x10]
bsr ebx, dword [ebx + eax*4 + 0x10]
xor ebx, 0x1f
jmp 0x40702e
mov eax, dword [esp + 0x68]
mov dword [esp], edi
mov byte [esp + 0x78], dl
mov dword [esp + 4], eax
call sym.___cmp_D2A
movzx edx, byte [esp + 0x78]
test eax, eax
jns 0x407097
mov dword [esp], edi
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
sub eax, 1
mov dword [esp + 0x70], eax
call sym.___multadd_D2A
movzx edx, byte [esp + 0x78]
mov edi, eax
mov eax, dword [esp + 0x20]
test eax, eax
setle al
and edx, eax
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x407cec
test dl, dl
jne 0x407c43
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
lea esi, [esi]
mov esi, edi
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x58]
mov eax, 1
jmp 0x4074ec
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call sym.___multadd_D2A
mov esi, eax
mov eax, dword [esp + 0x9c]
add eax, 1
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x68]
add ebx, 1
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.___quorem_D2A
add eax, 0x30
mov byte [ebx - 1], al
cmp dword [esp + 0x9c], edi
jl 0x4074c8
mov edx, eax
mov edi, esi
xor ecx, ecx
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4078df
mov eax, dword [edi + 0x10]
cmp esi, 2
je 0x407930
cmp eax, 1
jg 0x4077b9
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x4077b9
test eax, eax
setne al
movzx eax, al
shl eax, 4
mov dword [esp + 0x60], eax
lea esi, [esi]
lea esi, [esi]
mov esi, ebx
sub ebx, 1
cmp byte [ebx], 0x30
je 0x407560
jmp 0x407390
cmp ebx, 1
jne 0x407029
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x78]
mov eax, dword [eax + 4]
add eax, 1
cmp eax, ebx
jge 0x407029
add dword [esp + 0x3c], 1
add dword [esp + 0x50], 1
mov dword [esp + 0x54], 1
jmp 0x407029
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x34]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x4077f4
sub esi, eax
mov eax, ecx
mov dword [esp + 0x68], esi
test ecx, ecx
jns 0x407d32
mov dword [esp + 0x9c], 0
mov esi, dword [esp + 0x3c]
sub esi, ecx
jmp 0x406f93
cmp dword [esp + 0x80], 1
jg 0x4075b0
mov eax, dword [esp + 0x34]
add dword [esp + 0x50], edx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
mov esi, eax
add eax, edx
mov dword [esp + 0x3c], eax
jmp 0x406f93
fmulp st(1)
mov dword [esp + 0x48], edi
mov edx, dword [esp + 0x40]
mov ecx, 1
movzx edi, byte [esp + 0x1f]
xor eax, eax
fld st(1)
jmp 0x407661
lea eax, [ecx + 0x30]
fild dword [esp + 0x7c]
add edx, 1
mov byte [edx - 1], al
mov ecx, dword [esp + 0x9c]
fsubp st(1)
cmp ecx, esi
je 0x407c21
fmul dword [0x40b514]
add ecx, 1
mov eax, edi
mov dword [esp + 0x9c], ecx
fld st(0)
fisttp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jne 0x407638
mov byte [edx], 0x30
mov ecx, dword [esp + 0x9c]
add edx, 1
cmp ecx, esi
jne 0x407656
mov ecx, eax
mov edi, dword [esp + 0x48]
mov eax, 0x30
test cl, cl
fcmove st(0), st(2)
fstp st(2)
fxch st(1)
fld dword [0x40b524]
fld st(2)
fadd st(1)
fxch st(2)
fcomi st(2)
fstp st(2)
ja 0x406c4f
fsubrp st(2)
fxch st(1)
fcompi st(1)
ja 0x407d4e
fstp st(0)
mov eax, dword [esp + 0x44]
test eax, eax
js 0x407ccb
mov eax, dword [esp + 0x70]
mov esi, dword [eax + 0x14]
test esi, esi
js 0x407ccb
fld qword [0x40b560]
mov dword [esp + 0x48], 0
fld qword [esp + 0x68]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x9c], 1
lea edx, [esi + 1]
fld st(0)
fdiv st(2)
fisttp dword [esp + 0x8c]
fild dword [esp + 0x8c]
movzx eax, byte [esp + 0x8c]
add eax, 0x30
fmul st(2)
mov byte [esi], al
mov eax, dword [esp + 0x38]
add eax, 1
mov dword [esp + 0x28], eax
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x407750
lea esi, [esi]
jne 0x407750
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], edx
jmp 0x406e67
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x58]
cmp eax, esi
je 0x40795d
fmul dword [0x40b514]
add eax, 1
add edx, 1
mov dword [esp + 0x9c], eax
fld st(0)
fdiv st(2)
fisttp dword [esp + 0x8c]
fild dword [esp + 0x8c]
movzx eax, byte [esp + 0x8c]
add eax, 0x30
fmul st(2)
mov byte [edx - 1], al
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jnp 0x407738
jmp 0x407750
mov eax, dword [esp + 0x54]
jmp 0x4071ed
mov edx, dword [esp + 0x40]
jmp 0x4077c8
cmp ebx, edx
je 0x407860
mov esi, ebx
lea ebx, [ebx - 1]
movzx eax, byte [esi - 1]
cmp al, 0x39
je 0x4077c0
add eax, 1
mov dword [esp + 0x60], 0x20
mov byte [ebx], al
jmp 0x407390
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], esi
jmp 0x406e67
mov esi, dword [esp + 0x34]
mov edx, eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x68], 0
add dword [esp + 0x50], ecx
sub edx, esi
add dword [esp + 0x54], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x9c], ecx
mov esi, edx
add edx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
jmp 0x406f93
cmp ebx, 1
jne 0x407416
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x78], eax
jg 0x407e90
xor edx, edx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x54], edx
jmp 0x407420
mov eax, dword [esp + 0x40]
add dword [esp + 0x28], 1
mov dword [esp + 0x60], 0x20
mov byte [eax], 0x31
jmp 0x407390
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___pow5mult_D2A
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x7c], eax
call sym.___mult_D2A
mov dword [esp], edi
mov dword [esp + 0x44], eax
call sym.___Bfree_D2A
mov eax, dword [esp + 0x68]
sub dword [esp + 0x34], eax
mov edi, dword [esp + 0x44]
je 0x406fff
jmp 0x406fed
mov byte [esp + 0x28], 0
mov dword [esp + 0x30], 1
jmp 0x406aaa
mov dword [esp + 0x30], 1
jmp 0x406aaa
mov dword [esp], edi
mov dword [esp + 4], 1
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x80], edx
call sym.___lshift_D2A
mov edi, eax
mov eax, dword [esp + 0x68]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.___cmp_D2A
mov ecx, dword [esp + 0x8c]
test eax, eax
jg 0x4077b9
jne 0x407930
mov edx, dword [esp + 0x80]
and edx, 1
jne 0x4077b9
cmp dword [edi + 0x10], 1
mov dword [esp + 0x60], 0x10
jg 0x407560
mov eax, dword [edi + 0x14]
jmp 0x407547
mov dword [esp + 0x30], 1
jmp 0x407108
mov eax, dword [esp + 0x48]
test eax, eax
je 0x407c81
fstp st(0)
fstp st(0)
cmp eax, 1
je 0x407d71
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x40], edx
jmp 0x406e67
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x70]
test ebx, ebx
je 0x407ba7
cmp dword [edi + 0x10], 1
jle 0x407d7e
cmp dword [esp + 0x48], 2
je 0x407c01
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x8c], edx
jmp 0x407a3e
movzx eax, byte [esp + 0x8c]
mov dword [esp + 0x7c], ecx
mov byte [ecx - 1], al
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call sym.___multadd_D2A
mov dword [esp], edi
cmp esi, ebx
mov dword [esp + 8], 0
cmove esi, eax
mov dword [esp + 4], 0xa
mov dword [esp + 0x80], eax
call sym.___multadd_D2A
mov edi, eax
mov eax, dword [esp + 0x68]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.___quorem_D2A
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
add eax, 0x30
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.___cmp_D2A
mov edx, dword [esp + 0x74]
lea ecx, [edx + 1]
test eax, eax
jg 0x4079c8
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x7c], esi
mov eax, esi
mov esi, ecx
mov dword [esp + 0x78], ebx
cmp edx, 0x39
je 0x407de3
mov dword [esp + 0x7c], ebx
add edx, 1
mov ecx, eax
mov dword [esp + 0x60], 0x20
mov eax, dword [esp + 0x74]
mov byte [eax], dl
jmp 0x407390
test esi, esi
je 0x406ea4
mov esi, dword [esp + 0x20]
test esi, esi
jle 0x406ef1
fmul dword [0x40b514]
fld st(0)
fmul dword [0x40b518]
fadd dword [0x40b51c]
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], 0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
sub eax, 0x3400000
mov dword [esp + 0x4c], eax
jmp 0x406b9c
mov esi, eax
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym.___Balloc_D2A
lea ecx, [eax + 0xc]
mov ebx, eax
mov eax, dword [esi + 0x10]
mov dword [esp], ecx
lea edx, [eax*4 + 8]
lea eax, [esi + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._memcpy
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym.___lshift_D2A
mov dword [esp + 0x78], eax
jmp 0x4071c5
fstp st(0)
fstp st(0)
mov dword [esp + 0x28], 2
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x68], 0
mov dword [esp + 0x7c], 0
jmp 0x406e37
mov edx, dword [esp + 0x70]
cmp edx, 0x39
je 0x407de3
mov eax, dword [esp + 0x74]
add edx, 1
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x60], 0x20
mov byte [eax], dl
mov eax, dword [esp + 0x78]
mov dword [esp + 0x7c], eax
jmp 0x407390
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
jmp 0x40751b
add dword [esp + 0x28], 1
mov eax, 0x31
mov dword [esp + 0x40], ebx
jmp 0x406c84
test eax, eax
jle 0x407bf7
mov dword [esp], edi
mov dword [esp + 4], 1
mov dword [esp + 0x8c], edx
call sym.___lshift_D2A
mov edi, eax
mov eax, dword [esp + 0x68]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.___cmp_D2A
mov edx, dword [esp + 0x8c]
test eax, eax
jle 0x407e28
cmp edx, 0x39
je 0x407e40
mov dword [esp + 0x48], 0x20
lea edx, [esi + 0x31]
cmp dword [edi + 0x10], 1
jle 0x407e01
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x74]
lea esi, [eax + 1]
jmp 0x407a8a
fstp st(2)
fxch st(1)
mov edi, dword [esp + 0x48]
jmp 0x40769a
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
jmp 0x406f18
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
jmp 0x4070ab
fstp st(0)
fldz
xor eax, eax
mov ecx, 1
mov ebx, dword [esp + 0x40]
fucompi st(1)
fstp st(0)
mov dword [esp + 0x40], edx
setp al
cmovne eax, ecx
shl eax, 4
mov dword [esp + 0x60], eax
jmp 0x406e67
fadd st(0)
movzx eax, byte [edx - 1]
fcomi st(1)
ja 0x406c57
fucompi st(1)
fstp st(0)
mov ebx, dword [esp + 0x40]
jp 0x407ca9
jne 0x407ca9
test byte [esp + 0x8c], 1
jne 0x406c76
mov dword [esp + 0x60], 0x10
lea esi, [esi]
mov eax, edx
sub edx, 1
cmp byte [edx], 0x30
je 0x407cb8
mov dword [esp + 0x40], eax
jmp 0x406e67
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], eax
jmp 0x406fab
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov dword [esp], eax
mov byte [esp + 0x78], dl
call sym.___multadd_D2A
movzx edx, byte [esp + 0x78]
mov dword [esp + 0x7c], eax
test dl, dl
jne 0x407c43
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
jmp 0x407197
add dword [esp + 0x50], ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x3c]
add eax, ecx
mov esi, ecx
mov dword [esp + 0x3c], eax
jmp 0x406f93
fldz
xor eax, eax
mov ecx, 1
mov ebx, dword [esp + 0x40]
fucompi st(1)
fstp st(0)
setp al
cmovne eax, ecx
shl eax, 4
mov dword [esp + 0x60], eax
jmp 0x407cb8
movzx eax, byte [edx - 1]
mov ebx, dword [esp + 0x40]
jmp 0x406c76
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x4079a5
test eax, eax
jg 0x407bab
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x74]
lea esi, [eax + 1]
jmp 0x407a8a
mov ecx, dword [esp + 0x34]
lea eax, [esi - 1]
cmp ecx, eax
jl 0x4077f4
mov edx, dword [esp + 0x3c]
sub ecx, eax
mov eax, esi
add dword [esp + 0x50], esi
mov dword [esp + 0x9c], esi
add eax, edx
mov dword [esp + 0x68], ecx
mov esi, edx
mov dword [esp + 0x3c], eax
jmp 0x406f93
mov eax, dword [esp + 0x74]
lea esi, [eax + 1]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x40]
mov ebx, esi
mov byte [eax], 0x39
jmp 0x4077c8
mov ebx, dword [edi + 0x14]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
test ebx, ebx
mov dword [esp + 0x7c], eax
je 0x407e55
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], 0x10
lea esi, [eax + 1]
jmp 0x407a8a
jne 0x407e33
test dl, 1
jne 0x407be3
mov dword [esp + 0x48], 0x20
jmp 0x407bf7
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x74]
lea esi, [eax + 1]
jmp 0x407def
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x74]
lea esi, [eax + 1]
jmp 0x407a8a
cmp dword [edi + 0x10], 1
mov dword [esp + 0x60], 0x10
jg 0x407377
xor eax, eax
cmp dword [edi + 0x14], 0
setne al
shl eax, 4
mov dword [esp + 0x60], eax
jmp 0x407377
add dword [esp + 0x3c], 1
mov ebx, dword [esp + 0x68]
add dword [esp + 0x50], 1
mov dword [esp + 0x54], 1
jmp 0x407420