Function at 0x406420
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 0x406770
mov ecx, esi
and ecx, 4
mov dword [esp + 0x60], ecx
jne 0x4066f0
test eax, eax
je 0x406738
mov ecx, dword [edx]
mov eax, 0x20
xor edx, edx
mov dword [esp + 0x7c], ecx
cmp ecx, 0x20
jle 0x4064c1
lea esi, [esi]
add eax, eax
add edx, 1
cmp ecx, eax
jg 0x4064b8
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 0x4067a0
test bl, bl
je 0x4067a0
mov ebx, dword [esp + 0x8c]
mov edx, eax
lea ecx, [ebx + 4]
sub edx, ecx
mov ecx, ebx
cmp edx, 8
ja 0x4067c0
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 0x406538
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 0x406570
test ebx, ebx
je 0x4067b0
mov eax, ebx
sub ebx, 1
mov edx, dword [edi + ebx*4 + 0x14]
test edx, edx
je 0x406568
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 0x406860
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x406730
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 [0x40b488]
lea ecx, [eax - 1]
mov eax, 1
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x48]
fmul qword [str.aCoc]
fadd qword [0x40b498]
mov dword [esp + 0x54], ecx
sub eax, edx
fild dword [esp + 0x54]
test ecx, ecx
fmul qword [0x40b4a0]
cmovns eax, ecx
sub eax, 0x435
faddp st(1)
test eax, eax
jle 0x40664c
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fmul qword [0x40b4a8]
faddp st(1)
fld st(0)
fisttp dword [esp + 0x54]
fldz
fcompi st(1)
ja 0x406ba8
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 0x406888
fld qword [ecx*8 + 0x40b500]
fst qword [esp + 0x58]
fld qword [esp + 0x68]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x406c10
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0
test eax, eax
jg 0x4066d0
mov edx, 1
mov dword [esp + 0x50], 0
sub edx, eax
mov dword [esp + 0x3c], edx
lea esi, [esi]
nop
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x34], 0
add dword [esp + 0x50], ecx
mov dword [esp + 0x38], ecx
jmp 0x4068db
xor ebx, ebx
cmp eax, 4
jne 0x406766
mov eax, dword [esp + 0x88]
mov dword [eax], 0xffff8000
mov dword [ebp + 0x10], 3
mov eax, dword [esp + 0x84]
mov dword [ebp + 8], 0x40b481
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], 0x40b485
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], 0x40b478
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 0x406538
mov dword [edi + 0x10], 0
jmp 0x40658f
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 0x4067f0
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 0x406547
mov eax, dword [ecx]
mov ebx, dword [esp + 0x58]
mov dword [edx], eax
lea eax, [ecx + 4]
cmp ebx, eax
jb 0x406547
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
lea eax, [ecx + 8]
cmp ebx, eax
jb 0x406547
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
jmp 0x406547
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.___rshift_D2A
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x78]
add edx, eax
sub ebx, eax
mov dword [esp + 0x44], edx
jmp 0x4065ae
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], 0
test edx, edx
jns 0x4068b3
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 0x4066d0
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 0x406b20
cmp eax, 5
jg 0x406bc8
mov eax, dword [esp + 0x48]
add eax, 0x3fd
cmp eax, 0x7f7
mov eax, dword [esp + 0x80]
setbe byte [esp + 0x28]
cmp eax, 4
je 0x4077d0
cmp eax, 5
je 0x407752
mov dword [esp + 0x30], 0
cmp eax, 2
je 0x406f88
cmp eax, 3
jne 0x406b3e
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x74]
mov edx, 1
add eax, ecx
mov dword [esp + 0x20], eax
add eax, 1
test eax, eax
mov dword [esp + 0x58], eax
cmovg edx, eax
mov eax, edx
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 0x4069a6
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 0x406d80
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 0x406d80
mov eax, dword [esp + 0x38]
or eax, dword [esp + 0x48]
jne 0x406d80
mov eax, dword [esp + 0x24]
fld qword [esp + 0x68]
mov dword [esp + 0x9c], 0
test eax, eax
je 0x4069ed
fld1
fcompi st(1)
ja 0x407915
fld st(0)
fadd st(1)
fadd dword [0x40b4c4]
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 0x406d47
mov dword [esp + 0x28], 1
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
fld qword [esp + 0x48]
fld qword [esi*8 + 0x40b4f8]
test eax, eax
je 0x407497
fdivr dword [0x40b4cc]
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 0x406ac1
fstp st(0)
jmp 0x407ada
mov eax, dword [esp + 0x9c]
add eax, 1
mov dword [esp + 0x9c], eax
cmp eax, esi
jge 0x406d6b
fld dword [0x40b4bc]
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 0x407ad8
fld st(1)
fsubr dword [0x40b4b8]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x406a78
fstp st(0)
fstp st(0)
jmp 0x406ae3
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x406ae3
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x40]
jmp 0x406afe
cmp ecx, ebx
je 0x407a14
movzx eax, byte [ecx - 1]
mov edx, ecx
lea ecx, [edx - 1]
cmp al, 0x39
je 0x406af0
mov dword [esp + 0x40], ebx
add eax, 1
mov byte [ecx], al
mov dword [esp + 0x40], edx
mov dword [esp + 0x60], 0x20
jmp 0x406ce7
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 [0x40b4b0]
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 0x406c22
mov dword [esp + 0x74], 0
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
jmp 0x40697e
fild dword [esp + 0x54]
fucompi st(1)
fstp st(0)
jp 0x406bb8
je 0x40665e
sub dword [esp + 0x54], 1
jmp 0x40665e
sub eax, 4
mov dword [esp + 0x80], eax
cmp eax, 4
je 0x406f7b
cmp eax, 5
je 0x407740
mov dword [esp + 0x30], 0
mov byte [esp + 0x28], 0
cmp eax, 2
je 0x406f88
mov dword [esp + 0x80], 3
jmp 0x40693a
sub dword [esp + 0x54], 1
mov dword [esp + 0x24], 0
jmp 0x406890
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], 0
test eax, eax
js 0x407aae
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 0x406d8c
mov edx, dword [esp + 0x74]
fld qword [eax*8 + 0x40b500]
test edx, edx
jns 0x407567
mov esi, dword [esp + 0x58]
test esi, esi
jg 0x407567
jne 0x406fa9
fmul dword [0x40b4c8]
fld qword [esp + 0x68]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x406fab
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 0x406ce7
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 0x406d10
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 [0x40b4c4]
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 [0x40b4c8]
fld qword [esp + 0x48]
fxch st(1)
fcomi st(1)
ja 0x4079ab
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x406fab
jmp 0x406d73
fstp st(0)
fstp st(0)
jmp 0x406d73
fstp st(0)
mov dword [esp + 0x48], 0
lea esi, [esi]
nop
mov ecx, dword [esp + 0x44]
test ecx, ecx
jns 0x406c50
mov eax, dword [esp + 0x30]
test eax, eax
je 0x406fe0
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 0x407470
mov edx, dword [esp + 0x80]
lea eax, [edx - 3]
and eax, 0xfffffffd
je 0x407430
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 0x406dfb
cmp ecx, esi
jg 0x407c29
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 0x406e51
mov ecx, dword [esp + 0x50]
test ecx, ecx
jle 0x406e51
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 0x406e7f
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x406e6d
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x4076f9
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 0x407270
cmp dword [esp + 0x80], 1
jle 0x4073f0
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 0x406ee2
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 0x406f00
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 0x4072b0
mov eax, dword [esp + 0x58]
test eax, eax
jg 0x407000
test dl, dl
je 0x407000
mov ebx, dword [esp + 0x58]
test ebx, ebx
jne 0x406fbb
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 0x406fbb
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
add eax, 2
mov dword [esp + 0x28], eax
jmp 0x406cb7
mov byte [esp + 0x28], 0
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x74]
mov eax, 1
test ecx, ecx
cmovg eax, ecx
mov dword [esp + 0x20], eax
mov edx, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x74], eax
jmp 0x40695b
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 0x406cc7
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], eax
jmp 0x406e2b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add eax, 1
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x407330
add ebx, esi
test ebx, ebx
jle 0x407031
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 0x407963
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, 1
jmp 0x407135
mov dword [esp], edx
call sym.___Bfree_D2A
mov eax, 1
test ebx, ebx
js 0x40780b
or ebx, dword [esp + 0x80]
jne 0x40708e
mov ebx, dword [esp + 0x8c]
test byte [ebx], 1
je 0x40780b
mov esi, dword [esp + 0x74]
add esi, 1
mov ebx, esi
test eax, eax
jle 0x4070a6
cmp dword [esp + 0x48], 2
jne 0x4079d0
movzx eax, byte [esp + 0x70]
mov byte [esi - 1], al
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x9c], eax
je 0x4079ff
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 0x407258
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 0x407060
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 0x407630
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 0x40706d
mov edx, dword [esp + 0x70]
cmp edx, 0x39
je 0x407c83
test ebx, ebx
jle 0x407ce9
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 0x407667
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x407246
cmp ecx, eax
je 0x407246
mov dword [esp], ecx
call sym.___Bfree_D2A
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], esi
jmp 0x406cdb
call sym.___multadd_D2A
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
jmp 0x407127
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 0x4076ac
mov dword [esp + 0x54], 0
mov ebx, eax
mov eax, dword [ebx + 0x10]
bsr ebx, dword [ebx + eax*4 + 0x10]
xor ebx, 0x1f
jmp 0x406eae
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 0x406f17
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 0x407b6c
test dl, dl
jne 0x407ac3
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 0x40736c
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 0x407348
mov edx, eax
mov edi, esi
xor ecx, ecx
mov esi, dword [esp + 0x48]
test esi, esi
je 0x40775f
mov eax, dword [edi + 0x10]
cmp esi, 2
je 0x4077b0
cmp eax, 1
jg 0x407639
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x407639
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 0x4073e0
jmp 0x407210
cmp ebx, 1
jne 0x406ea9
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x78]
mov eax, dword [eax + 4]
add eax, 1
cmp eax, ebx
jge 0x406ea9
add dword [esp + 0x3c], 1
add dword [esp + 0x50], 1
mov dword [esp + 0x54], 1
jmp 0x406ea9
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x34]
lea eax, [edx - 1]
cmp esi, eax
jl 0x407674
sub esi, eax
mov eax, edx
mov dword [esp + 0x68], esi
test edx, edx
jns 0x407bb2
mov dword [esp + 0x9c], 0
mov esi, dword [esp + 0x3c]
sub esi, edx
jmp 0x406e13
cmp dword [esp + 0x80], 1
jg 0x407430
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 0x406e13
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 0x4074e1
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 0x407aa1
fmul dword [0x40b4bc]
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 0x4074b8
mov byte [edx], 0x30
mov ecx, dword [esp + 0x9c]
add edx, 1
cmp ecx, esi
jne 0x4074d6
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 [0x40b4cc]
fld st(2)
fadd st(1)
fxch st(2)
fcomi st(2)
fstp st(2)
ja 0x406ad7
fsubrp st(2)
fxch st(1)
fcompi st(1)
ja 0x407bce
fstp st(0)
mov eax, dword [esp + 0x44]
test eax, eax
js 0x407b4b
mov eax, dword [esp + 0x70]
mov esi, dword [eax + 0x14]
test esi, esi
js 0x407b4b
fld qword [0x40b500]
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 0x4075d0
lea esi, [esi]
jne 0x4075d0
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], edx
jmp 0x406ce7
mov eax, dword [esp + 0x9c]
mov esi, dword [esp + 0x58]
cmp eax, esi
je 0x4077dd
fmul dword [0x40b4bc]
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 0x4075b8
jmp 0x4075d0
mov eax, dword [esp + 0x54]
jmp 0x40706d
mov edx, dword [esp + 0x40]
jmp 0x407648
cmp ebx, edx
je 0x4076e0
mov esi, ebx
lea ebx, [ebx - 1]
movzx eax, byte [esi - 1]
cmp al, 0x39
je 0x407640
add eax, 1
mov dword [esp + 0x60], 0x20
mov byte [ebx], al
jmp 0x407210
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], esi
jmp 0x406ce7
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
add ecx, edx
mov dword [esp + 0x34], eax
mov esi, edx
mov dword [esp + 0x3c], ecx
jmp 0x406e13
cmp ebx, 1
jne 0x407296
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x78], eax
jg 0x407d10
xor edx, edx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x54], edx
jmp 0x4072a0
mov eax, dword [esp + 0x40]
add dword [esp + 0x28], 1
mov dword [esp + 0x60], 0x20
mov byte [eax], 0x31
jmp 0x407210
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 0x406e7f
jmp 0x406e6d
mov byte [esp + 0x28], 0
mov dword [esp + 0x30], 1
jmp 0x40693a
mov dword [esp + 0x30], 1
jmp 0x40693a
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 0x407639
jne 0x4077b0
mov edx, dword [esp + 0x80]
and edx, 1
jne 0x407639
cmp dword [edi + 0x10], 1
mov dword [esp + 0x60], 0x10
jg 0x4073e0
mov eax, dword [edi + 0x14]
jmp 0x4073c7
mov dword [esp + 0x30], 1
jmp 0x406f88
mov eax, dword [esp + 0x48]
test eax, eax
je 0x407b01
fstp st(0)
fstp st(0)
cmp eax, 1
je 0x407bf1
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x40], edx
jmp 0x406ce7
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x70]
test ebx, ebx
je 0x407a27
cmp dword [edi + 0x10], 1
jle 0x407bfe
cmp dword [esp + 0x48], 2
je 0x407a81
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x8c], edx
jmp 0x4078be
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 ecx, dword [esp + 0x74]
add ecx, 1
test eax, eax
jg 0x407848
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 0x407c8a
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 0x407210
test esi, esi
je 0x406d24
mov esi, dword [esp + 0x20]
test esi, esi
jle 0x406d71
fmul dword [0x40b4bc]
fld st(0)
fmul dword [0x40b4c0]
fadd dword [0x40b4c4]
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 0x406a28
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 0x407045
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 0x406cb7
mov edx, dword [esp + 0x70]
cmp edx, 0x39
je 0x407c8a
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 0x407210
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
jmp 0x40739b
add dword [esp + 0x28], 1
mov eax, 0x31
mov dword [esp + 0x40], ebx
jmp 0x406b0c
test eax, eax
jle 0x407a77
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 0x407ca8
cmp edx, 0x39
je 0x407cc0
mov dword [esp + 0x48], 0x20
lea edx, [esi + 0x31]
cmp dword [edi + 0x10], 1
jle 0x407c5c
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 0x40790a
fstp st(2)
fxch st(1)
mov edi, dword [esp + 0x48]
jmp 0x40751a
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
jmp 0x406d98
mov eax, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
jmp 0x406f2b
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 0x406ce7
fadd st(0)
movzx eax, byte [edx - 1]
fcomi st(1)
ja 0x406adf
fucompi st(1)
fstp st(0)
mov ebx, dword [esp + 0x40]
jp 0x407b29
jne 0x407b29
test byte [esp + 0x8c], 1
jne 0x406afe
mov dword [esp + 0x60], 0x10
lea esi, [esi]
mov eax, edx
sub edx, 1
cmp byte [edx], 0x30
je 0x407b38
mov dword [esp + 0x40], eax
jmp 0x406ce7
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 0x406e2b
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 0x407ac3
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
jmp 0x407017
add dword [esp + 0x50], edx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x3c]
add eax, edx
mov esi, edx
mov dword [esp + 0x3c], eax
jmp 0x406e13
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 0x407b38
movzx eax, byte [edx - 1]
mov ebx, dword [esp + 0x40]
jmp 0x406afe
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x407825
test eax, eax
jg 0x407a2b
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 0x40790a
mov ecx, dword [esp + 0x34]
lea eax, [esi - 1]
cmp ecx, eax
jl 0x407674
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 0x406e13
mov ebx, dword [edi + 0x14]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
test ebx, ebx
mov dword [esp + 0x7c], eax
je 0x407cd5
mov eax, dword [esp + 0x74]
mov dword [esp + 0x60], 0x10
lea esi, [eax + 1]
jmp 0x40790a
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 0x407648
jne 0x407cb3
test dl, 1
jne 0x407a63
mov dword [esp + 0x48], 0x20
jmp 0x407a77
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 0x407c96
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x74]
lea esi, [eax + 1]
jmp 0x40790a
cmp dword [edi + 0x10], 1
mov dword [esp + 0x60], 0x10
jg 0x4071f7
xor eax, eax
cmp dword [edi + 0x14], 0
setne al
shl eax, 4
mov dword [esp + 0x60], eax
jmp 0x4071f7
add dword [esp + 0x3c], 1
mov ebx, dword [esp + 0x68]
add dword [esp + 0x50], 1
mov dword [esp + 0x54], 1
jmp 0x4072a0