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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0xac
mov dword [esp + 0x20], eax
mov eax, dword [eax]
mov dword [esp + 0x14], edx
test eax, eax
mov dword [esp + 0x38], ecx
sete dl
test ebx, ebx
mov dword [esp + 0x74], 0
sete al
mov dword [esp + 0x78], 0
or dl, al
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
jne 0x404640
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
call sym._localeconv
mov eax, dword [eax]
mov dword [esp + 0x50], eax
call sym._localeconv
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x402f4f
cmp byte [ecx], 0
mov eax, 0
cmovne eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
test al, al
je 0x404511
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x10], 0
xor edi, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], ebx
mov ebx, edi
test al, al
js 0x4030c8
mov eax, dword [esp + 0x14]
lea edi, [eax + 1]
movzx eax, byte [eax]
cmp al, 0x25
je 0x403148
movzx esi, al
mov dword [esp], esi
call sym._isspace
test eax, eax
jne 0x403058
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042f4
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x403005
mov dword [esp], eax
call sym._isspace
test eax, eax
jne 0x403470
cmp esi, ebx
je 0x403130
mov dword [esp], 0
mov ecx, dword [esp + 0x24]
mov eax, ebx
mov edx, dword [esp + 0x20]
call sym._back_ch
jmp case.0x4037ee.1
fstp st(0)
jmp case.0x4037ee.1
fstp st(0)
jmp case.0x4037ee.1
fstp st(0)
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x74]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
call sym._cleanup_return
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
test al, al
jne 0x402fa2
mov ecx, dword [esp + 0x18]
test ecx, ecx
je case.0x4037ee.1
lea eax, [esp + 0x78]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov edi, eax
lea esi, [esi]
mov edx, edi
mov eax, esi
call sym._in_ch
mov dword [esp], eax
mov ebx, eax
call sym._isspace
test eax, eax
jne 0x403090
mov dword [esp], 0
mov ecx, dword [esp + 0x24]
mov eax, ebx
mov edx, dword [esp + 0x20]
call sym._back_ch
jmp case.0x4037ee.1
mov edi, dword [esp + 0x14]
mov dword [esp], edi
call sym._strlen
lea edx, [esp + 0x90]
mov dword [esp], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dbg.mbrlen
test eax, eax
jle 0x402faa
lea ebp, [esp + 0x78]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], ebp
lea esi, [edi + eax]
mov eax, dword [esp + 0x20]
mov edx, ebp
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x403eab
movzx eax, byte [edi]
add edi, 1
cmp ebx, eax
jne 0x403eab
cmp edi, esi
jne 0x403102
jmp 0x403138
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
jmp 0x403064
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], 0
movzx edx, byte [eax + 1]
mov eax, edx
sub edx, 0x30
cmp edx, 9
jbe 0x403d70
mov ecx, dword [esp + 0x34]
xor ebp, ebp
jmp 0x403193
cmp al, 0x27
je 0x4031a8
cmp al, 0x49
jne 0x4031e0
movzx eax, byte [edi + 1]
cmp al, 0x36
je 0x4031c0
or ebp, 4
cmp al, 0x33
je 0x4031d0
lea esi, [esi]
nop
add edi, 1
cmp al, 0x2a
jne 0x403170
movzx eax, byte [edi + 1]
or ebp, 0x80
jmp 0x403190
mov edx, ebp
movzx eax, byte [edi + 1]
or dh, 1
test ecx, ecx
cmovne ebp, edx
jmp 0x403190
cmp byte [edi + 2], 0x34
je 0x403248
or ebp, 4
jmp 0x403190
cmp byte [edi + 2], 0x32
jne 0x403190
movzx eax, byte [edi + 3]
add edi, 2
jmp 0x403190
movzx edx, al
mov dword [esp + 0x28], 0
lea ecx, [edx - 0x30]
cmp ecx, 9
ja 0x40438a
xor ecx, ecx
lea esi, [esi]
lea eax, [ecx + ecx*4]
add edi, 1
lea ecx, [edx + eax*2 - 0x30]
movzx edx, byte [edi]
lea esi, [edx - 0x30]
mov eax, edx
cmp esi, 9
jbe 0x403200
test ecx, ecx
mov edx, 0xffffffff
cmovne edx, ecx
mov dword [esp + 0x28], edx
test al, al
je case.0x4037ee.1
sub eax, 0x4c
cmp al, 0x2e
ja case.0x40323b.1
movzx eax, al
jmp dword [eax*4 + 0x411824]
movzx eax, byte [edi + 3]
or ebp, 0xc
add edi, 2
jmp 0x403190
lea eax, [edi + 1]
movzx esi, byte [edi + 1]
or ebp, 4
mov dword [esp + 0x54], eax
mov eax, esi
test al, al
je case.0x4037ee.1
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
add eax, 1
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x403de0
mov eax, esi
cmp al, 0x5b
jne 0x4034d0
mov esi, ebp
mov eax, ebp
and esi, 0x80
and eax, 4
mov dword [esp + 0x18], eax
jne 0x404230
test esi, esi
jne 0x403348
test ebp, 0x600
je 0x4052d8
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x405781
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40544a
mov dword [esp], 0x64
call sym._malloc
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov dword [ebx], eax
test eax, eax
je 0x40428b
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x403316
mov edx, dword [ebx]
mov eax, ebx
lea ecx, [edx + 1]
cmp edx, 0x1f
jbe 0x403332
mov dword [esp], 0x88
call sym._malloc
mov ecx, 1
xor edx, edx
mov dword [eax], 0
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov dword [eax], ecx
mov dword [eax + edx*4 + 8], ebx
mov dword [esp + 0x44], 0x64
mov ebx, dword [esp + 0x54]
movzx eax, byte [ebx + 1]
lea edx, [ebx + 2]
mov ebx, dword [esp + 0x28]
cmp al, 0x5e
mov eax, 0x7fffffff
cmovne edx, dword [esp + 0x14]
sete byte [esp + 0x48]
test ebx, ebx
cmovns eax, ebx
cmp dword [esp + 0x7c], 0xff
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
ja 0x4033b2
mov dword [esp + 0x7c], 0x100
mov edx, 0x100
test eax, eax
je 0x4033a3
mov dword [esp], eax
call sym._free
mov edx, dword [esp + 0x7c]
mov dword [esp], edx
call sym._malloc
mov dword [esp + 0x80], eax
lea edi, [eax + 4]
mov dword [eax], 0
mov dword [eax + 0xfc], 0
and edi, 0xfffffffc
sub eax, edi
lea ecx, [eax + 0x100]
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x14]
movzx eax, byte [ebx]
lea edx, [ebx + 1]
cmp al, 0x5d
je 0x404940
cmp al, 0x2d
je 0x404940
mov dword [esp + 0x14], edx
test al, al
je case.0x4037ee.1
mov edx, dword [esp + 0x14]
jmp 0x40341f
mov ecx, dword [esp + 0x80]
mov byte [ecx + eax], 1
movzx eax, byte [edx - 1]
test al, al
je case.0x4037ee.1
cmp al, 0x5d
je 0x404a44
add edx, 1
cmp al, 0x2d
jne 0x403408
movzx ebx, byte [edx - 1]
cmp bl, 0x5d
je 0x403408
test bl, bl
je 0x403408
movzx ecx, byte [edx - 3]
cmp cl, bl
ja 0x403408
jae 0x405825
mov ebx, dword [esp + 0x80]
movzx eax, cl
add ecx, 1
mov byte [ebx + eax], 1
movzx eax, byte [edx - 1]
cmp al, cl
ja 0x403449
jmp 0x403417
mov dword [esp + 0x54], edi
movzx esi, byte [edi]
jmp 0x403265
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
jmp 0x403490
mov dword [esp], eax
call sym._isspace
test eax, eax
je 0x403ea0
mov edx, ebx
mov eax, ebp
call sym._in_ch
mov esi, eax
cmp eax, 0xffffffff
jne 0x403480
mov edi, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x74]
test eax, eax
cmovne edi, eax
lea eax, [esp + 0x80]
mov dword [esp], eax
mov eax, edi
call sym._cleanup_return
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
and eax, 0xffffffdf
cmp al, 0x43
je 0x4034e1
mov eax, esi
cmp al, 0x6e
jne 0x403de0
mov eax, esi
cmp al, 0x63
jne 0x403680
test ebp, 4
jne case.0x4037ee.30
mov ebx, dword [esp + 0x28]
mov eax, 1
cmp ebx, 0xffffffff
cmovne eax, ebx
mov dword [esp + 0x28], eax
mov eax, ebp
and eax, 0x80
mov dword [esp + 0x18], eax
jne 0x4042a0
mov eax, ebp
and eax, 0x600
mov dword [esp + 0x4c], eax
je 0x404de0
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x405514
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40544a
mov ebx, dword [esp + 0x28]
mov eax, 0x400
cmp ebx, 0x400
cmovle eax, ebx
mov dword [esp], eax
mov dword [esp + 0x44], eax
call sym._malloc
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
test edi, edi
je 0x40428b
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x403597
mov edx, dword [ebx]
mov eax, ebx
lea ecx, [edx + 1]
cmp edx, 0x1f
jbe 0x4035b3
mov dword [esp], 0x88
call sym._malloc
mov ecx, 1
xor edx, edx
mov dword [eax], 0
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov dword [eax], ecx
mov dword [eax + edx*4 + 8], ebx
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x40579d
mov eax, edi
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x28]
jmp 0x40361a
sub edi, 1
mov byte [eax], bl
lea esi, [eax + 1]
test edi, edi
jle 0x404c99
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x404c99
mov eax, esi
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], ebp
test edx, edx
je 0x4035f0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
lea esi, [edx + ebp]
cmp eax, esi
jne 0x4035f0
lea eax, [edi - 1]
cmp ebp, edi
lea ecx, [ebp + 1]
mov dword [esp + 0x28], edi
cmovl eax, ebp
mov edi, ebx
mov ebx, ecx
lea esi, [ebp + eax]
mov dword [esp + 4], esi
mov dword [esp], edx
call sym._realloc
test eax, eax
je 0x405a7f
mov ecx, dword [esp + 0x2c]
mov ebx, edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x28], esi
mov dword [ecx], eax
add eax, ebp
mov ebp, esi
jmp 0x4035f0
cmp al, 0x73
jne 0x4037e0
mov eax, ebp
and eax, 4
mov dword [esp + 0x18], eax
jne case.0x4037ee.46
mov esi, ebp
and esi, 0x80
jne 0x40373e
test ebp, 0x600
je 0x404d0d
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4053bc
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40544a
mov dword [esp], 0x64
call sym._malloc
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov dword [ebx], eax
test eax, eax
je 0x40428b
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x40370c
mov edx, dword [ebx]
mov eax, ebx
lea ecx, [edx + 1]
cmp edx, 0x1f
jbe 0x403728
mov dword [esp], 0x88
call sym._malloc
mov ecx, 1
xor edx, edx
mov dword [eax], 0
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x44], 0x64
mov dword [eax], ecx
mov dword [eax + edx*4 + 8], ebx
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042f4
mov edi, ebp
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x28]
and edi, 0x600
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x4c]
jmp 0x4037b7
mov ecx, dword [esp + 0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [esp + 0x44]
add ecx, edx
cmp eax, ecx
je 0x404cc6
test esi, esi
jle 0x4037a1
sub esi, 1
je 0x404691
mov eax, dword [esp + 0x20]
mov edx, ebp
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x404691
mov dword [esp], ebx
call sym._isspace
test eax, eax
jne 0x404e10
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x403794
mov edx, dword [esp + 0x28]
mov byte [edi], bl
lea eax, [edi + 1]
test edx, edx
jne 0x40377e
mov edi, eax
jmp 0x403794
lea eax, [esi - 0x25]
cmp al, 0x53
ja case.0x4037ee.1
movzx eax, al
jmp dword [eax*4 + 0x4118e0]
lea eax, [esi - 0x58]
cmp al, 0x20
ja case.0x4037ff.1
movzx esi, al
jmp dword [esi*4 + 0x411a30]
mov dword [esp + 0x10], 8
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042f4
lea eax, [eax - 0x2b]
mov dword [esp + 0x54], 0
and eax, 0xfffffffd
je 0x404e33
mov eax, dword [esp + 0x28]
test eax, eax
setne dl
cmp ebx, 0x30
jne 0x4046d8
test dl, dl
je 0x4046d8
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x80]
lea esi, [ebx + 1]
test eax, eax
jle 0x404fcf
sub eax, 1
lea edi, [esp + 0x7c]
mov dword [esp + 0x28], eax
mov edx, edi
mov eax, ebx
call dbg.resize_wbuf
mov edx, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov byte [eax + ebx], 0x30
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ecx, dword [esp + 0x28]
mov ebx, eax
test ecx, ecx
jne 0x404ffa
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x54], esi
test ecx, ecx
jne 0x4038be
mov dword [esp + 0x10], 8
cmp dword [esp + 0x54], 1
jne 0x4038da
mov eax, dword [esp + 0x80]
movzx eax, byte [eax]
sub eax, 0x2b
test al, 0xfd
je 0x40300d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, ebx
lea edi, [esp + 0x7c]
mov dword [esp], 0
call sym._back_ch
mov edx, edi
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x80]
mov esi, ebp
and esi, 0x10
mov eax, edi
call dbg.resize_wbuf
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x84]
mov dword [esp + 0x80], eax
mov byte [eax + edi], 0
mov eax, dword [esp + 0x80]
mov edi, ebp
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
and edi, 8
je 0x404c87
test esi, esi
je 0x404f0a
call sym._strtoimax
mov dword [esp + 0x68], edx
mov ecx, dword [esp + 0x84]
cmp dword [esp + 0x80], ecx
je case.0x4037ee.1
mov ecx, ebp
and ecx, 0x80
mov dword [esp + 0x18], ecx
jne 0x404170
test esi, esi
je 0x404f3b
test edi, edi
jne 0x404f14
test ebp, 4
jne 0x40539c
test ebp, 2
jne 0x4057ec
and ebp, 1
je 0x405aab
cmp dword [esp + 0x48], 0
jne 0x405a94
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov byte [edx], al
add dword [esp + 0x30], 1
jmp 0x403064
mov ebx, dword [esp + 0x28]
mov eax, 1
cmp ebx, 0xffffffff
cmovne eax, ebx
mov dword [esp + 0x28], eax
mov eax, ebp
and eax, 0x80
mov dword [esp + 0x18], eax
jne 0x403a95
test ebp, 0x600
je 0x404200
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x404d40
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40544a
mov ebx, dword [esp + 0x28]
mov eax, 0x400
cmp ebx, 0x400
cmovle eax, ebx
mov dword [esp + 0x44], eax
add eax, eax
mov dword [esp], eax
call sym._malloc
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov dword [ebx], eax
test eax, eax
je 0x40428b
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x403a6b
mov edx, dword [ebx]
mov eax, ebx
lea ecx, [edx + 1]
cmp edx, 0x1f
jbe 0x403a87
mov dword [esp], 0x88
call sym._malloc
mov ecx, 1
xor edx, edx
mov dword [eax], 0
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov dword [eax], ecx
mov dword [eax + edx*4 + 8], ebx
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042f4
lea edi, [esp + 0x98]
and ebp, 0x600
mov esi, dword [esp + 0x20]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x54], ebp
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov byte [esp + 0x8b], bl
test eax, eax
jne 0x403b90
mov eax, dword [esp + 0x54]
test eax, eax
je 0x403b90
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov eax, dword [eax]
lea edx, [ecx + ecx]
mov dword [esp + 0x58], eax
lea ecx, [eax + edx]
cmp dword [esp + 0x40], ecx
jne 0x403b90
mov eax, dword [esp + 0x28]
mov ecx, eax
sub ecx, 1
cmp dword [esp + 0x44], eax
cmovle ecx, dword [esp + 0x44]
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x44], edi
mov edi, esi
mov esi, ebx
mov ebx, edx
add eax, ecx
mov dword [esp + 0x24], eax
lea eax, [ecx + 1]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
mov dword [esp], eax
add ecx, ecx
mov dword [esp + 4], ecx
call sym._realloc
test eax, eax
je 0x40583d
mov ecx, dword [esp + 0x2c]
mov edx, ebx
mov ebx, esi
mov esi, edi
mov edi, dword [esp + 0x44]
mov dword [ecx], eax
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
lea esi, [esi]
mov eax, dword [esp + 0x18]
test eax, eax
mov eax, dword [esp + 0x40]
cmovne eax, ebp
mov dword [esp + 0x24], eax
mov eax, edi
mov edi, esi
mov esi, ebx
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x8b]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dbg.mbrtowc
cmp eax, 0xfffffffe
jne 0x4045d0
mov edx, ebx
mov eax, edi
call sym._in_ch
mov esi, eax
cmp eax, 0xffffffff
je 0x403e90
mov byte [esp + 0x8b], al
jmp 0x403ba9
mov eax, ebp
and eax, 0x80
mov dword [esp + 0x18], eax
jne 0x403ca0
test ebp, 0x600
je 0x4041d0
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x404d78
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x40544a
mov dword [esp], 0xc8
call sym._malloc
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov dword [ebx], eax
test eax, eax
je 0x40428b
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x403c6e
mov edx, dword [ebx]
mov eax, ebx
lea ecx, [edx + 1]
cmp edx, 0x1f
jbe 0x403c8a
mov dword [esp], 0x88
call sym._malloc
mov ecx, 1
xor edx, edx
mov dword [eax], 0
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x44], 0x64
mov dword [eax], ecx
mov dword [eax + edx*4 + 8], ebx
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042f4
mov eax, ebp
mov dword [esp + 0x58], ebp
lea edi, [esp + 0x98]
mov ebp, dword [esp + 0x20]
and eax, 0x600
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x54], eax
mov dword [esp], ebx
call sym._isspace
test eax, eax
jne 0x405642
mov edx, dword [esp + 0x18]
mov byte [esp + 0x8b], bl
test edx, edx
cmove eax, dword [esp + 0x40]
mov esi, eax
mov eax, edi
mov edi, ebx
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 1
mov dword [esp], esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x8b]
mov dword [esp + 4], eax
call dbg.mbrtowc
cmp eax, 0xfffffffe
jne 0x404526
mov edx, ebx
mov eax, ebp
call sym._in_ch
mov edi, eax
cmp eax, 0xffffffff
je 0x403e90
mov byte [esp + 0x8b], al
jmp 0x403d20
mov esi, dword [esp + 0x14]
mov dword [esp + 0x48], edx
lea ecx, [esi + 2]
movzx esi, byte [esi + 2]
mov edx, esi
movzx edx, dl
lea ebp, [edx - 0x30]
cmp ebp, 9
ja 0x403dc1
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x48]
mov ebp, eax
lea esi, [esi]
lea esi, [esi]
add ecx, 1
lea eax, [edi + edi*4]
lea edi, [edx + eax*2 - 0x30]
movzx edx, byte [ecx]
lea esi, [edx - 0x30]
cmp esi, 9
jbe 0x403da0
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x14]
mov esi, edx
mov eax, ebp
mov edx, esi
cmp dl, 0x24
je 0x404397
mov dword [esp + 0x48], 0
jmp 0x403166
call sym.__errno
mov edi, dword [eax]
call sym.__errno
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x58], edi
mov edi, ebx
mov dword [eax], 0
jmp 0x403e18
mov dword [esp], eax
call sym._isspace
test eax, eax
je 0x4043d2
cmp edi, 0xffffffff
je 0x403e31
lea ebx, [esp + 0x78]
mov eax, ebp
mov edx, ebx
call sym._in_ch
mov edi, eax
cmp eax, 0xffffffff
jne 0x403e08
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x58]
jmp 0x403e54
mov dword [esp], 0xffffffff
call sym._isspace
test eax, eax
je 0x4043a3
call sym.__errno
cmp dword [eax], 4
jne 0x403e40
mov ebx, dword [esp + 0x30]
mov eax, 0xffffffff
test ebx, ebx
cmovne eax, ebx
mov ebx, eax
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x2c]
mov dword [esp], eax
lea edx, [esp + 0x74]
mov eax, ebx
call sym._cleanup_return
jmp 0x40304a
call sym.__errno
mov dword [eax], 0x2a
jmp case.0x4037ee.1
mov ebx, esi
mov esi, dword [esp + 0x14]
jmp 0x403005
mov dword [esp], 1
mov ecx, dword [esp + 0x24]
mov eax, ebx
mov edx, dword [esp + 0x20]
call sym._back_ch
jmp 0x403e5e
movzx esi, byte [edi + 1]
mov eax, esi
cmp al, 0x6c
je 0x404655
lea eax, [edi + 1]
or ebp, 4
mov dword [esp + 0x54], eax
jmp 0x403265
movzx esi, byte [edi + 1]
mov eax, esi
and eax, 0xfffffff7
cmp al, 0x53
je 0x403ef7
mov eax, esi
cmp al, 0x73
jne case.0x40323b.1
lea eax, [edi + 1]
or ebp, 0x200
mov dword [esp + 0x54], eax
jmp 0x403265
movzx esi, byte [edi + 1]
mov eax, esi
cmp al, 0x68
je 0x404668
lea eax, [edi + 1]
or ebp, 2
mov dword [esp + 0x54], eax
jmp 0x403265
lea eax, [edi + 1]
movzx esi, byte [edi + 1]
or ebp, 0xc
mov dword [esp + 0x54], eax
jmp 0x403265
movzx esi, byte [edi + 1]
mov eax, esi
cmp al, 0x6c
je 0x40467b
lea eax, [edi + 1]
or ebp, 0x400
mov dword [esp + 0x54], eax
jmp 0x403265
lea eax, [edi + 1]
movzx esi, byte [edi + 1]
or ebp, 8
mov dword [esp + 0x54], eax
jmp 0x403265
mov eax, ebp
and eax, 0x80
mov dword [esp + 0x18], eax
jne 0x404170
mov eax, dword [esp + 0x78]
test ebp, 8
je 0x404f98
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x4054e4
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov dword [edx], eax
mov dword [edx + 4], 0
jmp 0x403064
mov ebx, dword [esp + 0x28]
xor eax, eax
test ebx, ebx
setg al
sub ebx, eax
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
call sym._in_ch
mov dword [esp + 0x64], eax
cmp eax, 0xffffffff
je 0x40582d
mov eax, dword [esp + 0x64]
sub eax, 0x2b
and eax, 0xfffffffd
jne 0x404c7e
mov eax, dword [esp + 0x28]
test eax, eax
je case.0x4037ee.1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je case.0x4037ee.1
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
setg al
sub ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp], ebx
call sym._tolower
cmp eax, 0x6e
je 0x405530
cmp eax, 0x69
je 0x40511a
mov edi, dword [esp + 0x28]
mov byte [esp + 0x54], 0x65
mov dword [esp + 0x18], 0
test edi, edi
je 0x404062
cmp ebx, 0x30
je 0x4055d5
mov byte [esp + 0x5c], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0x18]
lea esi, [esi]
lea eax, [ebx - 0x30]
cmp eax, 9
jbe 0x4040fd
cmp byte [esp + 0x5c], 0
je 0x4042fb
mov ecx, dword [esp + 0x80]
movzx eax, byte [esp + 0x54]
cmp byte [ecx + ebp - 1], al
je 0x404500
mov eax, dword [esp + 0x28]
mov edi, 0x7fffffff
test eax, eax
cmovg edi, eax
mov eax, dword [esp + 0x50]
cmp byte [esp + 0x60], 0
movzx eax, byte [eax]
je 0x4043e2
test al, al
jne 0x40435f
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x40411c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x40495f
mov dword [esp + 0x28], edi
lea esi, [esi]
lea eax, [ebx - 0x30]
sub dword [esp + 0x28], 1
cmp eax, 9
ja 0x404080
mov ecx, dword [esp + 0x80]
mov eax, ebp
lea edx, [esp + 0x7c]
call dbg.resize_wbuf
mov dword [esp + 0x80], eax
mov byte [eax + ebp], bl
add ebp, 1
mov edi, dword [esp + 0x28]
test edi, edi
je 0x40495f
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x40495f
test edi, edi
jg 0x4040f0
jmp 0x404078
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042f4
cmp eax, 0x25
jne 0x405a66
mov dword [esp + 0x18], 0
jmp 0x403064
mov dword [esp + 0x10], 0
or ebp, 0x10
jmp case.0x4037ff.1
mov dword [esp + 0x10], 0xa
or ebp, 0x10
jmp case.0x4037ff.1
mov dword [esp + 0x10], 0x10
jmp case.0x4037ff.1
mov dword [esp + 0x10], 0xa
jmp case.0x4037ff.1
mov eax, ebp
mov dword [esp + 0x10], 0x10
and eax, 0xfffffff1
or eax, 0x24
mov ebp, eax
jmp case.0x4037ff.1
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x404d94
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x40]
test ecx, ecx
jne 0x403ca0
jmp case.0x4037ee.1
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x404d5c
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x403a95
jmp case.0x4037ee.1
test esi, esi
jne 0x403348
test ebp, 0x600
je 0x405310
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x4057b5
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40544a
mov dword [esp], 0xc8
call sym._malloc
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov dword [ebx], eax
test eax, eax
jne 0x403302
and ebp, 0x400
mov eax, 0xffffffff
cmove eax, dword [esp + 0x30]
jmp 0x403e6c
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x40579d
mov eax, ebx
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
jmp 0x4042de
mov edx, esi
mov eax, ebx
call sym._in_ch
cmp eax, 0xffffffff
je 0x4042e5
sub edi, 1
test edi, edi
jg 0x4042d0
mov dword [esp + 0x18], 0
mov ebx, eax
jmp 0x403064
mov edi, ebx
jmp 0x4034a2
test byte [esp + 0x58], 0x40
je 0x404312
mov dword [esp], ebx
call sym._isxdigit
test eax, eax
jne 0x4040fd
test ebp, ebp
je 0x4040a1
mov dword [esp], ebx
call sym._tolower
cmp byte [esp + 0x54], al
jne 0x4040a1
mov ecx, dword [esp + 0x80]
mov eax, ebp
lea edx, [esp + 0x7c]
call dbg.resize_wbuf
movzx ecx, byte [esp + 0x54]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x80], eax
mov byte [esp + 0x60], 1
mov byte [eax + ebp], cl
add ebp, 1
jmp 0x40411c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40526e
mov esi, eax
movzx edx, byte [esi]
test dl, dl
jne 0x40526e
mov eax, dword [esp + 0x28]
test eax, eax
cmovle edi, eax
mov dword [esp + 0x28], edi
jmp 0x40411c
mov dword [esp + 0x28], 0xffffffff
jmp 0x403225
movzx eax, byte [ecx + 1]
lea edi, [ecx + 1]
jmp 0x403166
lea eax, [esp + 0x78]
mov ebx, 0xffffffff
mov dword [esp + 0x24], eax
call sym.__errno
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [eax], edi
mov eax, ebx
mov dword [esp], 0
call sym._back_ch
jmp 0x4034e1
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x18]
mov ebx, edi
mov edi, dword [esp + 0x58]
jmp 0x4043b0
movzx edx, al
mov esi, dword [esp + 0x50]
cmp edx, ebx
jne 0x404440
mov dword [esp + 0x18], ebp
mov eax, ebx
mov ebx, edi
mov edi, dword [esp + 0x20]
lea esi, [esi]
mov ebp, esi
add esi, 1
cmp byte [esi], 0
je 0x40449d
test ebx, ebx
je 0x40510d
mov edx, dword [esp + 0x24]
mov eax, edi
call sym._in_ch
cmp eax, 0xffffffff
je 0x4050fa
movzx ebp, byte [esi]
sub ebx, 1
mov edx, ebp
cmp eax, ebp
je 0x404400
mov ebp, dword [esp + 0x18]
mov edi, ebx
mov ebx, eax
mov eax, edx
test al, al
je 0x4044a5
test dword [esp + 0x58], 0x100
je 0x40435f
mov eax, esi
sub eax, dword [esp + 0x50]
mov esi, dword [esp + 0x34]
xor ecx, ecx
test eax, eax
jle 0x405727
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x34]
jmp 0x404487
add esi, 1
mov ecx, esi
sub ecx, ebx
cmp ecx, eax
jge 0x405210
movzx edx, byte [esi]
cmp dl, byte [ebp + ecx]
je 0x404478
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
jmp 0x404370
mov ebp, dword [esp + 0x18]
mov edi, ebx
mov ebx, eax
mov eax, dword [esp + 0x50]
mov esi, ebp
cmp byte [eax], 0
je 0x4044e5
sub eax, ebp
mov ebp, eax
lea esi, [esi]
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x7c]
mov eax, esi
call dbg.resize_wbuf
mov edx, esi
add esi, 1
mov dword [esp + 0x80], eax
movzx ecx, byte [ebp + esi - 1]
mov byte [eax + edx], cl
cmp byte [ebp + esi], 0
jne 0x4044b8
cmp dword [esp + 0x28], 0
mov ebp, esi
jle 0x405932
mov dword [esp + 0x28], edi
mov byte [esp + 0x60], 1
jmp 0x40411c
lea eax, [ebx - 0x2b]
and eax, 0xfffffffd
jne 0x4040a1
jmp 0x404104
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
jmp case.0x4037ee.1
mov ecx, ebx
mov ebx, edi
mov edi, ecx
cmp eax, 1
jne 0x403e90
mov eax, dword [esp + 0x18]
add dword [esp + 0x40], 2
mov edx, dword [esp + 0x40]
test eax, eax
jne 0x404565
mov eax, dword [esp + 0x54]
test eax, eax
je 0x404565
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
lea ecx, [eax + eax]
mov eax, dword [esi]
add eax, ecx
cmp edx, eax
je 0x40565d
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x404576
sub eax, 1
mov dword [esp + 0x28], eax
je 0x40458a
mov edx, edi
mov eax, ebp
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
jne 0x403cf6
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x404170
mov eax, dword [esp + 0x40]
lea esi, [eax + 2]
mov word [eax], 0
mov eax, dword [esp + 0x44]
mov edx, esi
mov ecx, eax
add ecx, eax
mov eax, dword [esp + 0x2c]
call dbg.optimize_alloc
add dword [esp + 0x30], 1
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], 0
jmp 0x403064
mov ecx, ebx
mov ebx, esi
mov esi, edi
mov edi, ecx
cmp eax, 1
jne 0x403e90
sub dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
add dword [esp + 0x40], 2
test eax, eax
jle 0x404607
mov edx, ecx
mov eax, esi
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
jne 0x403ae8
cmp dword [esp + 0x18], 0
jne 0x404170
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ecx, eax
add ecx, eax
mov eax, dword [esp + 0x2c]
call dbg.optimize_alloc
add dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0
jmp 0x403064
call sym.__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
jmp 0x40304a
lea eax, [edi + 2]
movzx esi, byte [edi + 2]
or ebp, 0xc
mov dword [esp + 0x54], eax
jmp 0x403265
lea eax, [edi + 2]
movzx esi, byte [edi + 2]
or ebp, 1
mov dword [esp + 0x54], eax
jmp 0x403265
lea eax, [edi + 2]
movzx esi, byte [edi + 2]
or ebp, 0x404
mov dword [esp + 0x54], eax
jmp 0x403265
mov dword [esp + 0x4c], edi
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x403064
mov eax, dword [esp + 0x4c]
mov byte [eax], 0
lea esi, [eax + 1]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov edx, esi
call dbg.optimize_alloc
add dword [esp + 0x30], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x2c], 0
jmp 0x403064
cmp ebx, 0xffffffff
setne al
and eax, edx
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4046f0
mov dword [esp + 0x10], 0xa
test al, al
je 0x404796
mov eax, ebp
mov dword [esp + 0x5c], ebp
mov edi, dword [esp + 0x24]
and eax, 0x100
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x58], eax
jmp 0x40477f
lea eax, [ebx - 0x30]
cmp eax, 9
ja 0x404810
lea eax, [ebx - 0x2f]
cmp dword [esp + 0x10], eax
jl 0x404810
mov eax, dword [esp + 0x54]
mov esi, eax
add eax, 1
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x7c]
mov eax, esi
call dbg.resize_wbuf
mov edx, edi
mov dword [esp + 0x80], eax
mov byte [eax + esi], bl
mov esi, dword [esp + 0x28]
xor eax, eax
test esi, esi
setg al
sub esi, eax
mov eax, ebp
mov dword [esp + 0x28], esi
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x404792
test esi, esi
je 0x404792
cmp dword [esp + 0x10], 0x10
jne 0x404718
mov dword [esp], ebx
call sym._isxdigit
test eax, eax
jne 0x404731
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
test edi, edi
jne 0x4038be
test ebp, 0x20
je 0x40300d
mov dword [esp], ebx
call sym._tolower
cmp al, 0x28
jne 0x40300d
mov esi, 0x411811
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x20]
mov ebp, esi
mov esi, dword [esp + 0x24]
jmp 0x4047f1
mov dword [esp], eax
call sym._tolower
cmp byte [ebp], al
jne 0x40300d
add ebp, 1
cmp byte [ebp], 0
je 0x4054b5
mov edx, esi
mov eax, edi
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4047d3
jmp 0x40300d
cmp dword [esp + 0x10], 0xa
jne 0x404792
mov eax, dword [esp + 0x58]
test eax, eax
je 0x404792
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov ecx, 0x7fffffff
movzx edx, byte [esi]
test eax, eax
cmovg ecx, eax
mov eax, edx
cmp edx, ebx
jne 0x405040
mov dword [esp + 0x18], edi
mov eax, ebx
mov ebx, ecx
nop
mov edi, esi
add esi, 1
cmp byte [esi], 0
je 0x404920
test ebx, ebx
je 0x4048ab
mov edx, dword [esp + 0x18]
mov eax, ebp
call sym._in_ch
cmp eax, 0xffffffff
je 0x40492d
movzx edi, byte [esi]
sub ebx, 1
cmp eax, edi
je 0x404850
mov ecx, ebx
mov ebx, eax
mov eax, edi
mov edi, dword [esp + 0x18]
test al, al
jne 0x4059f1
mov eax, dword [esp + 0x28]
test eax, eax
cmovle ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], ecx
lea esi, [eax - 1]
jmp 0x40473e
mov ebx, eax
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x34], esi
jae 0x404796
mov dword [esp], 0
mov ecx, dword [esp + 0x24]
mov eax, ebx
lea edi, [esi - 1]
mov edx, dword [esp + 0x20]
call sym._back_ch
cmp dword [esp + 0x34], edi
jae 0x40490e
mov ebx, edi
movzx eax, byte [ebx]
mov dword [esp], 1
sub ebx, 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
call sym._back_ch
cmp ebx, dword [esp + 0x34]
jne 0x4048e4
mov eax, dword [esp + 0x34]
sub eax, esi
lea edi, [eax + edi + 1]
movzx ebx, byte [edi]
jmp 0x404796
mov ecx, ebx
mov edi, dword [esp + 0x18]
mov ebx, eax
jmp 0x404892
mov edx, edi
mov ecx, ebx
mov edi, dword [esp + 0x18]
mov ebx, eax
movzx eax, byte [edx + 1]
jmp 0x40488a
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x80]
add ebx, 2
mov byte [edx + eax], 1
movzx eax, byte [ebx - 1]
mov dword [esp + 0x14], ebx
jmp 0x4033f5
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x18]
test esi, esi
je case.0x4037ee.1
test ebp, 0x40
je 0x404986
cmp dword [esp + 0x18], 2
je case.0x4037ee.1
lea edi, [esp + 0x7c]
mov edx, edi
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
mov esi, ebp
and esi, 0x80
mov eax, edi
call dbg.resize_wbuf
mov dword [esp + 0x80], eax
mov byte [eax + edi], 0
test ebp, 8
jne 0x405099
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x84]
and ebp, 4
mov dword [esp + 4], edx
mov dword [esp], eax
je 0x405049
call dbg.__strtold
test esi, esi
jne 0x404dba
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
cmp esi, eax
je 0x403025
cmp dword [esp + 0x64], 0x2d
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
jne 0x404a0f
fchs
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x4056b2
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x3c], edx
fstp qword [ecx]
cmp eax, esi
je case.0x4037ee.1
add dword [esp + 0x30], 1
mov dword [esp + 0x18], 0
jmp 0x403064
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
test edx, edx
je 0x404bdb
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042f4
mov eax, ebp
lea edi, [esp + 0x98]
mov dword [esp + 0x64], ebp
mov edx, ebx
and eax, 0x600
mov dword [esp + 0x58], edi
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x98], 0
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x9c], 0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], eax
jmp 0x404ae5
sub edi, 1
je 0x404e7d
mov edx, ebx
mov eax, ebp
call sym._in_ch
mov edx, eax
cmp eax, 0xffffffff
je 0x404e7d
mov eax, dword [esp + 0x80]
movzx ecx, byte [esp + 0x48]
cmp byte [eax + edx], cl
je 0x405363
test esi, esi
jne 0x404ac8
mov eax, dword [esp + 0x58]
mov dword [esp + 8], 1
mov byte [esp + 0x8b], dl
mov dword [esp + 0xc], eax
lea eax, [esp + 0x8b]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov dword [esp], eax
call dbg.mbrtowc
mov edx, dword [esp + 0x18]
cmp eax, 0xfffffffe
je 0x404db0
mov eax, dword [esp + 0x60]
add dword [esp + 0x40], 2
test eax, eax
je 0x404bce
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], 0
mov ecx, dword [ecx]
add eax, eax
mov dword [esp + 0x28], eax
add eax, ecx
cmp dword [esp + 0x40], eax
jne 0x404ac8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], ebx
mov ebx, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
add eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp], ecx
add eax, eax
mov dword [esp + 4], eax
call sym._realloc
test eax, eax
je 0x405858
mov ecx, dword [esp + 0x2c]
mov edx, ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x54], 0
mov dword [ecx], eax
add eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
jmp 0x404ac8
mov dword [esp + 0x54], 0
jmp 0x404ac8
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4042f4
mov ecx, ebp
mov dword [esp + 0x58], ebp
mov edi, dword [esp + 0x20]
and ecx, 0x600
mov dword [esp + 0x54], esi
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x4c], ecx
jmp 0x404c50
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov edx, dword [ecx]
mov ecx, dword [esp + 0x44]
add ecx, edx
cmp eax, ecx
je 0x405291
sub dword [esp + 0x28], 1
je 0x404ee5
mov edx, ebp
mov eax, edi
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x404ee5
mov eax, dword [esp + 0x80]
movzx ecx, byte [esp + 0x48]
cmp byte [eax + ebx], cl
je 0x405340
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x404c31
mov byte [esi], bl
lea eax, [esi + 1]
mov esi, dword [esp + 0x4c]
test esi, esi
jne 0x404c1b
mov esi, eax
jmp 0x404c31
mov ebx, dword [esp + 0x64]
jmp 0x40402a
test esi, esi
je 0x404f00
call sym._strtol
jmp 0x403951
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov ecx, esi
call dbg.optimize_alloc
add dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0
jmp 0x403064
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], ebp
mov ebp, esi
mov esi, ebx
lea ecx, [eax + eax]
lea edi, [eax + 1]
mov ebx, ecx
mov dword [esp + 4], ebx
mov dword [esp], edx
call sym._realloc
test eax, eax
je 0x405acd
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
mov ebx, esi
mov dword [esp + 0x44], ecx
mov esi, ebp
mov ebp, dword [esp + 0x4c]
mov dword [edx], eax
add edi, eax
jmp 0x403794
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x405380
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jne 0x40373e
jmp case.0x4037ee.1
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x403a19
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x40], eax
jmp 0x40421d
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x403c30
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x40], eax
jmp 0x4041ed
add dword [esp + 0x54], 1
jmp 0x404ad1
fstp st(0)
jmp 0x404dc4
fstp st(0)
jmp 0x404dc4
fstp st(0)
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x80], eax
jne 0x404170
jmp case.0x4037ee.1
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x4054fc
mov eax, dword [esp + 0x3c]
mov edi, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
test edi, edi
jne 0x4035c1
jmp case.0x4037ee.1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, ebx
mov dword [esp + 0x4c], edi
mov dword [esp], 1
mov esi, dword [esp + 0x48]
call sym._back_ch
jmp 0x404699
mov ecx, dword [esp + 0x80]
lea edi, [esp + 0x7c]
xor eax, eax
mov edx, edi
call dbg.resize_wbuf
mov edx, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov byte [eax], bl
mov ebx, dword [esp + 0x28]
xor eax, eax
test ebx, ebx
setg al
sub ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
call sym._in_ch
mov dword [esp + 0x54], 1
mov ebx, eax
jmp 0x403840
mov ebx, edx
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x403e90
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x78], eax
je case.0x4037ee.1
mov dword [esp + 0x18], 0
test esi, esi
jne 0x403064
mov eax, dword [esp + 0x40]
xor edx, edx
mov word [eax], dx
lea esi, [eax + 2]
mov eax, dword [esp + 0x44]
mov edx, esi
lea ecx, [eax + eax]
mov eax, dword [esp + 0x2c]
call dbg.optimize_alloc
mov eax, dword [esp + 0x54]
add dword [esp + 0x30], 1
mov dword [esp + 0x40], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], 0
jmp 0x403064
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x78], eax
jne 0x404699
jmp case.0x4037ee.1
call sym._strtoul
jmp 0x403951
call sym._strtoumax
jmp 0x40394d
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x405468
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov dword [edx], eax
mov eax, dword [esp + 0x68]
mov dword [edx + 4], eax
jmp 0x4039c2
test edi, edi
jne 0x404f14
test ebp, 4
jne 0x40539c
test ebp, 2
jne 0x4057ec
and ebp, 1
je 0x4058fd
cmp dword [esp + 0x48], 0
je 0x4039b3
mov edx, dword [esp + 0x48]
xor ecx, ecx
jmp 0x404f78
mov ecx, 1
sub edx, 1
jne 0x404f73
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
test cl, cl
lea edx, [edi + edx*4 - 4]
cmove edx, edi
mov edx, dword [edx]
jmp 0x4039c0
mov ecx, ebp
and ecx, 4
mov dword [esp + 0x18], ecx
je 0x4053d8
mov ebp, dword [esp + 0x48]
test ebp, ebp
jne 0x40574b
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov dword [edx], eax
mov dword [esp + 0x18], 0
jmp 0x403064
mov ebx, dword [esp + 0x54]
lea edi, [esp + 0x7c]
mov edx, edi
mov eax, ebx
call dbg.resize_wbuf
mov edx, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov byte [eax + ebx], 0x30
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
mov dword [esp], ebx
call sym._tolower
cmp eax, 0x78
je 0x405405
mov edi, dword [esp + 0x28]
test edi, edi
setne al
cmp ebx, 0xffffffff
setne dl
and eax, edx
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x40502c
mov dword [esp + 0x10], 8
mov dword [esp + 0x54], esi
test al, al
jne 0x4046f8
jmp 0x4038be
mov esi, dword [esp + 0x34]
jmp 0x40488a
call dbg.__strtof
test esi, esi
jne 0x404dbe
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
cmp esi, eax
je 0x403029
fld st(0)
mov ebp, dword [esp + 0x48]
cmp dword [esp + 0x64], 0x2d
fchs
fcmovne st(0), st(1)
fstp st(1)
test ebp, ebp
jne 0x4056eb
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x3c], edx
fstp dword [ecx]
jmp 0x404a2a
lea eax, [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call dbg.__strtold
test esi, esi
jne 0x404dc2
mov esi, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
cmp esi, eax
je 0x40302d
cmp dword [esp + 0x64], 0x2d
jne 0x4050da
fchs
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x405764
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + 4]
mov ecx, dword [ecx]
fstp xword [ecx]
mov dword [esp + 0x3c], edx
jmp 0x404a2a
mov ecx, ebp
mov edi, ebx
mov ebp, dword [esp + 0x18]
mov ebx, eax
movzx eax, byte [ecx + 1]
jmp 0x404440
mov edi, ebx
mov ebp, dword [esp + 0x18]
mov ebx, eax
jmp 0x404444
mov ecx, dword [esp + 0x80]
lea edi, [esp + 0x7c]
xor eax, eax
mov esi, 1
mov edx, edi
call dbg.resize_wbuf
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x80], eax
mov byte [eax], bl
jmp 0x405148
mov esi, edx
test ebp, ebp
je case.0x4037ee.1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je case.0x4037ee.1
mov dword [esp], eax
call sym._tolower
mov edx, eax
movsx eax, byte [esi + 0x41181a]
cmp edx, eax
jne case.0x4037ee.1
xor eax, eax
test ebp, ebp
mov ecx, dword [esp + 0x80]
mov edx, edi
setg al
sub ebp, eax
mov eax, esi
call dbg.resize_wbuf
cmp byte [esi + 0x41181b], 0
lea edx, [esi + 1]
mov dword [esp + 0x80], eax
mov byte [eax + esi], bl
jne 0x405146
mov eax, ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x18], edx
test eax, eax
je 0x40498a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x40498a
mov dword [esp], eax
call sym._tolower
cmp eax, 0x69
je 0x405ae2
mov dword [esp], 0
mov ecx, dword [esp + 0x24]
mov eax, ebx
mov edx, dword [esp + 0x20]
call sym._back_ch
jmp 0x40498a
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x6c]
jne 0x40436d
movzx eax, byte [esi]
mov edx, eax
cmp eax, ebx
jne 0x404370
mov dword [esp + 0x18], ebp
mov ebp, esi
add esi, 1
cmp byte [esi], 0
je 0x4059e8
test edi, edi
je 0x405272
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je 0x4059d9
movzx eax, byte [esi]
sub edi, 1
mov edx, eax
cmp ebx, eax
je 0x40522f
mov ebp, dword [esp + 0x18]
jmp 0x404370
mov dword [esp + 0x18], ebp
mov dword [esp], 0
mov ecx, dword [esp + 0x24]
mov eax, ebx
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x58]
call sym._back_ch
jmp 0x404967
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], ebp
mov ebp, edi
mov edi, ebx
lea ecx, [eax + eax]
lea esi, [eax + 1]
mov ebx, ecx
mov dword [esp + 4], ebx
mov dword [esp], edx
call sym._realloc
test eax, eax
je 0x4059fa
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
mov ebx, edi
mov dword [esp + 0x44], ecx
mov edi, ebp
mov ebp, dword [esp + 0x60]
mov dword [edx], eax
add esi, eax
jmp 0x404c31
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4056cf
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x403348
jmp case.0x4037ee.1
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x405809
mov eax, dword [esp + 0x3c]
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x403348
jmp case.0x4037ee.1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, ebx
mov dword [esp + 0x4c], esi
mov dword [esp], 1
mov esi, dword [esp + 0x54]
call sym._back_ch
jmp 0x404eed
mov dword [esp], 1
mov ebx, edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, ebx
call sym._back_ch
jmp 0x404e7f
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
jmp 0x404d2a
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x4057d1
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov dword [edx], eax
jmp 0x4039c2
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x4036ce
test ebp, 2
je 0x405481
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x405a1a
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov word [edx], ax
jmp 0x403064
test byte [esp + 0x10], 0xa
jne 0x405736
mov edi, dword [esp + 0x28]
xor eax, eax
mov edx, dword [esp + 0x24]
test edi, edi
setg al
sub edi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], edi
call sym._in_ch
test edi, edi
mov dword [esp + 0x10], 0x10
mov ebx, eax
setne al
cmp ebx, 0xffffffff
setne dl
and eax, edx
jmp 0x40502c
lea eax, [esp + 0x80]
xor ecx, ecx
lea edx, [esp + 0x74]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
call sym._cleanup_return
jmp 0x40304a
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x40547a
lea edx, [edi + ecx*4]
mov edx, dword [edx]
jmp 0x404f2d
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x405708
cmp dword [esp + 0x48], 0
jne 0x4059c0
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov byte [edx], al
mov dword [esp + 0x18], 0
jmp 0x403064
mov ecx, dword [esp + 0x80]
lea edi, [esp + 0x7c]
xor eax, eax
mov ebp, dword [esp + 0x18]
mov edx, edi
call dbg.resize_wbuf
mov dword [esp + 0x54], 1
mov dword [esp + 0x80], eax
mov byte [eax], 0x30
jmp 0x4038f4
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x38]
sub ecx, 1
lea edx, [edi + ecx*4]
cmove edx, edi
mov edx, dword [edx]
jmp 0x403fa6
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov edi, dword [eax]
jmp 0x404df9
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x403549
mov ecx, dword [esp + 0x80]
lea edi, [esp + 0x7c]
xor eax, eax
mov esi, 1
mov edx, edi
call dbg.resize_wbuf
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x80], eax
mov byte [eax], bl
jmp 0x405560
mov esi, dword [esp + 0x18]
test ebp, ebp
je case.0x4037ee.1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je case.0x4037ee.1
mov dword [esp], eax
call sym._tolower
mov edx, eax
movsx eax, byte [esi + 0x411816]
cmp edx, eax
jne case.0x4037ee.1
xor eax, eax
test ebp, ebp
mov ecx, dword [esp + 0x80]
mov edx, edi
setg al
sub ebp, eax
mov eax, esi
call dbg.resize_wbuf
lea ecx, [esi + 1]
cmp byte [esi + 0x411817], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x18], ecx
mov byte [eax + esi], bl
jne 0x40555c
mov ebp, dword [esp + 0x54]
jmp 0x40498a
mov ecx, dword [esp + 0x80]
lea edi, [esp + 0x7c]
xor eax, eax
mov edx, edi
call dbg.resize_wbuf
mov edx, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov byte [eax], 0x30
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x40561f
sub eax, 1
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], eax
je 0x404062
mov dword [esp], ebx
call sym._tolower
cmp eax, 0x78
je 0x40593c
mov byte [esp + 0x54], 0x65
mov dword [esp + 0x18], 1
jmp 0x404062
mov dword [esp], 1
mov ecx, dword [esp + 0x24]
mov eax, ebx
mov edx, dword [esp + 0x20]
call sym._back_ch
jmp 0x40458a
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], ebp
mov esi, ecx
mov ebp, ebx
mov dword [esp + 0x5c], edi
mov edi, ecx
lea edx, [eax + 1]
mov ebx, edx
lea eax, [esi + esi]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp], eax
call sym._realloc
test eax, eax
je 0x405a0b
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov ebx, ebp
mov dword [esp + 0x44], esi
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x5c]
mov dword [edx], eax
add eax, ecx
mov dword [esp + 0x40], eax
jmp 0x404565
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x4056c4
lea edx, [edi + ecx*4]
mov ecx, dword [edx]
mov edx, dword [esp + 0x3c]
jmp 0x404a24
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
jmp 0x4052f5
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x4056fd
lea edx, [edi + ecx*4]
mov ecx, dword [edx]
mov edx, dword [esp + 0x3c]
jmp 0x40508e
cmp dword [esp + 0x48], 0
jne 0x4059a5
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov dword [edx], eax
jmp 0x403064
jne 0x40435f
mov esi, dword [esp + 0x34]
jmp 0x40521e
cmp dword [esp + 0x28], 0
setne al
cmp ebx, 0xffffffff
setne dl
and eax, edx
jmp 0x40502c
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x40575d
lea edx, [edi + ecx*4]
mov edx, dword [edx]
jmp 0x404fc0
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x405776
lea edx, [edi + ecx*4]
mov ecx, dword [edx]
mov edx, dword [esp + 0x3c]
jmp 0x4050ef
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x4032d8
cmp dword [esp + 0x30], 0
jne case.0x4037ee.1
mov dword [esp + 0x30], 0xffffffff
jmp case.0x4037ee.1
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x404261
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x4057e3
lea edx, [edi + ecx*4]
mov edx, dword [edx]
mov dword [edx], eax
jmp 0x4039c2
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x405873
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x3c], ecx
mov word [edx], ax
jmp 0x4039c2
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x38]
sub edx, 1
lea eax, [ebx + edx*4]
cmove eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x40], eax
jmp 0x40532d
movzx eax, bl
jmp 0x40341f
mov eax, dword [esp + 0x30]
test eax, eax
cmove eax, dword [esp + 0x64]
jmp 0x403e6c
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jae 0x40588c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
mov eax, dword [eax]
jmp 0x403b54
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jae 0x4058a4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov ecx, dword [ecx]
jmp 0x404b8b
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x405885
lea edx, [edi + ecx*4]
mov edx, dword [edx]
jmp 0x405801
lea eax, [esp + 0x74]
lea edx, [esp + 0x80]
call dbg.release_ptrs
or eax, 0xffffffff
jmp 0x40304a
mov ebp, dword [esp + 0x64]
and ebp, 0x400
je 0x4058db
or eax, 0xffffffff
lea edx, [esp + 0x80]
mov ecx, dword [esp + 0x2c]
mov dword [esp], edx
lea edx, [esp + 0x74]
call sym._cleanup_return
jmp 0x40304a
mov ebp, dword [esp + 0x58]
and ebp, 0x400
jne 0x4058b0
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov eax, dword [eax]
mov word [eax + ebx*2 - 2], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], 0
add eax, 1
jmp 0x4058b3
cmp dword [esp + 0x48], 0
je 0x4053a8
mov edx, dword [esp + 0x48]
xor ecx, ecx
jmp 0x405915
mov ecx, 1
sub edx, 1
jne 0x405910
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
test cl, cl
lea edx, [edi + edx*4 - 4]
cmove edx, edi
mov edx, dword [edx]
jmp 0x4057e5
mov byte [esp + 0x60], 1
jmp 0x40411c
mov ecx, dword [esp + 0x80]
mov edx, edi
mov eax, 1
call dbg.resize_wbuf
mov edx, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov byte [eax + 1], bl
mov eax, ebp
and ah, 0xfe
or eax, 0x40
mov ebp, eax
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x405993
sub eax, 1
mov byte [esp + 0x54], 0x70
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 2
jmp 0x404062
mov byte [esp + 0x54], 0x70
mov dword [esp + 0x18], 2
jmp 0x404062
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x4059b7
lea edx, [edi + ecx*4]
mov edx, dword [edx]
mov dword [edx], eax
jmp 0x403064
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x4059d2
lea edx, [edi + ecx*4]
mov edx, dword [edx]
jmp 0x4054a6
mov ecx, ebp
mov ebp, dword [esp + 0x18]
movzx edx, byte [ecx + 1]
jmp 0x404370
mov ebp, dword [esp + 0x18]
jmp 0x404378
mov ebp, dword [esp + 0x5c]
jmp 0x4048b9
cmp esi, ebx
jae 0x405a33
mov eax, dword [esp + 0x2c]
mov ebx, esi
mov edx, dword [eax]
jmp 0x4052a5
cmp ebx, esi
jae 0x4058cf
mov esi, ebx
jmp 0x405674
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, edi
sub ecx, 1
je 0x405a2c
lea edx, [edi + ecx*4]
mov edx, dword [edx]
jmp 0x4053fd
mov ebp, dword [esp + 0x58]
and ebp, 0x400
jne 0x4058b0
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov eax, dword [eax]
mov byte [eax + ebx - 1], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], 0
add eax, 1
jmp 0x4058b3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp], 1
call sym._back_ch
jmp case.0x4037ee.1
cmp ebx, esi
jae 0x40588c
mov eax, dword [esp + 0x2c]
mov esi, ebx
mov edx, dword [eax]
jmp 0x40364a
mov edx, dword [esp + 0x48]
xor ecx, ecx
jmp 0x405aa1
mov ecx, 1
sub edx, 1
jne 0x405a9c
jmp 0x404f7d
cmp dword [esp + 0x48], 0
je 0x4053a8
mov edx, dword [esp + 0x48]
xor ecx, ecx
jmp 0x405ac3
mov ecx, 1
sub edx, 1
jne 0x405abe
jmp 0x40591a
cmp edi, ebx
jae 0x405ba3
mov eax, dword [esp + 0x2c]
mov ebx, edi
mov edx, dword [eax]
jmp 0x404cda
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x405af1
sub eax, 1
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
mov edx, edi
add esi, 2
call dbg.resize_wbuf
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], 0x41181e
mov dword [esp + 0x80], eax
mov byte [eax + ecx], bl
jmp 0x405b97
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call sym._in_ch
mov ebx, eax
cmp eax, 0xffffffff
je case.0x4037ee.1
mov dword [esp], eax
call sym._tolower
mov edx, eax
mov eax, dword [esp + 0x54]
movsx eax, byte [eax + 1]
cmp edx, eax
jne case.0x4037ee.1
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x405b5f
sub eax, 1
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x80]
mov edx, edi
mov eax, esi
call dbg.resize_wbuf
add dword [esp + 0x54], 1
lea ecx, [esi + 1]
mov dword [esp + 0x80], eax
mov byte [eax + esi], bl
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
cmp byte [eax + 1], 0
je 0x40498a
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x28], 0
jne 0x405b1e
jmp case.0x4037ee.1
mov ebp, dword [esp + 0x54]
and ebp, 0x400
je 0x405a43
jmp 0x4058b0