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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xdc]
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0xd4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], esi
mov esi, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, eax
mov eax, esi
mov dword [esp + 0x30], edi
and eax, 0xffffffcf
mov dword [ecx], eax
mov eax, esi
and eax, 7
cmp eax, 3
je 0x405800
mov ecx, esi
and ecx, 4
mov dword [esp + 0x2c], ecx
jne 0x405598
test eax, eax
je 0x4057c8
sub eax, 1
xor ebx, ebx
cmp eax, 1
jbe 0x4055e0
add esp, 0xac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
cmp eax, 4
jne 0x405588
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc8], 3
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], 0x40a549
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.__nrv_alloc_D2A
mov edi, dword [edi]
xor edx, edx
mov eax, 0x20
cmp edi, 0x20
jle 0x4055f7
add eax, eax
add edx, 1
cmp edi, eax
jg 0x4055ee
mov dword [esp], edx
lea ebx, [edi - 1]
sar ebx, 5
shl ebx, 2
call sym.___Balloc_D2A
mov dword [esp + 0x38], ebx
mov ebp, eax
mov eax, dword [esp + 0x24]
lea edx, [ebp + 0x14]
lea ecx, [eax + ebx]
lea esi, [esi]
nop
mov ebx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ebx
cmp ecx, eax
jae 0x405620
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
add ecx, 1
add eax, 1
add ebx, 4
cmp ecx, eax
mov eax, 4
cmovb ebx, eax
sar ebx, 2
jmp 0x405658
test ebx, ebx
je 0x405840
mov eax, ebx
sub ebx, 1
mov edx, dword [ebp + ebx*4 + 0x14]
test edx, edx
je 0x405650
bsr edx, dword [ebp + ebx*4 + 0x14]
mov dword [ebp + 0x10], eax
shl eax, 5
xor edx, 0x1f
sub eax, edx
mov ebx, eax
mov dword [esp], ebp
call dbg.__trailz_D2A
mov edx, dword [esp + 0x28]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x60], edx
test eax, eax
jne 0x405850
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4057c0
lea eax, [esp + 0x9c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dbg.__b2d_D2A
mov ecx, dword [esp + 0x60]
fstp qword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
add ecx, ebx
mov dword [esp + 0x38], eax
mov eax, edx
and eax, 0xfffff
mov dword [esp + 0x50], ecx
sub ecx, 1
or eax, 0x3ff00000
mov dword [esp + 0x40], ecx
mov edx, ecx
mov dword [esp + 0x3c], eax
fld qword [esp + 0x38]
sar edx, 0x1f
fsub dword [0x40a550]
fmul qword [str.aCoc]
fadd qword [0x40a560]
fild dword [esp + 0x40]
fmul qword [0x40a568]
mov dword [esp + 0x40], edx
xor edx, ecx
sub edx, dword [esp + 0x40]
sub edx, 0x435
faddp st(1)
test edx, edx
jle 0x405730
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fmul qword [0x40a570]
faddp st(1)
fnstcw word [esp + 0x8e]
movzx edx, word [esp + 0x8e]
or dh, 0xc
mov word [esp + 0x8c], dx
fldcw word [esp + 0x8c]
fist dword [esp + 0x4c]
fldcw word [esp + 0x8e]
fldz
fcompi st(1)
ja 0x405ea0
fstp st(0)
mov edx, ecx
shl edx, 0x14
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, ebx
sub eax, ecx
lea edx, [eax - 1]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x4c]
cmp edx, 0x16
ja 0x405880
fld qword [edx*8 + 0x40a5c0]
fst qword [esp + 0x40]
fld qword [esp + 0x38]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x405b38
sub edx, 1
mov dword [esp + 0x74], 0
mov dword [esp + 0x4c], edx
jmp 0x405888
mov dword [esp], ebp
call sym.___Bfree_D2A
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x40a54d
call dbg.__nrv_alloc_D2A
add esp, 0xac
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [eax], 0xffff8000
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc8], 8
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], str.Infinity
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.__nrv_alloc_D2A
mov dword [ebp + 0x10], 0
jmp 0x405677
mov dword [esp + 4], eax
mov dword [esp], ebp
call dbg.__rshift_D2A
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x9c]
mov dword [esp + 0x60], eax
sub ebx, dword [esp + 0x9c]
jmp 0x405696
mov dword [esp + 0x74], 1
mov edx, dword [esp + 0x58]
mov dword [esp + 0x64], 0
test edx, edx
js 0x405e80
mov eax, dword [esp + 0x4c]
test eax, eax
jns 0x405b54
mov eax, dword [esp + 0x4c]
sub dword [esp + 0x64], eax
mov dword [esp + 0x4c], 0
mov ecx, eax
mov dword [esp + 0x6c], eax
neg ecx
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x18]
cmp eax, 9
ja 0x405b70
cmp eax, 5
jg 0x405ed0
mov eax, dword [esp + 0x50]
add eax, 0x3fd
cmp eax, 0x7f7
setbe al
movzx eax, al
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
cmp eax, 4
je 0x4064e0
cmp eax, 5
je 0x4062f0
cmp eax, 2
jne 0x405fe0
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x34]
mov eax, 1
test ecx, ecx
cmovg eax, ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], eax
mov dword [esp], eax
call sym.___rv_alloc_D2A
cmp dword [esp + 0x40], 0xe
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
setbe al
and al, byte [esp + 0x78]
sub dword [esp + 0x50], 1
mov byte [esp + 0x78], al
je 0x405990
mov ecx, dword [esp + 0x50]
mov eax, 2
test ecx, ecx
cmovns eax, ecx
and esi, 8
mov dword [esp + 0x50], eax
mov ecx, eax
je 0x405f70
mov eax, 3
sub eax, ecx
mov dword [esp + 0x50], eax
cmp byte [esp + 0x78], 0
je 0x405f70
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x6c]
jne 0x405f70
mov eax, dword [esp + 0x74]
fld qword [esp + 0x38]
mov dword [esp + 0x9c], 0
test eax, eax
je 0x4059ca
fld1
fcompi st(1)
ja 0x4068cb
fld st(0)
fadd st(1)
fadd dword [0x40a58c]
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], eax
mov eax, edx
sub eax, 0x3400000
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x405f33
mov dword [esp + 0x80], 0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
fld qword [esp + 0x50]
fld qword [esi*8 + 0x40a5b8]
test eax, eax
je 0x4066a0
fxch st(2)
fnstcw word [esp + 0x8e]
mov ecx, dword [esp + 0x5c]
movzx eax, word [esp + 0x8e]
or ah, 0xc
mov word [esp + 0x8c], ax
lea eax, [ecx + 1]
fldcw word [esp + 0x8c]
fist dword [esp + 0x50]
fldcw word [esp + 0x8e]
fxch st(2)
fdivr dword [0x40a594]
movzx edx, byte [esp + 0x50]
add edx, 0x30
mov byte [ecx], dl
fsubrp st(1)
fild dword [esp + 0x50]
fsubp st(2)
fcomi st(1)
jbe 0x405ad5
fstp st(0)
jmp 0x406b1e
mov edx, dword [esp + 0x9c]
add edx, 1
mov dword [esp + 0x9c], edx
cmp edx, esi
jge 0x405f57
fld dword [0x40a584]
add eax, 1
fmul st(1), st(0)
fmulp st(2)
fxch st(1)
fldcw word [esp + 0x8c]
fist dword [esp + 0x50]
fldcw word [esp + 0x8e]
fild dword [esp + 0x50]
movzx edx, byte [esp + 0x50]
add edx, 0x30
fsubp st(1)
fxch st(1)
mov byte [eax - 1], dl
fcomi st(1)
ja 0x406b1c
fld st(1)
fsubr dword [0x40a580]
fxch st(1)
fcomi st(1)
fstp st(1)
jbe 0x405a80
fstp st(0)
fstp st(0)
movzx edx, byte [eax - 1]
mov ebx, dword [esp + 0x5c]
mov ecx, eax
jmp 0x405b06
cmp eax, ebx
je 0x406a44
movzx edx, byte [eax - 1]
mov ecx, eax
lea eax, [ecx - 1]
cmp dl, 0x39
je 0x405af8
mov dword [esp + 0x5c], ecx
add edx, 1
mov byte [eax], dl
mov eax, dword [esp + 0x80]
mov dword [esp + 0x2c], 0x20
add eax, 1
mov dword [esp + 0x34], eax
jmp 0x405e46
mov edx, dword [esp + 0x58]
mov dword [esp + 0x74], 0
mov dword [esp + 0x64], 0
test edx, edx
js 0x405e80
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x70], 0
add dword [esp + 0x58], edx
mov dword [esp + 0x6c], edx
jmp 0x4058c4
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], edi
fild dword [esp + 0x34]
fmul qword [0x40a578]
fldcw word [esp + 0x8c]
fistp dword [esp + 0x34]
fldcw word [esp + 0x8e]
mov eax, dword [esp + 0x34]
add eax, 3
mov dword [esp], eax
mov dword [esp + 0x9c], eax
call sym.___rv_alloc_D2A
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
sub eax, 1
mov dword [esp + 0x50], eax
jne 0x405ee4
mov esi, dword [esp + 0x60]
test esi, esi
js 0x4069f1
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x6c]
cmp esi, dword [eax + 0x14]
jle 0x406502
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x7c], 0xffffffff
nop
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x60]
sub edi, ebx
lea ecx, [edi + 1]
mov eax, dword [eax + 4]
sub edx, edi
mov dword [esp + 0x9c], ecx
cmp edx, eax
jge 0x406300
mov esi, dword [esp + 0x18]
lea edx, [esi - 3]
and edx, 0xfffffffd
je 0x406300
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x40]
sub ecx, eax
add ecx, 1
cmp esi, 1
setg dl
test edi, edi
mov dword [esp + 0x9c], ecx
setg al
test dl, al
je 0x405c5c
cmp ecx, edi
jg 0x40630b
mov eax, dword [esp + 0x64]
add dword [esp + 0x58], ecx
mov edx, dword [esp + 0x70]
mov esi, eax
add eax, ecx
mov dword [esp + 0x64], eax
mov dword [esp], 1
mov dword [esp + 0x38], edx
call sym.___i2b_D2A
mov dword [esp + 0x68], 1
mov edx, dword [esp + 0x38]
mov edi, eax
test esi, esi
jle 0x405cb4
mov ecx, dword [esp + 0x58]
test ecx, ecx
jle 0x405cb4
cmp esi, ecx
mov eax, ecx
cmovle eax, esi
sub dword [esp + 0x64], eax
sub ecx, eax
mov dword [esp + 0x9c], eax
sub esi, eax
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x405d0a
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4064c7
test edx, edx
jle 0x405cfe
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 0x60], edx
call dbg.__pow5mult_D2A
mov dword [esp + 4], ebp
mov dword [esp], eax
mov edi, eax
call dbg.__mult_D2A
mov dword [esp], ebp
mov dword [esp + 0x38], eax
call sym.___Bfree_D2A
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x70]
sub eax, edx
jne 0x4064cb
mov dword [esp], 1
call sym.___i2b_D2A
cmp ebx, 1
mov edx, dword [esp + 0x4c]
sete bl
cmp dword [esp + 0x18], 1
mov dword [esp + 0x38], eax
mov ecx, eax
setle al
and ebx, eax
test edx, edx
jg 0x406068
mov dword [esp + 0x60], 0
test bl, bl
jne 0x406968
mov eax, dword [esp + 0x4c]
mov ebx, 0x1f
test eax, eax
jne 0x406088
sub ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
sub ebx, 4
and ebx, 0x1f
add edx, ebx
mov dword [esp + 0x9c], ebx
mov eax, ebx
test edx, edx
jle 0x405d8b
mov dword [esp], ebp
mov dword [esp + 4], edx
call dbg.__lshift_D2A
mov ebp, eax
mov eax, dword [esp + 0x9c]
add eax, dword [esp + 0x58]
test eax, eax
jle 0x405da7
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dbg.__lshift_D2A
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x18], 2
setg dl
test eax, eax
jne 0x406350
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x4060a0
test dl, dl
je 0x4060a0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x406047
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], eax
call dbg.__multadd_D2A
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 0x38], eax
call sym.___cmp_D2A
test eax, eax
jle 0x406047
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x5c]
add eax, 2
mov dword [esp + 0x34], eax
add dword [esp + 0x5c], 1
mov byte [ebx], 0x31
mov dword [esp + 0x2c], 0x20
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sym.___Bfree_D2A
test edi, edi
je 0x405e46
mov dword [esp], edi
call sym.___Bfree_D2A
mov dword [esp], ebp
call sym.___Bfree_D2A
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x34]
mov byte [eax], 0
mov dword [esi], edi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x405e69
mov dword [esi], eax
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x2c]
or dword [eax], esi
add esp, 0xac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
mov dword [esp + 0x58], 0
sub edx, eax
mov dword [esp + 0x64], edx
jmp 0x40589c
fild dword [esp + 0x4c]
fucomi st(1)
jp 0x405eb4
fcompi st(1)
fstp st(0)
je 0x405768
jmp 0x405ec0
fstp st(0)
fstp st(0)
lea esi, [esi]
nop
sub dword [esp + 0x4c], 1
jmp 0x405768
sub eax, 4
mov dword [esp + 0x78], 0
mov dword [esp + 0x18], eax
jmp 0x4058f2
mov dword [esp + 0x34], 0
mov byte [esp + 0x78], 0
mov dword [esp + 0x68], 1
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
jmp 0x405968
fld st(0)
fadd st(1)
fadd dword [0x40a58c]
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], eax
mov eax, edx
sub eax, 0x3400000
mov dword [esp + 0x54], eax
fsub dword [0x40a590]
fld qword [esp + 0x50]
fxch st(1)
fcomi st(1)
ja 0x406993
fxch st(1)
fchs
fcompi st(1)
fstp st(0)
ja 0x40603d
jmp 0x405f63
fstp st(0)
fstp st(0)
jmp 0x405f63
fstp st(0)
jmp 0x405f63
fstp st(0)
mov dword [esp + 0x50], 0
lea esi, [esi]
nop
mov ecx, dword [esp + 0x60]
test ecx, ecx
js 0x406020
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
cmp dword [esi + 0x14], eax
jl 0x406020
mov edx, dword [esp + 0x34]
fld qword [eax*8 + 0x40a5c0]
test edx, edx
jns 0x406515
mov edi, dword [esp + 0x40]
test edi, edi
jg 0x406515
jne 0x40603b
fmul dword [0x40a590]
fld qword [esp + 0x38]
fxch st(1)
fcompi st(1)
fstp st(0)
jae 0x40603d
add eax, 2
mov dword [esp + 0x38], 0
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
jmp 0x405e1e
cmp eax, 3
jne 0x405b78
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
add eax, 1
mov dword [esp + 0x40], eax
test eax, eax
jle 0x4064ed
mov dword [esp + 0x9c], eax
jmp 0x40593a
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x405c00
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x64]
xor edi, edi
jmp 0x405c8e
fstp st(0)
mov dword [esp + 0x38], 0
xor edi, edi
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x2c], 0x10
neg eax
mov dword [esp + 0x34], eax
jmp 0x405e2e
mov dword [esp + 4], edx
mov dword [esp], ecx
call dbg.__pow5mult_D2A
mov dword [esp + 0x38], eax
test bl, bl
jne 0x406a2b
mov dword [esp + 0x60], 0
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 0x10]
bsr ebx, dword [ebx + eax*4 + 0x10]
xor ebx, 0x1f
jmp 0x405d59
mov eax, dword [esp + 0x6c]
add eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4063d0
add ebx, esi
test ebx, ebx
jle 0x4060cb
mov dword [esp], edi
mov dword [esp + 4], ebx
call dbg.__lshift_D2A
mov edi, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], edi
test eax, eax
jne 0x406922
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x9c], 1
mov dword [esp + 0x30], eax
jmp 0x4061bb
mov dword [esp], edx
call sym.___Bfree_D2A
mov eax, 1
test ebx, ebx
js 0x4067b8
or ebx, dword [esp + 0x18]
jne 0x406128
mov ecx, dword [esp + 0x24]
test byte [ecx], 1
je 0x4067b8
mov ecx, dword [esp + 0x30]
lea ebx, [ecx + 1]
mov edx, ebx
test eax, eax
jle 0x406140
cmp dword [esp + 0x50], 2
jne 0x4069b2
movzx eax, byte [esp + 0x28]
mov byte [ebx - 1], al
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x9c], eax
je 0x4069e4
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call dbg.__multadd_D2A
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov ebp, eax
mov dword [esp], edi
cmp edi, esi
je 0x4062d8
call dbg.__multadd_D2A
mov dword [esp], esi
mov dword [esp + 8], 0
mov edi, eax
mov dword [esp + 4], 0xa
call dbg.__multadd_D2A
mov esi, eax
add dword [esp + 0x9c], 1
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dbg.__quorem_D2A
mov dword [esp + 4], edi
mov dword [esp], ebp
lea ecx, [eax + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
call sym.___cmp_D2A
mov dword [esp + 4], esi
mov ebx, eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dbg.__diff_D2A
mov edx, eax
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x406100
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x60], edx
call sym.___cmp_D2A
mov edx, dword [esp + 0x60]
mov dword [esp + 0x58], eax
mov dword [esp], edx
call sym.___Bfree_D2A
mov eax, dword [esp + 0x58]
or eax, dword [esp + 0x18]
jne 0x406cbf
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
mov edx, ecx
mov dword [esp + 0x58], ecx
and edx, 1
or edx, dword [esp + 0x50]
jne 0x40610d
cmp dword [esp + 0x28], 0x39
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x4c]
je 0x406ac5
test ebx, ebx
jle 0x406c9e
lea eax, [esi + 0x31]
mov dword [esp + 0x28], eax
mov eax, 0x20
mov ebx, dword [esp + 0x30]
movzx ecx, byte [esp + 0x28]
mov dword [esp + 0x2c], eax
mov byte [ebx], cl
mov ecx, edi
mov edi, dword [esp + 0x58]
lea esi, [ebx + 1]
lea esi, [esi]
nop
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov dword [esp], eax
call sym.___Bfree_D2A
test edi, edi
je 0x4065f2
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x406afe
cmp ecx, edi
je 0x406afe
mov dword [esp], ecx
call sym.___Bfree_D2A
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], esi
jmp 0x405e3e
call dbg.__multadd_D2A
mov edi, eax
mov esi, eax
jmp 0x4061af
mov dword [esp + 0x68], 1
jmp 0x405ff1
cmp dword [esp + 0x18], 1
jle 0x405c5c
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x70]
sub eax, 1
cmp edi, eax
jl 0x4065ff
sub edi, eax
mov edx, edi
mov eax, dword [esp + 0x40]
test eax, eax
js 0x4068b3
mov edi, dword [esp + 0x64]
add dword [esp + 0x58], eax
mov dword [esp + 0x9c], eax
add eax, edi
mov esi, edi
mov dword [esp + 0x64], eax
jmp 0x405c70
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov byte [esp + 0x28], dl
mov dword [esp + 4], eax
call sym.___cmp_D2A
movzx edx, byte [esp + 0x28]
test eax, eax
jns 0x405dbb
mov dword [esp], ebp
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
sub eax, 1
mov dword [esp + 0x30], eax
call dbg.__multadd_D2A
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
mov ebp, eax
test edx, edx
movzx edx, byte [esp + 0x28]
setle al
and edx, eax
test ecx, ecx
jne 0x406b87
test dl, dl
jne 0x406ae9
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
lea esi, [esi]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], edi
mov dword [esp + 0x9c], 1
mov edi, dword [esp + 0x38]
jmp 0x406412
mov dword [esp], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call dbg.__multadd_D2A
add dword [esp + 0x9c], 1
mov ebp, eax
mov dword [esp + 4], edi
add esi, 1
mov dword [esp], ebp
call dbg.__quorem_D2A
add eax, 0x30
mov byte [esi - 1], al
cmp dword [esp + 0x9c], ebx
jl 0x4063f0
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40662d
cmp eax, 2
je 0x40649d
cmp dword [ebp + 0x10], 1
movzx edx, byte [esi - 1]
jg 0x40645c
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4064af
mov ebx, dword [esp + 0x5c]
jmp 0x406476
cmp eax, ebx
je 0x406614
movzx edx, byte [eax - 1]
mov esi, eax
lea eax, [esi - 1]
cmp dl, 0x39
je 0x406468
add edx, 1
mov dword [esp + 0x2c], 0x20
mov byte [eax], dl
jmp 0x406290
jne 0x40649d
test byte [esp + 0x28], 1
jne 0x40665f
cmp dword [ebp + 0x10], 1
jle 0x406bc7
mov dword [esp + 0x2c], 0x10
mov eax, esi
lea esi, [esi]
mov esi, eax
sub eax, 1
cmp byte [eax], 0x30
je 0x4064b8
jmp 0x406290
mov eax, dword [esp + 0x70]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dbg.__pow5mult_D2A
mov ebp, eax
jmp 0x405d0a
mov dword [esp + 0x68], 1
jmp 0x405919
mov dword [esp + 0x9c], 1
mov eax, 1
jmp 0x40593a
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], 0xffffffff
fld qword [eax*8 + 0x40a5c0]
fnstcw word [esp + 0x8e]
fld qword [esp + 0x38]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x9c], 1
movzx eax, word [esp + 0x8e]
fld st(0)
fdiv st(2)
or ah, 0xc
mov word [esp + 0x8c], ax
lea eax, [edi + 1]
fldcw word [esp + 0x8c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x8e]
fild dword [esp + 0x18]
movzx esi, byte [esp + 0x18]
lea edx, [esi + 0x30]
mov esi, dword [esp + 0x6c]
fmul st(2)
mov byte [edi], dl
lea ecx, [esi + 1]
mov dword [esp + 0x34], ecx
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jnp 0x4065df
lea esi, [esi]
mov edx, dword [esp + 0x9c]
cmp edx, dword [esp + 0x40]
je 0x40666c
fmul dword [0x40a584]
add edx, 1
add eax, 1
mov dword [esp + 0x9c], edx
fld st(0)
fdiv st(2)
fldcw word [esp + 0x8c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x8e]
fild dword [esp + 0x18]
movzx edi, byte [esp + 0x18]
lea edx, [edi + 0x30]
fmul st(2)
mov byte [eax - 1], dl
fsubp st(1)
fldz
fxch st(1)
fucomi st(1)
fstp st(1)
jp 0x406588
jne 0x406588
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
jmp 0x405e46
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], esi
jmp 0x405e46
mov edx, eax
sub edx, dword [esp + 0x70]
mov dword [esp + 0x70], eax
add dword [esp + 0x4c], edx
xor edx, edx
jmp 0x406322
mov eax, dword [esp + 0x5c]
add dword [esp + 0x34], 1
mov dword [esp + 0x2c], 0x20
mov byte [eax], 0x31
jmp 0x406290
mov dword [esp], ebp
mov dword [esp + 4], 1
mov dword [esp + 0x18], ecx
call dbg.__lshift_D2A
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym.___cmp_D2A
mov ecx, dword [esp + 0x18]
test eax, eax
jle 0x406490
movzx edx, byte [esi - 1]
mov ebx, dword [esp + 0x5c]
jmp 0x406476
mov esi, dword [esp + 0x50]
test esi, esi
je 0x406b55
fstp st(0)
fstp st(0)
cmp esi, 1
je 0x406bdf
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
jmp 0x406693
fstp st(0)
fstp st(0)
mov dword [esp + 0x2c], 0x10
jmp 0x405e46
fnstcw word [esp + 0x8e]
fmulp st(1)
xor ecx, ecx
mov dword [esp + 0x84], ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x88], edi
mov edi, ecx
movzx edx, word [esp + 0x8e]
movzx ebp, byte [esp + 0x78]
mov dword [esp + 0x9c], 1
or dh, 0xc
fld st(1)
mov word [esp + 0x8c], dx
jmp 0x406702
add ecx, 1
fmul dword [0x40a584]
mov edi, ebp
mov dword [esp + 0x9c], ecx
fldcw word [esp + 0x8c]
fist dword [esp + 0x50]
fldcw word [esp + 0x8e]
mov edx, dword [esp + 0x50]
test edx, edx
je 0x406724
fild dword [esp + 0x50]
mov edi, ebp
fsubp st(1)
add eax, 1
add edx, 0x30
mov byte [eax - 1], dl
mov ecx, dword [esp + 0x9c]
cmp ecx, esi
jne 0x4066f0
mov ecx, edi
mov ebp, dword [esp + 0x84]
mov edi, dword [esp + 0x88]
test cl, cl
fcmove st(0), st(2)
fstp st(2)
fld dword [0x40a594]
fld st(1)
fadd st(1)
fxch st(3)
fcomi st(3)
fstp st(3)
ja 0x406b0b
fsubrp st(1)
fcompi st(1)
jbe 0x405f5d
fldz
mov ebx, dword [esp + 0x5c]
fucomi st(1)
jp 0x406784
fcompi st(1)
fstp st(0)
je 0x406c73
jmp 0x406788
fstp st(0)
fstp st(0)
mov edi, dword [esp + 0x80]
mov dword [esp + 0x2c], 0x10
lea ecx, [edi + 1]
lea esi, [esi]
mov edx, eax
lea eax, [eax - 1]
cmp byte [edx - 1], 0x30
je 0x4067a0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x34], ecx
jmp 0x405e46
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x4c]
test ecx, ecx
je 0x406a5d
cmp dword [ebp + 0x10], 1
jle 0x406bf9
cmp dword [esp + 0x50], 2
je 0x406aab
mov ebx, edi
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x30]
jmp 0x40685a
movzx eax, byte [esp + 0x28]
mov dword [esp + 0x24], ecx
mov byte [ecx - 1], al
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
call dbg.__multadd_D2A
mov dword [esp], ebp
cmp ebx, esi
mov dword [esp + 8], 0
cmove ebx, eax
mov dword [esp + 4], 0xa
mov dword [esp + 0x18], eax
call dbg.__multadd_D2A
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dbg.__quorem_D2A
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add eax, 0x30
mov dword [esp + 0x28], eax
mov edi, ecx
mov esi, edx
mov eax, dword [esp + 0x38]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.___cmp_D2A
lea ecx, [edi + 1]
test eax, eax
jg 0x4067f0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], edi
mov edi, ebx
mov ebx, ecx
mov dword [esp + 0x58], esi
cmp eax, 0x39
je 0x406acc
add eax, 1
mov dword [esp + 0x2c], 0x20
mov ecx, edi
mov edi, esi
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x28]
mov esi, ebx
mov ebx, dword [esp + 0x30]
mov byte [ebx], al
jmp 0x406290
mov dword [esp + 0x9c], 0
mov esi, dword [esp + 0x64]
sub esi, dword [esp + 0x40]
jmp 0x405c70
mov eax, dword [esp + 0x40]
test eax, eax
je 0x405f0e
mov esi, dword [esp + 0x7c]
test esi, esi
jle 0x405f61
fmul dword [0x40a584]
mov dword [esp + 0x80], 0xffffffff
fld st(0)
fmul dword [0x40a588]
fadd dword [0x40a58c]
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], eax
mov eax, edx
sub eax, 0x3400000
mov dword [esp + 0x54], eax
jmp 0x405a0a
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym.___Balloc_D2A
lea ecx, [eax + 0xc]
mov ebx, eax
mov eax, dword [edi + 0x10]
mov dword [esp], ecx
lea edx, [eax*4 + 8]
lea eax, [edi + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._memcpy
mov dword [esp + 4], 1
mov dword [esp], ebx
call dbg.__lshift_D2A
mov dword [esp + 0x58], eax
jmp 0x4060db
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
add eax, 1
cmp eax, dword [esp + 0x28]
jge 0x405d48
add dword [esp + 0x64], 1
add dword [esp + 0x58], 1
mov dword [esp + 0x60], 1
jmp 0x405d48
fstp st(0)
fstp st(0)
mov dword [esp + 0x34], 2
mov ebx, dword [esp + 0x5c]
xor edi, edi
mov dword [esp + 0x38], 0
jmp 0x405e1e
cmp dword [esp + 0x28], 0x39
mov dword [esp + 0x58], esi
mov esi, ebx
je 0x406acc
movzx eax, byte [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov ecx, edi
mov dword [esp + 0x2c], 0x20
mov edi, dword [esp + 0x58]
add eax, 1
mov byte [ebx], al
jmp 0x406290
mov eax, esi
mov ecx, edi
mov esi, edx
mov edi, eax
jmp 0x40643a
mov eax, dword [esp + 0x30]
sub edi, ebx
mov dword [esp + 0x34], 0
lea ecx, [edi + 1]
sub esi, edi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [eax + 4]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x7c], 0xffffffff
cmp esi, eax
jl 0x405c21
jmp 0x405c5c
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
add eax, 1
cmp dword [esp + 0x28], eax
jg 0x40697c
jmp 0x406080
add dword [esp + 0x80], 1
mov edx, 0x31
mov dword [esp + 0x5c], ecx
mov byte [ebx], 0x30
jmp 0x405b15
test eax, eax
jle 0x406aa1
mov dword [esp], ebp
mov dword [esp + 4], 1
call dbg.__lshift_D2A
mov ebp, eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym.___cmp_D2A
test eax, eax
jle 0x406c59
cmp dword [esp + 0x28], 0x39
je 0x406ac5
lea eax, [esi + 0x31]
mov dword [esp + 0x50], 0x20
mov dword [esp + 0x28], eax
cmp dword [ebp + 0x10], 1
jle 0x406c38
mov eax, dword [esp + 0x30]
mov ecx, edi
mov dword [esp + 0x2c], 0x10
mov edi, dword [esp + 0x58]
lea ebx, [eax + 1]
jmp 0x4068a1
mov eax, dword [esp + 0x30]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x30]
mov esi, ebx
mov ecx, edi
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov edx, 0x39
mov byte [eax], 0x39
jmp 0x406476
mov eax, dword [esp + 0x30]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
jmp 0x405dcf
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], esi
jmp 0x405e3e
fstp st(0)
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x5c]
mov ecx, eax
jmp 0x405b06
fstp st(0)
mov edi, dword [esp + 0x80]
fldz
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x5c], eax
add edi, 1
fucomi st(1)
mov dword [esp + 0x34], edi
jp 0x40668f
fcompi st(1)
fstp st(0)
jne 0x406693
mov dword [esp + 0x2c], 0
jmp 0x405e46
fadd st(0)
movzx edx, byte [eax - 1]
fcomi st(1)
ja 0x406c1e
fucompi st(1)
fstp st(0)
mov ebx, dword [esp + 0x5c]
jp 0x406b7a
jne 0x406b7a
test byte [esp + 0x18], 1
jne 0x406c26
mov dword [esp + 0x2c], 0x10
jmp 0x4067a0
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xa
mov byte [esp + 0x28], dl
call dbg.__multadd_D2A
movzx edx, byte [esp + 0x28]
mov edi, eax
test dl, dl
jne 0x406ae9
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
jmp 0x4060b7
mov ebx, dword [ebp + 0x14]
mov eax, 0x10
test ebx, ebx
cmove eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
jmp 0x4064af
mov edi, dword [esp + 0x6c]
movzx edx, byte [eax - 1]
mov ecx, eax
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x80], edi
jmp 0x405b06
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4067d6
test eax, eax
jg 0x406a61
mov eax, dword [esp + 0x30]
mov ecx, edi
mov edi, dword [esp + 0x58]
lea ebx, [eax + 1]
jmp 0x4068a1
fstp st(0)
fstp st(0)
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x6c]
mov ecx, eax
mov dword [esp + 0x80], edi
jmp 0x405b06
mov eax, dword [ebp + 0x14]
mov ecx, edi
mov edi, dword [esp + 0x58]
test eax, eax
je 0x406c8a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], 0x10
lea ebx, [eax + 1]
jmp 0x4068a1
jne 0x406c66
test byte [esp + 0x28], 1
jne 0x406a8b
mov dword [esp + 0x50], 0x20
jmp 0x406aa1
mov edi, dword [esp + 0x80]
mov dword [esp + 0x2c], 0
lea ecx, [edi + 1]
jmp 0x4067a0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
lea ebx, [eax + 1]
jmp 0x4068a1
cmp dword [ebp + 0x10], 1
jle 0x406cae
mov eax, 0x10
jmp 0x40626f
cmp dword [ebp + 0x14], 0
mov edx, 0x10
cmovne eax, edx
jmp 0x40626f
mov eax, dword [esp + 0x58]
jmp 0x40610d