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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1cc
mov ecx, dword [esp + 0x1e0]
mov esi, dword [esp + 0x1e4]
test esi, esi
sete dl
test ecx, ecx
sete al
or eax, edx
test al, 1
je 0x405bf0
mov esi, 1
lea ecx, [esp + 0xb0]
lea eax, [esp + 0xb0]
mov dword [esp + 0x1b0], ecx
mov dword [esp + 0x1b4], eax
mov edx, dword [esp + 0x1e8]
lea eax, [ecx + esi - 1]
mov ecx, dword [esp + 0x1ec]
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x3c], 0
lea ebp, [esp + 0xb0]
mov dword [esp + 0x8c], 0
mov ebx, dword [esp + 0x70]
movsx esi, byte [ebx]
inc ebx
test esi, esi
mov dword [esp + 0x70], ebx
je 0x405cb6
cmp esi, 0x25
je 0x405d13
mov eax, esi
lea edx, [esp + 0x1b0]
mov byte [ebp], al
inc ebp
cmp ebp, edx
jne 0x405c60
push edi
push edi
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebx, dword [esp + 0x70]
mov ebp, eax
movsx esi, byte [ebx]
inc ebx
test esi, esi
mov dword [esp + 0x70], ebx
jne 0x405c70
lea edx, [esp + 0xb0]
mov eax, ebp
mov byte [ebp], 0
sub eax, edx
mov dword [esp + 0x1bc], eax
mov ebx, eax
mov edx, dword [esp + 0x1b0]
mov eax, dword [esp + 0x1b8]
mov edi, dword [esp + 0x8c]
sub eax, edx
mov ecx, dword [esp + 0x1bc]
add ebx, edi
cmp ecx, eax
jbe 0x405cfb
mov ecx, eax
mov dword [esp + 0x1bc], eax
test ecx, ecx
jne 0x405de3
mov byte [edx], 0
mov eax, ebx
add esp, 0x1cc
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
xor ecx, ecx
xor edx, edx
mov al, byte [edi]
movsx eax, al
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x34], eax
inc ebx
sub eax, 0x20
mov dword [esp + 0x70], ebx
cmp eax, 0x58
jbe switch.0x00405ddc
mov byte [ebp], 0x25
lea edx, [esp + 0x1b0]
inc ebp
cmp ebp, edx
je 0x405eec
cmp edi, dword [esp + 0x70]
jae 0x405c60
lea ebx, [esp + 0x8c]
mov al, byte [edi]
lea esi, [esp + 0x1b0]
mov byte [ebp], al
inc ebp
inc edi
cmp ebp, esi
je 0x405dc0
cmp edi, dword [esp + 0x70]
jae 0x405c60
mov al, byte [edi]
lea esi, [esp + 0x1b0]
mov byte [ebp], al
inc ebp
inc edi
cmp ebp, esi
jne 0x405da4
push ebp
push ebp
push ebx
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x405da4
jmp dword [eax*4 + 0x40d120]
push esi
push ecx
lea ecx, [esp + 0xb8]
push ecx
push edx
call sym._memcpy
mov ecx, dword [esp + 0x1c0]
mov edx, dword [esp + 0x1cc]
mov eax, ebx
add edx, ecx
mov dword [esp + 0x1c0], edx
add esp, 0x10
mov byte [edx], 0
add esp, 0x1cc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x38], 1
mov edx, 1
mov dword [esp + 0x68], 0x40a048
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], 0
test ecx, ecx
je 0x405e52
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], 2
mov dword [esp + 0x20], eax
mov ebx, 0x10
cmp edx, 1
je 0x405f0d
jb 0x405f0d
cmp edx, 2
je 0x406b98
cmp edx, 3
jne 0x405f28
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x6c]
add esi, 8
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x6c], esi
jmp 0x405f20
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x34]
sub ebx, 0x30
mov al, byte [esi]
movsx esi, al
cmp esi, 0x2f
jle 0x405ec9
cmp esi, 0x39
jg 0x405ec9
lea eax, [ebx + ebx*4]
lea ebx, [esi + eax*2 - 0x30]
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x70], eax
mov esi, dword [esp + 0x70]
mov al, byte [esi]
movsx esi, al
cmp esi, 0x2f
jg 0x405ea6
test ecx, ecx
je 0x406e5c
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
test esi, esi
je 0x405d55
neg ebx
mov dword [esp + 0x28], ebx
jmp 0x405d55
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x405d81
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
add edx, 4
xor ecx, ecx
mov dword [esp + 0x6c], edx
mov edx, dword [eax]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x54]
or ecx, dword [esp + 0x50]
jne 0x405f42
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x38]
or ecx, dword [esp + 0x50]
mov esi, ebx
setne al
and eax, 0xff
lea edx, [esp + 0x90]
neg eax
and edi, eax
mov dword [esp + 0x64], edx
sar esi, 0x1f
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
lea esi, [esi]
mov esi, dword [esp + 0x14]
push esi
mov ebx, dword [esp + 0x14]
push ebx
mov ecx, dword [esp + 0x5c]
push ecx
mov edx, dword [esp + 0x5c]
push edx
call sym.___udivdi3
add esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x68]
mul dword [esp + 8]
mov edx, dword [esp + 0x50]
mov ecx, eax
sub edx, ecx
mov esi, dword [esp + 0x64]
mov cl, byte [edx + ebx]
mov byte [esi], cl
inc esi
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x54], edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], eax
or edx, eax
jne 0x405f7c
lea edx, [esp + 0x90]
mov eax, dword [esp + 0x28]
sub esi, edx
sub eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
test eax, eax
setne dl
cmp dword [esp + 0x34], 0x6f
sete al
and eax, 0xff
test edx, eax
je 0x40600f
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x406f83
mov eax, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x406058
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x406037
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sub edi, ecx
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x20], 1
adc dword [esp + 0x1c], 0xffffffff
cmp dword [esp + 0x38], 2
sete al
mov esi, dword [esp + 0x1c]
and eax, 0xff
sub esi, eax
mov dword [esp + 0x1c], esi
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40613d
cmp dword [esp + 0x38], 2
je 0x406e20
mov edx, dword [esp + 0x20]
test edx, edx
je 0x40608e
mov al, byte [esp + 0x20]
lea edx, [esp + 0x1b0]
mov byte [ebp], al
inc ebp
cmp ebp, edx
je 0x4072ed
dec dword [esp + 0x28]
js 0x4060bc
lea ebx, [esp + 0x8c]
nop
mov byte [ebp], 0x30
lea esi, [esp + 0x1b0]
inc ebp
cmp ebp, esi
je 0x406c1a
dec dword [esp + 0x28]
jns 0x40609c
lea esi, [esi]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x1b0]
dec eax
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x64]
mov al, byte [edx]
mov byte [ebp], al
inc ebp
cmp ebp, ecx
je 0x406bdf
lea esi, [esp + 0x90]
cmp esi, dword [esp + 0x64]
jb 0x4060bc
dec dword [esp + 0x1c]
js 0x405c60
lea ebx, [esp + 0x8c]
mov byte [ebp], 0x20
lea eax, [esp + 0x1b0]
inc ebp
cmp ebp, eax
je 0x406126
dec dword [esp + 0x1c]
js 0x405c60
mov byte [ebp], 0x20
lea eax, [esp + 0x1b0]
inc ebp
cmp ebp, eax
jne 0x40610c
push eax
push eax
push ebx
lea edx, [esp + 0x1bc]
push edx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x40610c
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x406178
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x406eba
dec dword [esp + 0x1c]
js 0x406178
lea ebx, [esp + 0x8c]
mov byte [ebp], 0x20
lea edx, [esp + 0x1b0]
inc ebp
cmp ebp, edx
je 0x406d28
dec dword [esp + 0x1c]
jns 0x40615e
cmp dword [esp + 0x38], 2
je 0x406f41
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4061a2
mov al, byte [esp + 0x20]
lea edx, [esp + 0x1b0]
mov byte [ebp], al
inc ebp
cmp ebp, edx
je 0x40732f
dec dword [esp + 0x28]
js 0x4061d7
lea ebx, [esp + 0x8c]
mov byte [ebp], 0x30
inc ebp
lea esi, [esp + 0x1b0]
jmp 0x4061c9
mov byte [ebp], 0x30
lea esi, [esp + 0x1b0]
inc ebp
cmp ebp, esi
je 0x406c00
dec dword [esp + 0x28]
jns 0x4061bd
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x1b0]
dec eax
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x64]
mov al, byte [edx]
mov byte [ebp], al
inc ebp
cmp ebp, ecx
je 0x40622b
lea esi, [esi]
lea esi, [esp + 0x90]
cmp esi, dword [esp + 0x64]
jae 0x405c60
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x1b0]
dec eax
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x64]
mov al, byte [edx]
mov byte [ebp], al
inc ebp
cmp ebp, ecx
jne 0x4061fc
push edi
push edi
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0x1bc]
push ebx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4061fc
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x6c]
add ebx, 4
test ecx, ecx
mov dword [esp + 0x6c], ebx
mov ebx, dword [eax]
je 0x406f90
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x70]
mov al, byte [ebx]
jmp 0x405d55
mov esi, dword [esp + 0x70]
mov al, byte [esi]
cmp al, 0x33
je 0x4070ff
cmp al, 0x36
je 0x406bc0
mov edx, 1
jmp 0x405d55
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x6c]
add esi, 4
mov eax, dword [eax]
mov dword [esp + 0x6c], esi
test eax, eax
jne 0x4062ad
lea eax, [esp + 0x80]
mov esi, ebp
lea ecx, [esp + 0xb0]
sub esi, ecx
mov ebx, dword [esp + 0x8c]
add esi, ebx
cmp edx, 1
je 0x406f7c
jb 0x406f7c
cmp edx, 2
je 0x407399
cmp edx, 3
jne 0x405c60
mov ebx, esi
mov dword [eax], esi
sar ebx, 0x1f
mov dword [eax + 4], ebx
jmp 0x405c60
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x6c]
add ebx, 4
mov dword [esp + 0x60], 0
mov eax, dword [eax]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], eax
test eax, eax
je 0x40727e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x28]
xor eax, 0xffffffff
sar eax, 0x1f
and edx, eax
test ecx, ecx
mov dword [esp + 0x28], edx
je 0x406f28
mov ebx, dword [esp + 0x28]
xor esi, esi
cmp dword [esp + 0x60], ebx
jge 0x40634f
mov eax, dword [esp + 0x64]
cmp byte [eax + esi], 0
je 0x40634f
inc esi
cmp esi, dword [esp + 0x28]
jl 0x40633e
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x406390
dec dword [esp + 0x1c]
js 0x406390
lea ebx, [esp + 0x8c]
mov byte [ebp], 0x20
lea ecx, [esp + 0x1b0]
inc ebp
cmp ebp, ecx
je 0x407006
dec dword [esp + 0x1c]
jns 0x406376
dec dword [esp + 0x28]
js 0x4063c1
lea ebx, [esp + 0x8c]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x1b0]
mov al, byte [edx]
inc edx
mov dword [esp + 0x64], edx
mov byte [ebp], al
inc ebp
cmp ebp, ecx
je 0x406e86
dec dword [esp + 0x28]
jns 0x40639d
dec dword [esp + 0x1c]
js 0x4063e8
lea ebx, [esp + 0x8c]
mov byte [ebp], 0x20
lea eax, [esp + 0x1b0]
inc ebp
cmp ebp, eax
je 0x406ea0
dec dword [esp + 0x1c]
jns 0x4063ce
mov esi, dword [esp + 0x60]
test esi, esi
je 0x405c60
sub esp, 0xc
mov eax, dword [esp + 0x6c]
push eax
call sym.___freedtoa
add esp, 0x10
jmp 0x405c60
mov esi, dword [esp + 0x30]
or esi, ecx
jne case.0x405ddc.49
mov dword [esp + 0x30], 1
jmp 0x406266
test ecx, ecx
jne 0x40642e
mov dword [esp + 0x28], 6
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x406fc7
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
add ecx, 0xc
fld xword [eax]
mov dword [esp + 0x6c], ecx
fstp xword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x28]
xor eax, 0xffffffff
sar eax, 0x1f
and edi, eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x28], edi
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
push eax
mov esi, dword [esp + 0x34]
push esi
cmp dword [esp + 0x38], 1
sbb eax, eax
xor eax, 0xffffffff
and eax, 2
push eax
mov ebx, dword [esp + 0x5c]
push ebx
mov ecx, dword [esp + 0x5c]
push ecx
mov edx, dword [esp + 0x5c]
push edx
call sym.___ldtoa
add esp, 0x20
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
cmp ecx, 0xffff8000
je 0x40682e
mov esi, dword [esp + 0x7c]
sub esi, eax
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4064e7
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], esi
cmp byte [eax + 1], 0
mov eax, dword [esp + 0x38]
setne dl
test eax, eax
setne al
or eax, edx
test al, 1
je 0x407276
lea eax, [esi + 5]
cmp ecx, 0xfffffffc
jle 0x4064f4
cmp ecx, eax
jle 0x40728b
mov eax, dword [esp + 0x34]
sub eax, 2
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
test eax, eax
sete dl
cmp dword [esp + 0x28], esi
setg al
and eax, 0xff
test edx, eax
je 0x40651c
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x28]
dec edi
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x78]
test eax, eax
je 0x406557
fldz
fld xword [esp + 0x40]
fucompp
fnstsw ax
and ah, 0x45
xor ah, 0x40
mov edi, dword [esp + 0x20]
setne dl
test edi, edi
setne al
or eax, edx
test al, 1
je 0x406557
mov dword [esp + 0x20], 0x2d
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
sub eax, esi
lea edx, [eax - 5]
mov dword [esp + 0x1c], edx
test edx, edx
jle 0x40658d
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40657b
sub eax, 6
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
or eax, edx
cmp eax, 1
adc dword [esp + 0x1c], 0xffffffff
lea eax, [ecx - 1]
mov esi, eax
mov dword [esp + 0x74], eax
sar eax, 0x1f
xor esi, eax
sub esi, eax
cmp esi, 0x63
jle 0x4065c5
mov ecx, 0x66666667
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
mov eax, esi
imul ecx
sar edx, 2
mov eax, esi
sar eax, 0x1f
mov esi, edx
sub esi, eax
cmp esi, 0x63
jg 0x4065a7
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
test eax, eax
setg dl
test edi, edi
sete al
and eax, 0xff
test edx, eax
je 0x406b54
mov esi, dword [esp + 0x30]
lea ebx, [esp + 0x8c]
test esi, esi
je 0x406b2f
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x406616
mov dl, byte [esp + 0x20]
lea ecx, [esp + 0x1b0]
mov byte [ebp], dl
inc ebp
cmp ebp, ecx
je 0x40747a
lea ebx, [esp + 0x8c]
mov byte [ebp], 0x30
lea esi, [esp + 0x1b0]
inc ebp
cmp ebp, esi
je 0x40707d
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x40661d
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x1b0]
mov al, byte [edx]
inc edx
mov dword [esp + 0x64], edx
mov byte [ebp], al
inc ebp
cmp ebp, ecx
je 0x40730e
mov esi, dword [esp + 0x28]
or esi, dword [esp + 0x38]
je 0x406699
mov byte [ebp], 0x2e
lea eax, [esp + 0x1b0]
inc ebp
cmp ebp, eax
jne 0x406699
jmp 0x4073d0
mov esi, 0x30
mov ebx, esi
lea esi, [esp + 0x1b0]
mov byte [ebp], bl
inc ebp
cmp ebp, esi
je 0x406d42
dec dword [esp + 0x28]
js 0x406c34
mov ecx, dword [esp + 0x64]
movsx esi, byte [ecx]
test esi, esi
je 0x40667f
inc ecx
mov dword [esp + 0x64], ecx
jmp 0x406684
test ecx, ecx
je 0x406ff3
mov dword [esp + 0x24], 1
jmp 0x406266
cmp edx, 1
je 0x4070dc
jb 0x407040
cmp edx, 2
je 0x4073a1
cmp edx, 3
je 0x4073e7
mov eax, dword [esp + 0x5c]
test eax, eax
js 0x407204
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov ebx, 0xa
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x68], 0x40a048
jmp 0x405f42
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x20], ebx
mov al, byte [esi]
jmp 0x405d55
mov edx, 2
jmp 0x406266
mov esi, dword [esp + 0x70]
mov edx, 3
mov al, byte [esi]
cmp al, 0x6c
jne 0x405d55
inc esi
mov dword [esp + 0x70], esi
mov al, byte [esi]
jmp 0x405d55
mov ecx, 1
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x70]
mov al, byte [esi]
jmp 0x405d55
cmp edx, 1
je 0x40711a
jb 0x407020
cmp edx, 2
je 0x407371
cmp edx, 3
je 0x407408
mov dword [esp + 0x20], 0
jmp 0x4066f7
test ecx, ecx
jne 0x4067a7
mov dword [esp + 0x28], 6
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x406fdd
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x6c]
add ebx, 0xc
fld xword [eax]
mov dword [esp + 0x6c], ebx
fstp xword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x28]
xor eax, 0xffffffff
sar eax, 0x1f
and edx, eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x28], edx
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x34]
inc eax
push eax
cmp dword [esp + 0x38], 1
sbb eax, eax
xor eax, 0xffffffff
and eax, 2
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push eax
call sym.___ldtoa
add esp, 0x20
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
cmp ecx, 0xffff8000
jne 0x406525
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0
mov al, byte [edx]
cmp al, 0x4e
sete dl
cmp al, 0x49
sete al
or eax, edx
test al, 1
jne 0x406f28
sub esp, 0xc
mov eax, dword [esp + 0x6c]
push eax
call sym._strlen
add esp, 0x10
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x40689e
fldz
fld xword [esp + 0x40]
fucompp
fnstsw ax
and ah, 0x45
xor ah, 0x40
mov edi, dword [esp + 0x20]
setne dl
test edi, edi
setne al
or eax, edx
test al, 1
je 0x40689e
mov dword [esp + 0x20], 0x2d
mov esi, dword [esp + 0x28]
test esi, esi
jle 0x4068b4
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
sub ebx, eax
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x406909
cmp dword [esp + 0x20], 1
adc dword [esp + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x407253
mov edx, dword [esp + 0x60]
cmp edx, dword [esp + 0x7c]
je 0x4072ba
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
test eax, eax
mov eax, dword [esp + 0x38]
setg dl
test eax, eax
setne al
or eax, edx
and eax, 1
cmp eax, 1
adc dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
test eax, eax
setg dl
test edi, edi
sete al
and eax, 0xff
test edx, eax
je 0x4069f5
mov esi, dword [esp + 0x30]
lea ebx, [esp + 0x8c]
test esi, esi
je 0x4069d0
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40695a
mov cl, byte [esp + 0x20]
lea ebx, [esp + 0x1b0]
mov byte [ebp], cl
inc ebp
cmp ebp, ebx
je 0x40749b
lea ebx, [esp + 0x8c]
mov byte [ebp], 0x30
lea eax, [esp + 0x1b0]
inc ebp
cmp ebp, eax
je 0x4071ea
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x406961
mov edi, dword [esp + 0x74]
test edi, edi
jg 0x4069be
jmp 0x407154
mov esi, 0x30
mov edx, esi
lea ecx, [esp + 0x1b0]
mov byte [ebp], dl
inc ebp
cmp ebp, ecx
je 0x406e65
mov eax, dword [esp + 0x74]
dec eax
mov dword [esp + 0x74], eax
test eax, eax
jle 0x406d63
mov eax, dword [esp + 0x64]
movsx esi, byte [eax]
test esi, esi
je 0x406993
inc eax
mov dword [esp + 0x64], eax
jmp 0x406998
mov byte [ebp], 0x20
lea ecx, [esp + 0x1b0]
inc ebp
cmp ebp, ecx
je 0x40713a
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x4069d0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406986
mov al, byte [esp + 0x20]
lea edx, [esp + 0x1b0]
mov byte [ebp], al
inc ebp
cmp ebp, edx
jne 0x406986
push ebp
push ebp
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406986
test ecx, ecx
jne 0x406a48
mov dword [esp + 0x28], 6
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x406fb1
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
add ecx, 0xc
fld xword [eax]
mov dword [esp + 0x6c], ecx
fstp xword [esp + 0x40]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x34]
push eax
push 3
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push eax
call sym.___ldtoa
add esp, 0x20
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
cmp dword [esp + 0x74], 0xffff8000
jne 0x40686c
jmp 0x40682e
mov ebx, 8
mov dword [esp + 0x68], 0x40a048
jmp 0x405e57
mov dword [esp + 0x68], str.0123456789ABCDEF
jmp 0x405e32
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
add edx, 4
mov esi, dword [eax]
mov dword [esp + 0x6c], edx
jmp 0x405c79
mov esi, dword [esp + 0x3c]
inc esi
mov dword [esp + 0x3c], esi
jmp 0x406266
mov dword [esp + 0x38], 1
jmp 0x406266
mov bl, byte [esp + 0x34]
lea esi, [esp + 0x1b0]
mov byte [ebp], bl
inc ebp
cmp ebp, esi
jne 0x405c60
push esi
push esi
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1bc]
push eax
jmp 0x405c9c
mov byte [ebp], 0x20
lea edx, [esp + 0x1b0]
inc ebp
cmp ebp, edx
je 0x407063
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jg 0x406b2f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406642
mov bl, byte [esp + 0x20]
lea esi, [esp + 0x1b0]
mov byte [ebp], bl
inc ebp
cmp ebp, esi
jne 0x406642
push ebp
push ebp
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406642
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x6c]
add edi, 4
mov dword [esp + 0x54], 0
mov ax, word [eax]
mov dword [esp + 0x6c], edi
and eax, 0xffff
mov dword [esp + 0x50], eax
jmp 0x405f28
mov edx, dword [esp + 0x70]
cmp byte [edx + 1], 0x34
jne 0x406287
add edx, 2
mov dword [esp + 0x70], edx
mov edx, 3
jmp 0x406266
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0x1bc]
push ebx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4060de
push eax
push eax
push ebx
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4061d1
push eax
push eax
push ebx
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4060b0
mov dl, byte [esp + 0x34]
lea ecx, [esp + 0x1b0]
mov byte [ebp], dl
inc ebp
cmp ebp, ecx
je 0x4072cc
mov edx, dword [esp + 0x74]
test edx, edx
js 0x407097
mov byte [ebp], 0x2b
lea edx, [esp + 0x1b0]
inc ebp
cmp ebp, edx
je 0x407350
mov ecx, dword [esp + 0x74]
mov esi, 2
mov ebx, 0xa
cmp ecx, 0x63
jle 0x406ca4
lea eax, [ebx + ebx*4]
inc esi
lea ebx, [eax + eax]
lea eax, [ebx + eax*8]
add eax, eax
cmp eax, ecx
jle 0x406c7e
jmp 0x406ca4
imul edi, ebx
mov edx, dword [esp + 0x74]
sub edx, edi
lea edx, [edx + edx*4]
add edx, edx
mov dword [esp + 0x74], edx
mov ecx, edx
mov edx, ecx
mov eax, ecx
sar edx, 0x1f
idiv ebx
mov edi, eax
lea edx, [esp + 0x1b0]
lea eax, [eax + 0x30]
mov byte [ebp], al
inc ebp
cmp ebp, edx
je 0x406d0a
dec esi
test esi, esi
jg 0x406c90
dec dword [esp + 0x1c]
js 0x4063f4
lea ebx, [esp + 0x8c]
jmp 0x406ce3
dec dword [esp + 0x1c]
js 0x4063f4
mov byte [ebp], 0x20
lea esi, [esp + 0x1b0]
inc ebp
cmp ebp, esi
jne 0x406cd9
push eax
push eax
push ebx
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406cd9
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406cc1
push eax
push eax
push ebx
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406172
push ebx
push ebx
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406699
mov eax, dword [esp + 0x28]
test eax, eax
mov eax, dword [esp + 0x38]
setg dl
test eax, eax
setne al
or eax, edx
test al, 1
je 0x406da6
mov byte [ebp], 0x2e
lea esi, [esp + 0x1b0]
inc ebp
cmp ebp, esi
jne 0x406da6
jmp 0x407421
mov esi, 0x30
mov ecx, esi
lea ebx, [esp + 0x1b0]
mov byte [ebp], cl
inc ebp
cmp ebp, ebx
je 0x406e02
dec dword [esp + 0x28]
js 0x406dbe
mov edx, dword [esp + 0x64]
movsx esi, byte [edx]
test esi, esi
je 0x406d90
inc edx
mov dword [esp + 0x64], edx
jmp 0x406d95
dec dword [esp + 0x1c]
js 0x4063f4
lea ebx, [esp + 0x8c]
jmp 0x406ddb
dec dword [esp + 0x1c]
js 0x4063f4
mov byte [ebp], 0x20
lea eax, [esp + 0x1b0]
inc ebp
cmp ebp, eax
jne 0x406dd1
push esi
push esi
push ebx
lea edx, [esp + 0x1bc]
push edx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406dd1
push edi
push edi
lea eax, [esp + 0x94]
push eax
lea esi, [esp + 0x1bc]
push esi
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406da6
mov byte [ebp], 0x30
lea ebx, [esp + 0x1b0]
inc ebp
cmp ebp, ebx
jne 0x40606f
push ecx
push ecx
lea eax, [esp + 0x94]
push eax
lea esi, [esp + 0x1bc]
push esi
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x40606f
mov dword [esp + 0x1c], ebx
jmp 0x405d55
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0x1bc]
push ebx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4069ad
push ebp
push ebp
push ebx
lea esi, [esp + 0x1bc]
push esi
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4063bb
push edi
push edi
push ebx
lea edx, [esp + 0x1bc]
push edx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4063e2
cmp dword [esp + 0x38], 2
je 0x40721e
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x406ee4
mov al, byte [esp + 0x20]
lea edx, [esp + 0x1b0]
mov byte [ebp], al
inc ebp
cmp ebp, edx
je 0x407438
dec dword [esp + 0x1c]
js 0x4061a2
lea ebx, [esp + 0x8c]
jmp 0x406f01
dec dword [esp + 0x1c]
js 0x4061a2
mov byte [ebp], 0x30
lea esi, [esp + 0x1b0]
inc ebp
cmp ebp, esi
jne 0x406ef7
push edx
push edx
push ebx
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406ef7
sub esp, 0xc
mov eax, dword [esp + 0x70]
push eax
call sym._strlen
add esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x406353
mov byte [ebp], 0x30
lea ebx, [esp + 0x1b0]
inc ebp
cmp ebp, ebx
jne 0x406183
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea esi, [esp + 0x1bc]
push esi
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406183
mov dword [eax], esi
jmp 0x405c60
mov dword [esp + 0x28], 1
jmp 0x40600f
test ebx, ebx
js 0x406fa1
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x70]
jmp 0x406766
neg ebx
mov dword [esp + 0x20], 0x2d
mov dword [esp + 0x1c], ebx
jmp 0x406f98
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
add edx, 8
fld qword [eax]
mov dword [esp + 0x6c], edx
jmp 0x406a65
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
add edx, 8
fld qword [eax]
mov dword [esp + 0x6c], edx
jmp 0x40644b
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
add ecx, 8
fld qword [eax]
mov dword [esp + 0x6c], ecx
jmp 0x4067c4
mov esi, dword [esp + 0x70]
mov dword [esp + 0x2c], 1
mov al, byte [esi]
jmp 0x405d55
push eax
push eax
push ebx
lea esi, [esp + 0x1bc]
push esi
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x40638a
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x6c]
add ebx, 4
xor ecx, ecx
mov dword [esp + 0x6c], ebx
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
jmp 0x40678e
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x6c]
add esi, 4
mov ebx, dword [eax]
mov dword [esp + 0x6c], esi
mov ecx, ebx
mov dword [esp + 0x58], ebx
sar ecx, 0x1f
mov dword [esp + 0x5c], ecx
jmp 0x4066eb
push eax
push eax
push ebx
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406b43
push edx
push edx
push ebx
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406631
mov byte [ebp], 0x2d
lea esi, [esp + 0x1b0]
inc ebp
cmp ebp, esi
je 0x4070b0
neg dword [esp + 0x74]
jmp 0x406c6b
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1bc]
push eax
call sym._Snput
add esp, 0x10
mov ebp, eax
neg dword [esp + 0x74]
jmp 0x406c6b
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x6c]
add ebx, 4
mov dword [esp + 0x6c], ebx
mov ebx, dword [eax]
mov esi, ebx
mov dword [esp + 0x58], ebx
sar esi, 0x1f
mov dword [esp + 0x5c], esi
jmp 0x4066eb
cmp byte [esi + 1], 0x32
jne 0x406287
add esi, 2
mov edx, 1
mov dword [esp + 0x70], esi
jmp 0x40674e
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
add ecx, 4
xor ebx, ebx
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
jmp 0x40678e
push eax
push eax
push ebx
lea esi, [esp + 0x1bc]
push esi
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4069e4
mov byte [ebp], 0x30
lea ebx, [esp + 0x1b0]
inc ebp
cmp ebp, ebx
je 0x407459
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
test ebx, ebx
setg dl
test ecx, ecx
setne al
or eax, edx
test al, 1
je 0x407194
mov byte [ebp], 0x2e
lea eax, [esp + 0x1b0]
inc ebp
cmp ebp, eax
je 0x4074bc
mov eax, dword [esp + 0x74]
test eax, eax
jns 0x406da6
jmp 0x4071bc
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
test eax, eax
jns 0x406da6
mov byte [ebp], 0x30
lea ecx, [esp + 0x1b0]
inc ebp
cmp ebp, ecx
jne 0x4071a2
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0x1bc]
push ebx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4071a2
push edx
push edx
push ebx
lea edx, [esp + 0x1bc]
push edx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406975
neg dword [esp + 0x58]
adc dword [esp + 0x5c], 0
mov dword [esp + 0x20], 0x2d
neg dword [esp + 0x5c]
jmp 0x4066f7
mov byte [ebp], 0x30
lea ecx, [esp + 0x1b0]
inc ebp
cmp ebp, ecx
jne 0x406ec5
push esi
push esi
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0x1bc]
push ebx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406ec5
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
test eax, eax
mov dword [esp + 0x1c], edx
jle 0x406909
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jmp 0x406909
lea eax, [esi + 4]
jmp 0x4064e7
mov dword [esp + 0x64], str._NULL_
jmp 0x406316
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4073c5
mov eax, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
test eax, eax
jns 0x40686c
mov dword [esp + 0x28], 0
jmp 0x40686c
mov ecx, 1
mov dword [esp + 0x74], 1
jmp 0x4068e0
push ecx
push ecx
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0x1bc]
push ebx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406c4b
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x40608e
push edi
push edi
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0x1bc]
push ebx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406660
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x4061a2
push eax
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406c6b
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
add edx, 4
mov dword [esp + 0x5c], 0
mov ax, word [eax]
mov dword [esp + 0x6c], edx
and eax, 0xffff
mov dword [esp + 0x58], eax
jmp 0x40678e
mov word [eax], si
jmp 0x4062e2
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
add ecx, 4
movsx eax, word [eax]
mov edx, eax
mov dword [esp + 0x6c], ecx
sar edx, 0x1f
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
jmp 0x4066eb
sub esi, ecx
mov dword [esp + 0x28], esi
jmp 0x4072a1
push esi
push esi
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0x1bc]
push edx
jmp 0x406d54
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
add edx, 8
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
jmp 0x4066eb
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x6c]
add edi, 8
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x6c], edi
jmp 0x407033
push ebp
push ebp
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1bc]
push eax
jmp 0x406e14
push ecx
push ecx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x1bc]
push ecx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406ee4
push esi
push esi
lea eax, [esp + 0x94]
push eax
lea esi, [esp + 0x1bc]
push esi
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x407168
push ecx
push ecx
lea eax, [esp + 0x94]
push eax
lea ebx, [esp + 0x1bc]
push ebx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x406616
push ecx
push ecx
lea eax, [esp + 0x94]
push eax
lea esi, [esp + 0x1bc]
push esi
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x40695a
push edx
push edx
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0x1bc]
push edx
call sym._Snput
add esp, 0x10
mov ebp, eax
jmp 0x407194