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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x405b55
mov ebx, edx
test edx, edx
je 0x405b55
cmp dword [ecx], 0
je 0x405b55
mov dword [esp + 8], ecx
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], 0
call sub.api_ms_win_crt_locale_l1_1_0.dll_localeconv
mov edi, dword [eax]
call sub.api_ms_win_crt_locale_l1_1_0.dll_localeconv
mov eax, dword [eax + 4]
xor esi, esi
mov ecx, 0
test eax, eax
je 0x4022d6
xor ecx, ecx
cmp byte [eax], 0
cmovne ecx, eax
movzx eax, byte [ebx]
test al, al
mov edx, dword [esp + 8]
je 0x405b6a
mov byte [esp + 0x50], al
mov esi, dword [ebp + 8]
lea eax, [edx + 0x1008]
mov dword [esp + 0x34], eax
mov eax, ebx
mov ebx, ecx
sub ebx, edi
mov dword [esp + 0xa0], ebx
mov ebx, eax
mov dword [esp + 0x70], ecx
inc ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x7c], edi
lea ecx, [edi + 1]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
xor edi, edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], esi
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], esi
xor eax, eax
mov dword [esp + 0x28], eax
mov edi, ebx
mov ebx, dword [esp + 0x34]
movzx eax, byte [esp + 0x50]
test al, al
jns 0x402451
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [esp + 0xa8]
push ecx
push eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_mbrlen
add esp, 0xc
test eax, eax
jle 0x40244e
mov esi, eax
add eax, edi
mov dword [esp + 0x50], eax
inc esi
mov edx, dword [esp + 8]
nop dword [eax + eax]
mov eax, dword [ebx]
test eax, eax
je 0x4023c0
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x402420
jmp 0x405b89
mov eax, dword [edx + 0x100c]
mov ecx, 0xffffffff
test al, 1
jne 0x405b8e
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x4023fe
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405b72
inc dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x34]
jmp 0x402420
movzx ebx, byte [ecx]
test ebx, ebx
je 0x405b7c
mov edx, ebx
inc ecx
inc dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x34]
mov eax, edx
mov edx, ebx
mov ebx, ecx
movzx ecx, byte [edi]
cmp eax, ecx
jne 0x405b6e
inc edi
dec esi
cmp esi, 1
jg 0x4023a0
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x50]
movzx eax, byte [edi]
test al, al
jne 0x402360
jmp 0x405bf5
movzx eax, byte [edi]
lea ebx, [edi + 1]
cmp al, 0x25
je 0x4025aa
movzx esi, al
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_isspace
mov edx, dword [esp + 0xc]
add esp, 4
mov edi, 1
test eax, eax
jne 0x402512
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x4024a6
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov esi, dword [edx + eax*4]
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
cmp esi, 0xffffffff
jne 0x4024f9
jmp 0x405ce6
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x405ce6
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x4024e2
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405cd3
mov esi, eax
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
mov edx, dword [esp + 8]
jmp 0x4024f9
movzx esi, byte [ecx]
test esi, esi
je 0x405cdd
inc ecx
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
mov dword [edx], ecx
cmp dword [esp + 0x28], 0
jne 0x402542
xor edi, edi
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
cmp esi, eax
jne 0x405d07
movzx ecx, byte [ebx]
mov eax, edi
mov byte [esp + 0x50], cl
test cl, cl
jne 0x402351
jmp 0x405bf9
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov esi, dword [edx + eax*4]
inc edi
mov dword [esp + 0x14], edi
cmp esi, 0xffffffff
je 0x405ce6
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_isspace
mov edx, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x402500
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
jne 0x402528
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x405ce6
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x402595
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405cd3
mov esi, eax
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
jmp 0x402542
movzx esi, byte [ecx]
test esi, esi
je 0x405cdd
inc ecx
inc edi
mov dword [esp + 0x14], edi
mov dword [edx], ecx
jmp 0x402542
movzx edx, byte [ebx]
add edx, 0xffffffd0
cmp edx, 9
ja 0x4025eb
movzx eax, byte [edi + 2]
add edi, 2
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x4025d7
lea eax, [edx + edx*4]
lea edx, [ecx + eax*2]
movzx eax, byte [edi + 1]
inc edi
lea ecx, [eax - 0x30]
cmp ecx, 0xa
jb 0x4025c4
inc edi
cmp al, 0x24
mov eax, 0
cmovne edx, eax
mov dword [esp + 0x2c], edx
cmove ebx, edi
jmp 0x4025f3
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x70]
mov esi, ebx
xor edi, edi
mov edx, dword [esp + 8]
jmp 0x402608
or edi, 0x80
inc esi
movzx eax, byte [esi]
cmp eax, 0x27
je 0x402637
cmp eax, 0x2a
je 0x402601
cmp eax, 0x49
jne 0x402655
movzx eax, byte [esi + 1]
cmp eax, 0x33
je 0x402646
cmp eax, 0x36
jne 0x40264f
cmp byte [esi + 2], 0x34
jne 0x40264f
add esi, 2
or edi, 0xc
inc esi
jmp 0x402608
mov eax, edi
or eax, 0x100
test ecx, ecx
cmovne edi, eax
inc esi
jmp 0x402608
cmp byte [esi + 2], 0x32
jne 0x40264f
add esi, 2
or edi, 4
inc esi
jmp 0x402608
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x402676
xor ebx, ebx
lea eax, [ebx + ebx*4]
lea ebx, [ecx + eax*2]
movzx eax, byte [esi + 1]
inc esi
lea ecx, [eax - 0x30]
cmp ecx, 0xa
jb 0x40265f
test ebx, ebx
jne 0x40267b
mov ebx, 0xffffffff
movsx eax, al
lea ecx, [eax - 0x4c]
cmp ecx, 0x2e
mov dword [esp + 0x50], ebx
ja case.default.0x40268e
jmp dword [ecx*4 + 0x4a9dd0]
inc esi
or edi, 0xc
jmp case.0x40268e.77
or edi, 4
inc esi
jmp case.0x40268e.77
movzx eax, byte [esi + 1]
cmp eax, 0x53
je 0x4026b7
cmp eax, 0x73
je 0x4026b7
cmp eax, 0x5b
jne 0x402711
inc esi
or edi, 0x200
jmp 0x402711
xor eax, eax
cmp byte [esi + 1], 0x68
lea ecx, [esi + 2]
lea esi, [esi + 1]
cmove esi, ecx
setne al
inc eax
or edi, eax
jmp case.0x40268e.77
or edi, 8
inc esi
jmp case.0x40268e.77
lea ecx, [esi + 2]
xor eax, eax
cmp byte [esi + 1], 0x6c
lea esi, [esi + 1]
sete al
cmove esi, ecx
shl eax, 3
or eax, edi
or eax, 4
mov edi, eax
jmp case.0x40268e.77
movzx ecx, byte [esi + 1]
cmp cl, 0x6c
jne 0x402a84
or edi, 0x404
add esi, 2
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x50]
jmp case.0x40268e.77
test eax, eax
je case.0x402917.38
movzx eax, byte [esi]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], edi
mov byte [esp + 0xc], al
test al, al
je case.0x402917.38
lea eax, [esi + 1]
mov dword [esp + 0x40], eax
cmp dword [esp + 0x28], 0
je 0x402762
mov ebx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov eax, dword [eax]
mov dword [esp + 0x28], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0
jmp 0x4027b7
movzx eax, byte [esp + 0xc]
cmp eax, 0x62
jg 0x402870
cmp eax, 0x43
je 0x402906
cmp eax, 0x5b
je 0x402906
jmp 0x402748
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x100c]
or eax, 1
mov dword [edx + 0x100c], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, 0xffffffff
cmp dword [eax], 4
je 0x405ce6
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_isspace
add esp, 4
test eax, eax
je 0x402831
cmp ebx, 0xffffffff
je 0x402797
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x4027e1
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov ebx, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x4027aa
jmp 0x402797
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
test al, 1
jne 0x402797
mov edx, dword [esp + 8]
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x402818
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x402784
mov ebx, eax
inc dword [esp + 0x14]
jmp 0x4027aa
movzx ebx, byte [ecx]
test ebx, ebx
je 0x40278e
mov edi, ebx
inc ecx
inc dword [esp + 0x14]
mov dword [edx], ecx
jmp 0x4027aa
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
cmp ebx, 0xffffffff
mov edx, dword [esp + 8]
mov ecx, ebx
mov ebx, dword [esp + 0x50]
je 0x4028a0
test byte [edx + 0x1004], 1
jne 0x402883
push dword [edx]
mov edi, ecx
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
mov edx, dword [esp + 0x10]
add esp, 8
mov eax, 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x40289c
cmp eax, 0x63
je 0x4028b5
cmp eax, 0x6e
je 0x402906
jmp 0x402748
dec dword [esp + 0x14]
mov eax, dword [edx + 0x1008]
mov edi, ecx
mov dword [edx + eax*4 + 4], ecx
mov eax, 1
mov ecx, dword [esp + 0x34]
add dword [ecx], eax
mov ecx, edi
movzx eax, byte [esp + 0xc]
cmp al, 0x73
je 0x40295e
movzx eax, al
cmp eax, 0x63
jne 0x402906
test byte [esp + 0x20], 4
jne case.0x402917.67
cmp ebx, 0xffffffff
mov esi, ebx
mov eax, 1
cmove esi, eax
cmp byte [esp + 0x20], 0
js 0x402a27
test dword [esp + 0x20], 0x600
je 0x402b64
cmp dword [esp + 0x2c], 0
je 0x402f93
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x10], eax
jmp 0x402fa4
movzx eax, byte [esp + 0xc]
add eax, 0xffffffdb
cmp eax, 0x53
ja case.0x402917.38
jmp dword [eax*4 + 0x4a9e8c]
mov ecx, ebx
xor ebx, ebx
test ecx, ecx
setg byte [esp + 0xc]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x402a46
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], ecx
cmp ecx, 0xffffffff
jne 0x402abd
jmp 0x405ce6
test byte [esp + 0x20], 4
jne case.0x402917.83
mov ebx, dword [esp + 0x40]
cmp byte [esp + 0x20], 0
js 0x4046bf
test dword [esp + 0x20], 0x600
je 0x4030ad
cmp dword [esp + 0x2c], 0
je 0x403747
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x10], eax
jmp 0x403758
cmp ebx, 0xffffffff
mov eax, 1
cmove ebx, eax
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x20], 0
js 0x403523
test dword [esp + 0x20], 0x600
je 0x402b84
cmp dword [esp + 0x2c], 0
je 0x40301d
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x10], eax
jmp 0x40302e
cmp byte [esp + 0x20], 0
js 0x403e55
test dword [esp + 0x20], 0x600
je 0x402dd2
cmp dword [esp + 0x2c], 0
je 0x4031d2
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x10], eax
jmp 0x4031e3
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403450
jmp 0x405ce6
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x405ce6
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x402a9e
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov dword [esp + 0x78], eax
cmp eax, 0xffffffff
je 0x405df6
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
jmp 0x402abd
mov eax, ecx
or edi, 0x400
inc esi
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x50]
jmp 0x40272a
movzx edx, byte [ecx]
mov dword [esp + 0x78], edx
test edx, edx
je 0x405e00
inc ecx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 8]
mov dword [edx], ecx
movzx ecx, byte [esp + 0xc]
mov bl, cl
sub dword [esp + 0x50], ebx
cmp dword [esp + 0x78], 0x2d
je 0x402ad6
cmp dword [esp + 0x78], 0x2b
jne 0x402b12
cmp dword [esp + 0x50], 0
je case.0x402917.38
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
test ecx, ecx
je 0x402b1f
lea edx, [ecx - 1]
mov esi, dword [esp + 8]
mov dword [esi + 0x1008], edx
mov ecx, dword [esi + ecx*4]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x402e0d
jmp case.0x402917.38
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
jmp 0x402e1e
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 0x100c]
test cl, 1
jne case.0x402917.38
mov edx, dword [esp + 8]
test byte [edx + 0x1004], 1
mov edx, dword [edx]
jne 0x402df2
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x405e4c
inc dword [esp + 0x14]
jmp 0x402e0d
cmp dword [esp + 0x2c], 0
je 0x4032f4
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x48], eax
jmp 0x403305
cmp dword [esp + 0x2c], 0
je 0x403507
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x4c], eax
jmp 0x403518
mov ebx, dword [esp + 0x40]
mov ecx, edx
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0x25
je 0x404e14
jmp 0x405e12
mov ebx, dword [esp + 0x40]
test byte [esp + 0x20], 4
jne 0x40370e
cmp byte [esp + 0x20], 0
js 0x4051a0
test dword [esp + 0x20], 0x600
je 0x404dbe
cmp dword [esp + 0x2c], 0
je 0x40509e
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x10], eax
jmp 0x4050af
or dword [esp + 0x20], 0x10
mov dword [esp + 0x44], 0xa
mov dword [esp + 0x68], 0
mov ebx, 0xa
mov dword [esp + 0x6c], 0xa
jmp 0x402d00
mov ebx, 8
or dword [esp + 0x20], 0x10
mov dword [esp + 0x6c], 0
mov al, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], 0xa
jmp 0x402d00
mov dword [esp + 0xc], ecx
mov ebx, dword [esp + 0x40]
cmp byte [esp + 0x20], 0
js 0x404e14
test byte [esp + 0x20], 8
jne 0x4048a3
test byte [esp + 0x20], 4
jne 0x4049be
test byte [esp + 0x20], 2
jne 0x40507a
mov esi, dword [esp + 0x14]
test byte [esp + 0x20], 1
je 0x4049c2
cmp dword [esp + 0x2c], 0
je 0x405672
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
jmp 0x40567f
mov ebx, 8
mov dword [esp + 0x68], 0
mov dword [esp + 0x44], 8
mov dword [esp + 0x6c], 8
jmp 0x402d00
mov eax, dword [esp + 0x20]
and eax, 0xffffffd1
or eax, 0x24
mov dword [esp + 0x20], eax
mov al, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], 0x10
mov ebx, 0x10
mov dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x402d1c
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov esi, dword [edx + eax*4]
jmp 0x402d51
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
test al, 1
jne 0x405ce6
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x402db8
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405df6
mov esi, eax
inc dword [esp + 0x14]
mov eax, esi
cmp esi, 0x2b
je 0x402d7b
mov eax, esi
cmp esi, 0x2d
je 0x402d7b
mov dword [esp + 0x28], 0
mov eax, esi
cmp esi, 0xffffffff
jne 0x40312b
jmp 0x405ce6
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x3c], 0
jne 0x4030ec
test edi, edi
je 0x4030cd
push 0x100
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4030e2
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor edi, edi
jmp 0x4030ec
movzx edx, byte [ecx]
test edx, edx
je 0x405e00
mov esi, edx
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
jmp 0x402d55
cmp dword [esp + 0x2c], 0
je 0x403e39
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x4c], eax
jmp 0x403e4a
movzx esi, byte [edx]
mov dword [esp + 0xc], esi
test esi, esi
je 0x405e56
inc edx
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
mov dword [eax], edx
xor eax, eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
setg al
sub ecx, eax
mov dword [esp + 0x50], ecx
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x69
je 0x402e71
cmp eax, 0x6e
jne 0x402eae
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x3c], 0
jne 0x40404a
test esi, esi
je 0x40402b
push 0x100
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x404040
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x40404a
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x3c], 0
jne 0x40425e
test esi, esi
je 0x40423f
push 0x100
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x404254
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x40425e
mov dword [esp + 0x28], 0
mov byte [esp + 0x67], 0x65
cmp dword [esp + 0xc], 0x30
jne 0x4037d0
cmp dword [esp + 0x50], 0
je 0x4037d0
xor ecx, ecx
lea edx, [esp + 0x3c]
push dword [esp + 0x18]
call fcn.00406190
add esp, 4
mov dword [esp + 0x18], eax
mov byte [eax], 0x30
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
xor eax, eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
setg al
mov dword [esp + 0x28], 1
sub ecx, eax
mov dword [esp + 0x50], ecx
je 0x4037c8
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x78
jne 0x4037d0
mov ecx, 1
lea edx, [esp + 0x3c]
push dword [esp + 0x18]
call fcn.00406190
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc]
mov byte [eax + 1], cl
mov eax, dword [esp + 0x20]
and eax, 0xfffffebf
or eax, 0x40
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
xor eax, eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
setg al
sub ecx, eax
mov dword [esp + 0x50], ecx
mov byte [esp + 0x67], 0x70
mov dword [esp + 0x28], 2
jmp 0x4037d0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
add ecx, 4
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x10], 0
je 0x405d46
cmp esi, 0x400
mov ecx, 0x400
cmovl ecx, esi
mov dword [esp + 0x38], ecx
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x48], ecx
test ecx, ecx
je 0x405d5c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x402fed
mov ecx, dword [edi]
cmp ecx, 0x20
jb 0x403007
push 0x88
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], edi
xor ecx, ecx
mov edi, eax
mov dword [esp + 0x24], edi
lea eax, [ecx + 1]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov dword [edi + ecx*4 + 8], eax
jmp 0x403310
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
add ecx, 4
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x10], 0
je 0x405d46
mov ecx, dword [esp + 0x50]
cmp ecx, 0x400
mov eax, 0x400
cmovl eax, ecx
mov dword [esp + 0x38], eax
add eax, eax
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x405d5c
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40307d
mov ecx, dword [esi]
cmp ecx, 0x20
jb 0x403097
push 0x88
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], esi
xor ecx, ecx
mov esi, eax
mov dword [esp + 0x24], esi
lea eax, [ecx + 1]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov dword [esi + ecx*4 + 8], eax
jmp 0x403523
cmp dword [esp + 0x2c], 0
je 0x4046a3
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x48], eax
jmp 0x4046b4
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x404908
mov dword [esp + 0x3c], 0x100
mov edi, eax
mov dword [esp + 0x18], edi
mov eax, esi
mov byte [edi], al
xor eax, eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
setg al
sub ecx, eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x40318c
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov esi, dword [edx + eax*4]
inc dword [esp + 0x14]
mov dword [esp + 0x28], 1
cmp dword [esp + 0x50], 0
je 0x403183
mov eax, esi
cmp esi, 0x30
jne 0x403183
cmp dword [esp + 0x50], 0
setg byte [esp + 0x44]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], eax
jne 0x403275
test edi, edi
je 0x403256
push 0x100
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x40326b
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor edi, edi
jmp 0x403275
mov dword [esp + 0xc], esi
jmp 0x404a78
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
mov dword [esp + 0xc], 0xffffffff
test al, 1
jne 0x4057a5
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x403e1c
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x404986
mov esi, eax
jmp 0x40311f
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
add ecx, 4
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x10], 0
je 0x405d46
push 0xc8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x405d5c
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40321e
mov ecx, dword [esi]
cmp ecx, 0x20
jb 0x403238
push 0x88
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], esi
xor ecx, ecx
mov esi, eax
mov dword [esp + 0x24], esi
lea eax, [ecx + 1]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov dword [esi + ecx*4 + 8], eax
mov dword [esp + 0x38], 0x64
jmp 0x403e55
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x40490f
mov dword [esp + 0x3c], 0x100
mov edi, eax
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x28]
mov byte [edi + eax], 0x30
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x4032a8
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
mov dword [esp + 0xc], eax
inc dword [esp + 0x14]
jmp 0x404a02
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
mov dword [esp + 0xc], 0xffffffff
test al, 1
jne 0x404a02
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x404884
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x4049e0
inc dword [esp + 0x14]
mov dword [esp + 0xc], eax
jmp 0x404a02
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
add eax, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x48], 0
je case.0x402917.38
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x405ce6
cmp byte [esp + 0x20], 0
js 0x403450
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0xc]
jmp 0x403365
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov ebx, dword [edx + eax*4]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x20]
dec esi
cmp ebx, 0xffffffff
je 0x4034fe
test eax, 0x600
je 0x4033d6
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
add ecx, eax
cmp edi, ecx
jne 0x4033d6
lea edi, [esi - 1]
mov ecx, dword [esp + 0x38]
cmp ecx, esi
cmovl edi, ecx
add edi, ecx
push edi
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4033b6
mov ecx, dword [esp + 0x38]
lea edx, [ecx + 1]
cmp edi, edx
jbe 0x4033b6
mov ecx, edx
mov edi, edx
push ecx
mov eax, dword [esp + 0x14]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x405d75
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [esp + 0x38], edi
mov edi, ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x34]
mov byte [edi], bl
inc edi
cmp esi, 2
jl 0x4034f1
mov eax, dword [eax]
test eax, eax
jne 0x403347
mov dword [esp + 0x48], edi
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x404670
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x40342f
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x404659
mov ebx, eax
inc dword [esp + 0x14]
mov edx, dword [esp + 8]
jmp 0x403447
movzx edx, byte [ecx]
test edx, edx
je 0x404663
mov ebx, edx
inc ecx
inc dword [esp + 0x14]
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov edi, dword [esp + 0x48]
jmp 0x403357
cmp esi, 2
jl 0x405a63
mov ebx, dword [esp + 0x50]
inc ebx
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x34]
jmp 0x403487
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x404670
dec ebx
cmp ebx, 3
jb 0x4034e8
mov eax, dword [esi]
test eax, eax
jne 0x403468
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x404670
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x4034c8
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x404659
mov ecx, eax
inc dword [esp + 0x14]
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x34]
jmp 0x403481
movzx edx, byte [ecx]
test edx, edx
je 0x404663
mov edi, edx
inc ecx
inc dword [esp + 0x14]
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov esi, dword [esp + 0x34]
mov eax, edi
jmp 0x403481
mov dword [esp + 0xc], eax
jmp 0x404678
mov dword [esp + 0xc], ebx
mov dword [esp + 0x48], edi
jmp 0x404678
mov dword [esp + 0x48], edi
jmp 0x404670
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
add eax, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], 0
je case.0x402917.38
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x405ce6
mov ecx, dword [esp + 0x20]
test cl, cl
sets al
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
test ecx, 0x600
sete cl
or cl, al
mov byte [esp + 0x2c], cl
cmp byte [esp + 0x20], 0
mov eax, dword [esp + 0xc]
mov byte [esp + 0x83], al
mov esi, dword [esp + 0x4c]
mov eax, 0
cmovs esi, eax
test cl, cl
jne 0x403603
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
lea ecx, [eax + ecx*2]
cmp dword [esp + 0x4c], ecx
je 0x4035a4
mov esi, dword [esp + 0x4c]
jmp 0x403603
mov edx, dword [esp + 0x50]
lea edi, [edx - 1]
mov ecx, dword [esp + 0x38]
cmp ecx, edx
cmovle edi, ecx
add edi, ecx
lea ecx, [edi + edi]
push ecx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4035e6
mov ecx, dword [esp + 0x38]
lea esi, [ecx + 1]
cmp edi, esi
jbe 0x4035e6
lea eax, [esi + esi]
push eax
mov eax, dword [esp + 0x14]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, esi
test eax, eax
je 0x405d75
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
lea esi, [eax + ecx*2]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
jmp 0x403631
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x405d2d
mov dword [esp + 0xc], eax
mov byte [esp + 0x83], al
lea eax, [esp + 0x8c]
push eax
push 1
lea eax, [esp + 0x8b]
push eax
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbrtowc
add esp, 0x10
cmp eax, 0xfffffffe
jne 0x4036af
mov eax, dword [edi]
test eax, eax
mov edx, dword [esp + 8]
jne 0x40360d
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x405d2d
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x40368c
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405d1a
inc dword [esp + 0x14]
jmp 0x403626
movzx ebx, byte [ecx]
test ebx, ebx
je 0x405d24
mov esi, edi
mov edi, ebx
inc ecx
inc dword [esp + 0x14]
mov dword [edx], ecx
mov eax, ebx
mov edi, esi
mov esi, dword [esp + 0x28]
jmp 0x403626
cmp eax, 1
jne 0x405d2d
add dword [esp + 0x4c], 2
cmp dword [esp + 0x50], 2
jl 0x4036ef
dec dword [esp + 0x50]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
movzx ecx, byte [esp + 0x2c]
jne 0x40356b
mov dword [esp + 0xc], 0xffffffff
cmp byte [esp + 0x20], 0
js 0x405a63
mov eax, dword [esp + 0x38]
add eax, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
push eax
jmp 0x40468f
cmp byte [esp + 0x20], 0
js 0x4051a0
test dword [esp + 0x20], 0x600
je 0x404dde
cmp dword [esp + 0x2c], 0
je 0x4050d2
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x10], eax
jmp 0x4050e3
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
add ecx, 4
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x10], 0
je 0x405d46
push 0x64
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x48], ecx
test ecx, ecx
je 0x405d5c
mov esi, dword [esp + 0x24]
test esi, esi
je 0x403790
mov ecx, dword [esi]
cmp ecx, 0x20
jb 0x4037aa
push 0x88
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], esi
xor ecx, ecx
mov esi, eax
mov dword [esp + 0x24], esi
lea eax, [ecx + 1]
mov dword [esi], eax
mov eax, dword [esp + 0x10]
mov dword [esi + ecx*4 + 8], eax
mov dword [esp + 0x38], 0x64
jmp 0x4046bf
mov dword [esp + 0x50], 0
movzx eax, byte [esp + 0x67]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], ebx
jmp 0x40382c
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov ecx, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp ecx, 0xffffffff
je 0x4048fb
xor eax, eax
mov esi, dword [esp + 0x50]
test esi, esi
setg al
sub esi, eax
mov dword [esp + 0x50], esi
lea eax, [ecx - 0x30]
cmp eax, 0xa
jb 0x40385b
cmp byte [esp + 0x6c], 0
jne 0x4038b0
mov eax, ebx
and eax, 0x40
je 0x4038b0
push ecx
mov esi, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_isxdigit
mov ecx, esi
mov edx, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x4038e2
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], eax
jne 0x4039b6
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x28]
lea edi, [eax + eax]
cmp edi, 0x101
mov eax, 0x100
cmovb edi, eax
test esi, esi
je 0x40398f
push edi
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4039a0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x4039a6
cmp byte [esp + 0x6c], 0
je 0x4038e2
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
movzx ebx, byte [esp + 0x67]
cmp byte [esi + eax - 1], bl
mov ebx, dword [esp + 0x20]
jne 0x40395e
cmp ecx, 0x2d
je 0x40385b
cmp ecx, 0x2b
je 0x40385b
jmp 0x40395e
cmp dword [esp + 0x28], 0
je 0x40395e
cmp byte [esp + 0x6c], 0
jne 0x40395e
push ecx
mov dword [esp + 0x10], ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
mov ecx, dword [esp + 0x10]
add esp, 4
movsx eax, al
cmp eax, dword [esp + 0x9c]
jne 0x40395e
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], eax
jne 0x403d09
mov eax, dword [esp + 0x28]
lea edi, [eax + eax]
cmp edi, 0x101
mov eax, 0x100
cmovb edi, eax
test esi, esi
je 0x403cf2
push edi
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x403d03
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x403d09
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x50]
test eax, eax
mov ecx, 0x7fffffff
cmovg ecx, eax
mov dword [esp + 0x44], ecx
cmp byte [esp + 0x68], 0
je 0x4039cb
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x44]
movzx eax, byte [esi]
mov dword [esp + 0x44], edi
jmp 0x403ac2
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x403aae
mov dword [esp + 0x3c], edi
mov esi, eax
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
mov byte [esi + eax], cl
inc eax
mov dword [esp + 0x28], eax
jmp 0x403d3a
mov eax, dword [esp + 0x7c]
movzx eax, byte [eax]
cmp dword [esp + 0xc], eax
jne 0x403ab5
mov eax, dword [esp + 0x88]
movzx eax, byte [eax]
test al, al
je 0x403abb
mov ecx, dword [esp + 0x44]
dec ecx
mov esi, dword [esp + 0x88]
mov dword [esp + 0x44], ecx
lea edi, [ecx + 1]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x403a2d
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403a84
jmp 0x403dde
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
test al, 1
jne 0x403dde
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x403a6a
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x403dc7
inc dword [esp + 0x14]
jmp 0x403a84
movzx edx, byte [ecx]
mov dword [esp + 0xc], edx
test edx, edx
je 0x403dd1
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
movzx eax, byte [esi]
cmp dword [esp + 0xc], eax
jne 0x403ac2
test edi, edi
jle 0x403ac2
movzx eax, byte [esi + 1]
inc esi
mov ecx, dword [esp + 0x44]
add ecx, 0xffffffff
setb dl
test al, al
je 0x403ac2
test dl, dl
jne 0x4039fa
jmp 0x403ac2
xor esi, esi
jmp 0x4039a6
mov esi, dword [esp + 0x7c]
jmp 0x403ac2
mov esi, dword [esp + 0x88]
test al, al
je 0x403b1e
mov edi, dword [esp + 0x70]
cmp byte [esp + 0x68], 0
jne 0x403cce
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x70]
and eax, 0x100
je 0x403cce
mov eax, esi
sub eax, dword [esp + 0x7c]
test eax, eax
jle 0x403bce
add esi, dword [esp + 0xa0]
xor ecx, ecx
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
movzx edx, byte [edx + ecx]
cmp dl, byte [edi + ecx]
jne 0x403bd6
inc ecx
cmp ecx, eax
jl 0x403b03
jmp 0x403be7
mov eax, dword [esp + 0x7c]
cmp byte [eax], 0
je 0x403bac
mov ecx, dword [esp + 0x28]
lea esi, [ecx + ecx]
mov edi, dword [esp + 0x88]
jmp 0x403b6d
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x403ba8
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x3c], ecx
mov ebx, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
movzx eax, byte [edi - 1]
mov byte [ebx + ecx], al
inc ecx
add esi, 2
cmp byte [edi], 0
lea edi, [edi + 1]
je 0x403bb0
mov ebx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x3c]
jne 0x403b56
mov dword [esp + 0x28], ecx
cmp esi, 0x101
mov eax, 0x100
cmovae eax, esi
test ebx, ebx
mov dword [esp + 0x68], eax
je 0x403b3b
push eax
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x403b48
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor ebx, ebx
jmp 0x403b52
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x50]
test eax, eax
cmovg eax, dword [esp + 0x44]
mov dword [esp + 0x50], eax
mov al, 1
mov dword [esp + 0x68], eax
jmp 0x403d2a
xor ecx, ecx
mov esi, dword [esp + 0x70]
jmp 0x403bdd
mov edx, dword [esp + 0x70]
lea esi, [edx + ecx]
mov edi, esi
cmp ecx, eax
jne 0x403cce
movzx eax, byte [esi]
cmp dword [esp + 0xc], eax
jne 0x403cd9
cmp dword [esp + 0x44], 0
js 0x403cd9
movzx eax, byte [esi + 1]
test al, al
je 0x403cd9
cmp dword [esp + 0x44], 0
je 0x403cd9
inc esi
mov ecx, dword [esp + 0x44]
neg ecx
mov edi, esi
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x403c4f
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403ca6
jmp 0x403e02
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
test al, 1
jne 0x403e02
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x403c8c
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x403deb
inc dword [esp + 0x14]
jmp 0x403ca6
movzx edx, byte [ecx]
mov dword [esp + 0xc], edx
test edx, edx
je 0x403df5
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
movzx eax, byte [edi]
cmp dword [esp + 0xc], eax
jne 0x403cc8
movzx eax, byte [edi + 1]
test al, al
je 0x403cc8
inc edi
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
cmp edx, 0xffffffff
jne 0x403c1f
not dword [esp + 0x44]
jmp 0x403cd9
test edi, edi
je 0x4048c3
movzx eax, byte [edi]
test al, al
jne 0x4048c3
mov eax, dword [esp + 0x50]
test eax, eax
cmovg eax, dword [esp + 0x44]
mov dword [esp + 0x50], eax
jmp 0x403d2a
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x403dc0
mov dword [esp + 0x3c], edi
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
movzx ecx, byte [esp + 0x67]
mov byte [esi + eax], cl
inc eax
mov dword [esp + 0x28], eax
mov al, 1
mov dword [esp + 0x68], eax
mov al, 1
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x50], 0
je 0x403e13
mov eax, dword [edi]
test eax, eax
jne 0x403802
mov eax, dword [edx + 0x100c]
mov dword [esp + 0xc], 0xffffffff
test al, 1
jne 0x404e42
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x403d99
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x404954
mov ecx, eax
inc dword [esp + 0x14]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
jmp 0x40381b
movzx edx, byte [ecx]
test edx, edx
je 0x40496c
mov esi, edx
inc ecx
inc dword [esp + 0x14]
mov edx, dword [esp + 8]
mov dword [edx], ecx
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x20]
mov ecx, esi
jmp 0x40381b
xor esi, esi
jmp 0x403d09
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov dword [esp + 0xc], 0xffffffff
jmp 0x403983
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
neg dword [esp + 0x44]
mov dword [esp + 0xc], 0xffffffff
jmp 0x403cd6
mov dword [esp + 0xc], ecx
jmp 0x404e42
movzx edx, byte [ecx]
test edx, edx
je 0x404990
mov esi, edx
inc dword [esp + 0x14]
inc ecx
mov eax, dword [esp + 8]
mov dword [eax], ecx
jmp 0x403123
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
add eax, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], 0
je case.0x402917.38
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x405ce6
mov ecx, dword [esp + 0x20]
test cl, cl
sets al
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
test ecx, 0x600
sete cl
or cl, al
mov byte [esp + 0x2c], cl
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_isspace
add esp, 4
test eax, eax
jne 0x404916
cmp byte [esp + 0x20], 0
mov esi, dword [esp + 0x4c]
mov eax, 0
cmovs esi, eax
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], esi
mov byte [esp + 0x83], cl
lea eax, [esp + 0x8c]
push eax
push 1
lea eax, [esp + 0x8b]
push eax
push esi
mov ebx, ecx
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbrtowc
add esp, 0x10
cmp eax, 0xfffffffe
jne 0x403f6a
mov eax, dword [edi]
test eax, eax
mov edx, dword [esp + 8]
je 0x403f0f
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov ecx, dword [edx + eax*4]
jmp 0x403f3c
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x405d2d
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x403f4a
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405d1a
mov ecx, eax
inc dword [esp + 0x14]
cmp ecx, 0xffffffff
jne 0x403ece
jmp 0x405d2d
movzx ebx, byte [ecx]
test ebx, ebx
je 0x405d24
mov esi, edi
mov edi, ebx
inc ecx
inc dword [esp + 0x14]
mov dword [edx], ecx
mov ecx, ebx
mov edi, esi
mov esi, dword [esp + 0x28]
jmp 0x403f40
mov dword [esp + 0xc], ebx
cmp eax, 1
jne 0x405d2d
add dword [esp + 0x4c], 2
cmp byte [esp + 0x2c], 0
jne 0x403fee
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
lea ecx, [eax + ecx*2]
cmp dword [esp + 0x4c], ecx
jne 0x403fee
mov ecx, dword [esp + 0x38]
lea esi, [ecx + ecx]
lea ecx, [ecx*4]
push ecx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x403fd1
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 1]
cmp esi, edi
jbe 0x403fd1
lea eax, [edi + edi]
push eax
mov eax, dword [esp + 0x14]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, edi
test eax, eax
je 0x405e68
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
lea eax, [eax + ecx*2]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], esi
cmp dword [esp + 0x50], 0
jle 0x404004
cmp dword [esp + 0x50], 1
je 0x4056c3
dec dword [esp + 0x50]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403e9d
mov dword [esp + 0xc], 0xffffffff
jmp 0x4056c3
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4049b0
mov dword [esp + 0x3c], 0x100
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esi], al
cmp dword [esp + 0x50], 0
je case.0x402917.38
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x404087
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov ebx, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x4040d8
jmp case.0x402917.38
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
test al, 1
jne case.0x402917.38
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x4040c2
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405e30
mov ebx, eax
inc dword [esp + 0x14]
jmp 0x4040d8
movzx ebx, byte [ecx]
test ebx, ebx
je 0x405e3a
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x61
jne case.0x402917.38
cmp dword [esp + 0x50], 0
setg byte [esp + 0xc]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x3c], 1
jne 0x404141
test esi, esi
je 0x404122
push 0x100
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x404137
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x404141
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4049a2
mov dword [esp + 0x3c], 0x100
mov esi, eax
xor eax, eax
movzx ecx, byte [esp + 0xc]
mov al, cl
mov dword [esp + 0x18], esi
mov byte [esi + 1], bl
cmp dword [esp + 0x50], eax
je case.0x402917.38
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x404187
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4041de
jmp case.0x402917.38
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
test al, 1
jne case.0x402917.38
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x4041c4
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x405e30
inc dword [esp + 0x14]
jmp 0x4041de
movzx edx, byte [ecx]
mov dword [esp + 0xc], edx
test edx, edx
je 0x405e3a
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x6e
jne case.0x402917.38
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], 2
jne 0x404227
test eax, eax
je 0x404212
push 0x100
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
jmp 0x40421f
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc]
mov byte [eax + 2], cl
mov dword [esp + 0x28], 3
jmp 0x404e5f
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4049b7
mov dword [esp + 0x3c], 0x100
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esi], al
cmp dword [esp + 0x50], 0
je case.0x402917.38
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x40429b
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov ebx, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp ebx, 0xffffffff
jne 0x4042ec
jmp case.0x402917.38
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
test al, 1
jne case.0x402917.38
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x4042d6
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405e30
mov ebx, eax
inc dword [esp + 0x14]
jmp 0x4042ec
movzx ebx, byte [ecx]
test ebx, ebx
je 0x405e3a
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x6e
jne case.0x402917.38
cmp dword [esp + 0x50], 0
setg byte [esp + 0xc]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x3c], 1
jne 0x404355
test esi, esi
je 0x404336
push 0x100
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x40434b
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x404355
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4049a9
mov dword [esp + 0x3c], 0x100
mov esi, eax
xor eax, eax
movzx ecx, byte [esp + 0xc]
mov al, cl
mov dword [esp + 0x18], esi
mov byte [esi + 1], bl
sub dword [esp + 0x50], eax
je case.0x402917.38
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x40439b
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4043f2
jmp case.0x402917.38
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
test al, 1
jne case.0x402917.38
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x4043d8
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x405e30
inc dword [esp + 0x14]
jmp 0x4043f2
movzx edx, byte [ecx]
mov dword [esp + 0xc], edx
test edx, edx
je 0x405e3a
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x66
jne case.0x402917.38
xor ebx, ebx
cmp dword [esp + 0x50], 0
setg byte [esp + 0x28]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x3c], 2
jne 0x404447
test eax, eax
je 0x404432
push 0x100
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
jmp 0x40443f
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esp + 0x3c], 0x100
movzx ecx, byte [esp + 0x28]
mov bl, cl
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc]
mov byte [eax + 2], cl
mov dword [esp + 0x28], 3
sub dword [esp + 0x50], ebx
je 0x404e5f
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x404630
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x69
jne 0x40463d
xor ebx, ebx
mov esi, dword [esp + 0x50]
test esi, esi
setg bl
mov ecx, 3
lea edx, [esp + 0x3c]
push dword [esp + 0x18]
call fcn.00406190
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0xc]
mov byte [eax + 3], cl
sub esi, ebx
je case.0x402917.38
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
cmp eax, 0xffffffff
je case.0x402917.38
mov ebx, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x6e
jne case.0x402917.38
xor eax, eax
test esi, esi
setg al
mov edi, eax
mov ecx, 4
lea edx, [esp + 0x3c]
push dword [esp + 0x18]
call fcn.00406190
add esp, 4
mov dword [esp + 0x18], eax
mov byte [eax + 4], bl
sub esi, edi
je case.0x402917.38
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
cmp eax, 0xffffffff
je case.0x402917.38
mov ebx, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x69
jne case.0x402917.38
xor eax, eax
test esi, esi
setg al
mov edi, eax
mov ecx, 5
lea edx, [esp + 0x3c]
push dword [esp + 0x18]
call fcn.00406190
add esp, 4
mov dword [esp + 0x18], eax
mov byte [eax + 5], bl
sub esi, edi
je case.0x402917.38
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
cmp eax, 0xffffffff
je case.0x402917.38
mov ebx, eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x74
jne case.0x402917.38
xor eax, eax
test esi, esi
setg al
mov edi, eax
mov ecx, 6
lea edx, [esp + 0x3c]
push dword [esp + 0x18]
call fcn.00406190
add esp, 4
mov dword [esp + 0x18], eax
mov byte [eax + 6], bl
cmp esi, edi
je case.0x402917.38
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je case.0x402917.38
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x79
jne case.0x402917.38
mov ecx, 7
lea edx, [esp + 0x3c]
push dword [esp + 0x18]
call fcn.00406190
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov byte [esi + 7], al
mov dword [esp + 0x28], 8
jmp 0x404e63
mov dword [esp + 0xc], 0xffffffff
jmp 0x404e5f
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x18]
push eax
call fcn.00405f80
add esp, 8
jmp 0x404e5f
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov dword [esp + 0xc], 0xffffffff
cmp byte [esp + 0x20], 0
js 0x405a63
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
push dword [esp + 0x38]
call fcn.00406160
add esp, 4
mov esi, dword [esp + 0x1c]
inc esi
xor edi, edi
jmp 0x405af9
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
add eax, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x48], 0
je case.0x402917.38
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
cmp eax, 0xffffffff
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
jne 0x4046f7
jmp 0x405ce6
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40483f
mov dword [esp + 0xc], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_isspace
add esp, 4
test eax, eax
jne 0x404822
mov ecx, dword [esp + 0x20]
test cl, cl
js 0x40473b
lea eax, [edi + 1]
mov edx, dword [esp + 0xc]
mov byte [edi], dl
test ecx, 0x600
je 0x404739
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x38]
add edx, ecx
cmp eax, edx
je 0x4047cc
mov edi, eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x404755
cmp eax, 1
je 0x40484d
dec eax
mov dword [esp + 0x50], eax
mov eax, dword [esi]
test eax, eax
jne 0x4046de
mov dword [esp + 0x48], edi
mov eax, dword [edx + 0x100c]
mov dword [esp + 0xc], 0xffffffff
test al, 1
jne 0x404851
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x4047a5
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x404932
mov ecx, eax
inc dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
jmp 0x4046ee
movzx esi, byte [ecx]
test esi, esi
je 0x404942
mov edx, esi
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
mov eax, edx
jmp 0x4046ee
mov eax, dword [esp + 0x38]
lea esi, [eax + eax]
push esi
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4047fd
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 1]
cmp esi, edi
jbe 0x4047fd
push edi
mov eax, dword [esp + 0x14]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, edi
test eax, eax
je 0x405d8c
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov edi, dword [esp + 0x38]
add edi, eax
mov dword [esp + 0x38], esi
mov edx, dword [esp + 8]
mov esi, dword [esp + 0x34]
jmp 0x40473f
mov dword [esp + 0x48], edi
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 1
lea eax, [esp + 0x18]
push eax
call fcn.00405f80
add esp, 8
jmp 0x404851
mov dword [esp + 0x48], edi
mov dword [esp + 0xc], 0xffffffff
jmp 0x404851
mov dword [esp + 0x48], edi
cmp byte [esp + 0x20], 0
js 0x404e14
mov edx, dword [esp + 0x48]
mov byte [edx], 0
inc edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
push dword [esp + 0x38]
call fcn.00406160
add esp, 4
mov esi, dword [esp + 0x1c]
inc esi
xor edi, edi
jmp 0x405afd
movzx edx, byte [ecx]
mov dword [esp + 0xc], edx
test edx, edx
je 0x4049ed
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
jmp 0x404a02
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x2c], 0
je 0x404dfe
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
jmp 0x404e0b
cmp dword [esp + 0xc], 0xffffffff
je 0x4048fb
mov eax, dword [esp + 8]
test byte [eax + 0x1004], 1
jne 0x404e21
mov eax, dword [esp + 8]
push dword [eax]
push dword [esp + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
add esp, 8
lea eax, [esp + 0x14]
mov ecx, 0xffffffff
jmp 0x404e40
mov dword [esp + 0xc], 0xffffffff
jmp 0x404e42
xor edi, edi
jmp 0x4030ec
xor edi, edi
jmp 0x403275
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 1
lea eax, [esp + 0x18]
push eax
call fcn.00405f80
add esp, 8
jmp 0x4056c3
mov eax, dword [esp + 8]
or byte [eax + 0x100c], 1
jmp 0x404843
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
jmp 0x404843
mov eax, dword [esp + 8]
or byte [eax + 0x100c], 1
mov dword [esp + 0xc], 0xffffffff
jmp 0x404e42
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov dword [esp + 0xc], 0xffffffff
jmp 0x404e42
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
jmp 0x4057a5
xor esi, esi
jmp 0x404141
xor esi, esi
jmp 0x404355
xor esi, esi
jmp 0x40404a
xor esi, esi
jmp 0x40425e
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x2c], 0
je 0x405153
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [eax], esi
jmp 0x404e14
mov eax, dword [esp + 8]
or byte [eax + 0x100c], 1
jmp 0x404a02
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov dword [esp + 0xc], 0xffffffff
xor ecx, ecx
movzx eax, byte [esp + 0x44]
mov cl, al
mov eax, dword [esp + 0x50]
sub eax, ecx
inc dword [esp + 0x28]
mov dword [esp + 0x50], eax
test eax, eax
je 0x404a61
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp eax, 0x78
jne 0x404a6a
cmp byte [esp + 0x68], 0
je 0x404a70
xor eax, eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
setg al
sub ecx, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
mov dword [esp + 0x44], 0x10
jmp 0x404a78
mov dword [esp + 0x44], ebx
jmp 0x405797
mov dword [esp + 0x44], ebx
jmp 0x404a78
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
cmp dword [esp + 0xc], 0xffffffff
je 0x405797
cmp dword [esp + 0x50], 0
je 0x405797
cmp dword [esp + 0x44], 0xa
setne al
test dword [esp + 0x20], 0x100
sete cl
or cl, al
mov byte [esp + 0x6c], cl
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0xc], ecx
jne 0x404ad4
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_isxdigit
add esp, 4
test eax, eax
jne 0x404c1f
jmp 0x404d46
lea eax, [ecx - 0x30]
cmp eax, 9
ja 0x404ae6
cmp eax, dword [esp + 0x44]
jl 0x404c1f
mov dword [esp + 0x28], edi
cmp byte [esp + 0x6c], 0
jne 0x405797
test ebx, ebx
mov edi, 0x7fffffff
mov dword [esp + 0x50], ebx
cmovg edi, ebx
mov eax, dword [esp + 0x70]
movzx eax, byte [eax]
cmp ecx, eax
jne 0x404bd2
mov eax, dword [esp + 0x98]
movzx eax, byte [eax]
test al, al
je 0x404bd8
dec edi
mov ecx, edi
mov esi, dword [esp + 0x98]
mov edi, ecx
lea ebx, [ecx + 1]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
mov edx, dword [esp + 8]
je 0x404b5b
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov ecx, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp ecx, 0xffffffff
jne 0x404ba8
jmp 0x404bfc
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x404bfc
mov dword [esp + 0xc], ebx
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x404b8e
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x404be1
mov ecx, eax
inc dword [esp + 0x14]
jmp 0x404ba4
movzx edx, byte [ecx]
test edx, edx
je 0x404beb
mov ebx, edx
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov ecx, edx
mov ebx, dword [esp + 0xc]
movzx eax, byte [esi]
cmp ecx, eax
mov dword [esp + 0xc], ecx
jne 0x404c09
test ebx, ebx
jle 0x404c09
movzx eax, byte [esi + 1]
inc esi
mov ecx, edi
add ecx, 0xffffffff
setb dl
test al, al
je 0x404c09
test dl, dl
jne 0x404b2e
jmp 0x404c09
mov esi, dword [esp + 0x70]
jmp 0x404c09
mov esi, dword [esp + 0x98]
jmp 0x404c09
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov ebx, dword [esp + 0xc]
movzx eax, byte [esi]
mov dword [esp + 0xc], 0xffffffff
mov edi, ebx
test al, al
jne 0x404d57
mov ebx, dword [esp + 0x50]
test ebx, ebx
cmovg ebx, edi
mov edi, dword [esp + 0x28]
dec edi
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x3c], edi
mov dword [esp + 0x50], ebx
jne 0x404c5e
mov ebx, edi
add edi, edi
cmp edi, 0x101
mov eax, 0x100
cmovb edi, eax
test esi, esi
je 0x404c68
push edi
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x404c79
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x404c7f
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
jmp 0x404c89
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x404d32
mov dword [esp + 0x3c], edi
mov esi, eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edi, ebx
mov dword [esp + 0x18], esi
mov byte [esi + edi], al
inc edi
xor ebx, ebx
cmp dword [esp + 0x50], 0
setg byte [esp + 0x68]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x404cb9
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov ecx, dword [edx + eax*4]
inc dword [esp + 0x14]
jmp 0x404d16
mov dword [esp + 0x28], edi
mov eax, dword [edx + 0x100c]
mov dword [esp + 0xc], 0xffffffff
test al, 1
jne 0x405797
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x404cf8
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x404d8c
mov ecx, eax
inc dword [esp + 0x14]
jmp 0x404d12
movzx esi, byte [ecx]
test esi, esi
je 0x404da4
mov edx, esi
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov ecx, esi
mov edi, dword [esp + 0x28]
cmp ecx, 0xffffffff
je 0x404d39
movzx eax, byte [esp + 0x68]
mov bl, al
mov eax, dword [esp + 0x50]
sub eax, ebx
mov ebx, eax
jne 0x404ab3
jmp 0x404d39
xor esi, esi
jmp 0x404c7f
mov dword [esp + 0x28], edi
mov dword [esp + 0xc], ecx
jmp 0x405797
mov dword [esp + 0x28], edi
mov dword [esp + 0x44], 0x10
jmp 0x405797
cmp esi, dword [esp + 0x70]
jbe 0x405797
cmp dword [esp + 0xc], 0xffffffff
je 0x40575c
mov eax, dword [esp + 8]
test byte [eax + 0x1004], 1
jne 0x405642
mov eax, dword [esp + 8]
push dword [eax]
push dword [esp + 0x10]
jmp 0x40573e
mov eax, dword [esp + 8]
or byte [eax + 0x100c], 1
mov dword [esp + 0xc], 0xffffffff
jmp 0x405797
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov dword [esp + 0xc], 0xffffffff
jmp 0x405797
cmp dword [esp + 0x2c], 0
je 0x405167
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x48], eax
jmp 0x405178
cmp dword [esp + 0x2c], 0
je 0x405184
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [esp + 0x4c], eax
jmp 0x405195
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
mov dword [eax], esi
mov dword [eax + 4], 0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x405afd
dec dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x1008]
mov edx, dword [esp + 0xc]
mov dword [ecx + eax*4 + 4], edx
mov eax, dword [esp + 0x34]
mov ecx, 1
add dword [eax], ecx
cmp dword [esp + 0x28], 0
je case.0x402917.38
test byte [esp + 0x20], 0x40
je 0x404e5f
cmp dword [esp + 0x28], 2
je case.0x402917.38
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], eax
jne 0x404eb8
mov eax, dword [esp + 0x28]
lea edi, [eax + eax]
cmp edi, 0x101
mov eax, 0x100
cmovb edi, eax
test esi, esi
je 0x404ea1
push edi
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x404eb2
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x404eb8
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x40500d
mov dword [esp + 0x3c], edi
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
mov byte [esi + eax], 0
test byte [esp + 0x20], 8
jne 0x404f4a
mov eax, dword [esp + 0x18]
test byte [esp + 0x20], 4
jne 0x404fa4
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.0040f200
add esp, 8
fstp dword [esp + 0xa4]
cmp byte [esp + 0x20], 0
js 0x405057
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x18]
je 0x405057
movss xmm0, dword [esp + 0xa4]
movaps xmmword [esp + 0x50], xmm0
cmp dword [esp + 0x78], 0x2d
jne 0x404f2e
movaps xmm0, xmmword [esp + 0x50]
xorps xmm0, xmmword [0x4a9dc0]
movaps xmmword [esp + 0x50], xmm0
cmp dword [esp + 0x2c], 0
je 0x405029
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
jmp 0x405036
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x1c]
call fcn.0040f280
add esp, 8
cmp byte [esp + 0x20], 0
js 0x404f9d
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x18]
je 0x404f9d
cmp dword [esp + 0x78], 0x2d
fld st(0)
fxch st(1)
fchs
fxch st(1)
fcmove st(0), st(1)
fstp st(1)
fstp xword [esp + 0x50]
cmp dword [esp + 0x2c], 0
je 0x405014
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
jmp 0x405021
fstp st(0)
jmp 0x405057
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.0040f280
add esp, 8
fstp qword [esp + 0xb0]
cmp byte [esp + 0x20], 0
js 0x405057
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x18]
je 0x405057
movsd xmm0, qword [esp + 0xb0]
movaps xmmword [esp + 0x50], xmm0
cmp dword [esp + 0x78], 0x2d
jne 0x404ff8
movaps xmm0, xmmword [esp + 0x50]
xorps xmm0, xmmword [0x4a9db0]
movaps xmmword [esp + 0x50], xmm0
cmp dword [esp + 0x2c], 0
je 0x405041
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
jmp 0x40504e
xor esi, esi
jmp 0x404eb8
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
fld xword [esp + 0x50]
fstp xword [eax]
jmp 0x405057
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
movaps xmm0, xmmword [esp + 0x50]
movss dword [eax], xmm0
jmp 0x405057
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
movaps xmm0, xmmword [esp + 0x50]
movsd qword [eax], xmm0
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x74]
je case.0x402917.38
xor eax, eax
cmp byte [esp + 0x20], 0
setns al
mov esi, dword [esp + 0x1c]
add esi, eax
jmp 0x405af5
movzx esi, word [esp + 0x14]
cmp dword [esp + 0x2c], 0
je 0x40565d
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov word [eax], si
jmp 0x404e14
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
add ecx, 4
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x10], 0
je 0x405d46
push 0x64
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x48], ecx
jmp 0x405107
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
add ecx, 4
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x10], 0
je 0x405d46
push 0xc8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x405d5c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x40511e
mov ecx, dword [edi]
cmp ecx, 0x20
jb 0x405138
push 0x88
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], edi
xor ecx, ecx
mov edi, eax
mov dword [esp + 0x24], edi
lea eax, [ecx + 1]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov dword [edi + ecx*4 + 8], eax
mov dword [esp + 0x38], 0x64
jmp 0x4051a0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
mov dword [eax], esi
jmp 0x404e14
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
add eax, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x48], 0
jne 0x4051a0
jmp case.0x402917.38
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
add eax, 4
mov dword [esp + 0x30], eax
cmp dword [esp + 0x4c], 0
je case.0x402917.38
movzx eax, byte [esi + 1]
add esi, 2
mov byte [esp + 0x28], al
cmp al, 0x5e
cmove ebx, esi
mov ecx, dword [esp + 0x50]
cmp ecx, 0x7fffffff
mov eax, 0x7fffffff
cmovae ecx, eax
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x3c], 0xff
mov eax, dword [esp + 0x18]
ja 0x4051fa
mov dword [esp + 0x3c], 0x100
test eax, eax
je 0x4051e9
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esp + 0x18], eax
xorps xmm0, xmm0
movups xmmword [eax + 0xf0], xmm0
movups xmmword [eax + 0xe0], xmm0
movups xmmword [eax + 0xd0], xmm0
movups xmmword [eax + 0xc0], xmm0
movups xmmword [eax + 0xb0], xmm0
movups xmmword [eax + 0xa0], xmm0
movups xmmword [eax + 0x90], xmm0
movups xmmword [eax + 0x80], xmm0
movups xmmword [eax + 0x70], xmm0
movups xmmword [eax + 0x60], xmm0
movups xmmword [eax + 0x50], xmm0
movups xmmword [eax + 0x40], xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
movzx ecx, byte [ebx]
cmp ecx, 0x5d
je 0x405261
cmp ecx, 0x2d
jne 0x405266
mov byte [eax + ecx], 1
inc ebx
mov ecx, ebx
jmp 0x405276
mov ecx, dword [esp + 0x18]
mov byte [ecx + eax], 1
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 1]
movzx eax, byte [ecx]
cmp eax, 0x2d
mov dword [esp + 0x40], edx
je 0x405294
test eax, eax
je case.0x402917.38
cmp eax, 0x5d
jne 0x40526a
jmp 0x4052c6
movzx ebx, byte [edx]
test ebx, ebx
je 0x40526a
cmp ebx, 0x5d
je 0x40526a
movzx edx, byte [ecx - 1]
cmp dl, bl
ja 0x40526a
mov ecx, dword [esp + 0x40]
cmp dl, bl
jae 0x405276
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov byte [eax + edx], 1
inc edx
movzx eax, byte [ecx]
cmp edx, eax
jb 0x4052b4
jmp 0x405276
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
call fcn.00405f00
mov dword [esp + 0xc], eax
test byte [esp + 0x20], 4
jne 0x40544b
cmp dword [esp + 0xc], 0xffffffff
je 0x405ce6
xor ebx, ebx
cmp byte [esp + 0x28], 0x5e
sete bl
inc dword [esp + 0x50]
jmp 0x405328
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
mov dword [esp + 0xc], eax
inc dword [esp + 0x14]
cmp dword [esp + 0xc], 0xffffffff
je 0x405708
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
movsx eax, byte [eax + ecx]
cmp eax, ebx
je 0x405626
cmp byte [esp + 0x20], 0
js 0x4053bd
mov ecx, dword [esp + 0x48]
lea eax, [ecx + 1]
mov edx, dword [esp + 0xc]
mov byte [ecx], dl
test dword [esp + 0x20], 0x600
je 0x40536a
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x38]
add edx, ecx
cmp eax, edx
je 0x405370
mov dword [esp + 0x48], eax
jmp 0x4053bd
mov eax, dword [esp + 0x38]
lea esi, [eax + eax]
push esi
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4053a1
mov ecx, dword [esp + 0x38]
lea edi, [ecx + 1]
cmp esi, edi
jbe 0x4053a1
push edi
mov eax, dword [esp + 0x14]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, edi
test eax, eax
je 0x405d8c
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x50]
dec eax
mov dword [esp + 0x50], eax
cmp eax, 2
jl 0x405710
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
jne 0x405305
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
mov dword [esp + 0xc], 0xffffffff
test al, 1
jne 0x405710
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x405421
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x405319
jmp 0x4056ee
movzx edx, byte [ecx]
mov dword [esp + 0xc], edx
test edx, edx
je 0x4056fb
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
cmp dword [esp + 0xc], 0xffffffff
jne 0x405328
jmp 0x405708
cmp dword [esp + 0xc], 0xffffffff
je 0x405ce6
xor eax, eax
cmp byte [esp + 0x28], 0x5e
sete al
mov esi, eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x28], 0
jmp 0x4054a5
lea ecx, [eax - 1]
mov edx, dword [esp + 8]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
mov dword [esp + 0xc], eax
inc dword [esp + 0x14]
cmp dword [esp + 0xc], 0xffffffff
je 0x4056a2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
movsx eax, byte [eax + ecx]
mov ecx, esi
cmp eax, esi
je 0x40560a
cmp byte [esp + 0x20], 0
js 0x40557f
mov eax, dword [esp + 0xc]
mov byte [esp + 0x83], al
lea eax, [esp + 0x8c]
push eax
push 1
lea eax, [esp + 0x8b]
push eax
push dword [esp + 0x58]
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbrtowc
add esp, 0x10
cmp eax, 0xfffffffe
jne 0x4054fd
inc dword [esp + 0x28]
jmp 0x40558e
add dword [esp + 0x4c], 2
mov dword [esp + 0x28], 0
test dword [esp + 0x20], 0x600
je 0x40557f
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
lea ecx, [eax + ecx*2]
cmp dword [esp + 0x4c], ecx
jne 0x40557f
mov ecx, dword [esp + 0x38]
lea edi, [ecx + ecx]
lea ecx, [ecx*4]
push ecx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x405562
mov ecx, dword [esp + 0x38]
lea ebx, [ecx + 1]
cmp edi, ebx
jbe 0x405562
lea eax, [ebx + ebx]
push eax
mov eax, dword [esp + 0x14]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, ebx
test eax, eax
je 0x405e68
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
lea eax, [eax + ecx*2]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], edi
cmp dword [esp + 0x50], 2
jl 0x4056aa
dec dword [esp + 0x50]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
jne 0x405482
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
mov dword [esp + 0xc], 0xffffffff
test al, 1
jne 0x4056aa
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x4055e0
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x405496
jmp 0x405688
movzx edx, byte [ecx]
mov dword [esp + 0xc], edx
test edx, edx
je 0x405695
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
cmp dword [esp + 0xc], 0xffffffff
jne 0x4054a5
jmp 0x4056a2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 1
lea eax, [esp + 0x18]
push eax
call fcn.00405f80
add esp, 8
jmp 0x4056aa
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 1
lea eax, [esp + 0x18]
push eax
call fcn.00405f80
add esp, 8
jmp 0x405710
dec dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x1008]
mov edx, dword [esp + 0xc]
mov dword [ecx + eax*4 + 4], edx
jmp 0x405751
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
mov word [eax], si
jmp 0x404e14
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
mov ecx, esi
mov byte [eax], cl
jmp 0x404e14
mov eax, dword [esp + 8]
or byte [eax + 0x100c], 1
jmp 0x4056a2
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x28], 0
jne 0x405d2d
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x14]
je case.0x402917.38
cmp byte [esp + 0x20], 0
js 0x405a63
mov edx, dword [esp + 0x4c]
mov word [edx], 0
add edx, 2
mov eax, dword [esp + 0x38]
add eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], edx
push eax
jmp 0x40468f
mov eax, dword [esp + 8]
or byte [eax + 0x100c], 1
jmp 0x405708
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x14]
je case.0x402917.38
cmp byte [esp + 0x20], 0
js 0x405a63
mov edx, dword [esp + 0x48]
mov byte [edx], 0
inc edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
jmp 0x40468b
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
add esp, 8
mov eax, 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x40575a
mov eax, 1
mov ecx, dword [esp + 0x34]
add dword [ecx], eax
dec esi
cmp esi, dword [esp + 0x70]
jbe 0x405790
movzx eax, byte [esi]
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
jne 0x40577c
mov ecx, dword [esp + 8]
push dword [ecx]
push eax
jmp 0x40573e
dec dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ecx, dword [edx + 0x1008]
mov dword [edx + ecx*4 + 4], eax
jmp 0x405751
movzx eax, byte [esi]
mov dword [esp + 0xc], eax
cmp dword [esp + 0x28], 0
je 0x405802
cmp dword [esp + 0x28], 1
jne 0x4057c6
mov eax, dword [esp + 0x18]
movzx eax, byte [eax]
cmp eax, 0x2b
je 0x405de5
mov dword [esp + 0x28], 1
cmp eax, 0x2d
je 0x405de5
cmp dword [esp + 0xc], 0xffffffff
je 0x405913
mov eax, dword [esp + 8]
test byte [eax + 0x1004], 1
jne 0x40591d
mov eax, dword [esp + 8]
push dword [eax]
push dword [esp + 0x10]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
add esp, 8
mov eax, 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x40593c
test byte [esp + 0x20], 0x20
je 0x405de5
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
cmp al, 0x28
jne 0x405de5
mov bl, 0x6e
mov esi, 0xfffffffc
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
test eax, eax
je 0x405850
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov eax, dword [edx + eax*4]
inc dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x4058a9
jmp 0x405ddd
mov eax, dword [edx + 0x100c]
mov dword [esp + 0xc], 0xffffffff
test al, 1
jne 0x405de5
mov ecx, dword [esp + 8]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x40588f
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405dc6
mov ecx, eax
inc dword [esp + 0x14]
jmp 0x4058a9
movzx edi, byte [ecx]
test edi, edi
je 0x405dd0
mov edx, edi
inc ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov eax, edi
movsx edi, bl
mov dword [esp + 0xc], eax
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_tolower
add esp, 4
movsx eax, al
cmp eax, edi
jne 0x405de5
movzx ebx, byte [esi + 0x4a9fe2]
inc esi
mov edx, dword [esp + 8]
jne 0x40582c
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x3c], 0
jne 0x405b2c
test esi, esi
je 0x405b11
push 0x100
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x405b22
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x405b2c
mov dword [esp + 0xc], 0xffffffff
jmp 0x40593e
dec dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x1008]
mov edx, dword [esp + 0xc]
mov dword [ecx + eax*4 + 4], edx
mov eax, 1
mov ecx, dword [esp + 0x34]
add dword [ecx], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], eax
jne 0x405997
mov eax, dword [esp + 0x28]
lea edi, [eax + eax]
cmp edi, 0x101
mov eax, 0x100
cmovb edi, eax
test esi, esi
je 0x405980
push edi
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x405991
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x405997
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x405a9c
mov dword [esp + 0x3c], edi
mov esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
mov byte [esi + eax], 0
mov eax, dword [esp + 0x18]
test byte [esp + 0x20], 8
jne 0x4059c6
test byte [esp + 0x20], 0x10
jne 0x4059de
push dword [esp + 0x44]
lea ecx, [esp + 0x78]
push ecx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
jmp 0x4059ed
test byte [esp + 0x20], 0x10
jne 0x4059f4
push dword [esp + 0x44]
lea ecx, [esp + 0x78]
push ecx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoull
jmp 0x405a03
push dword [esp + 0x44]
lea ecx, [esp + 0x78]
push ecx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
add esp, 0xc
mov ebx, eax
jmp 0x405a0f
push dword [esp + 0x44]
lea ecx, [esp + 0x78]
push ecx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoll
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x94], edx
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x74]
je case.0x402917.38
cmp byte [esp + 0x20], 0
js 0x405a63
test byte [esp + 0x20], 0x10
test byte [esp + 0x20], 8
jne 0x405a6c
test byte [esp + 0x20], 4
jne 0x405a49
test byte [esp + 0x20], 2
jne 0x405aa3
test byte [esp + 0x20], 1
jne 0x405ac9
cmp dword [esp + 0x2c], 0
je 0x405ab8
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov dword [eax], ebx
jmp 0x405af0
mov esi, dword [esp + 0x1c]
jmp 0x405af5
cmp dword [esp + 0x2c], 0
je 0x405a81
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
jmp 0x405a8e
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x94]
mov dword [eax + 4], ecx
jmp 0x405af0
xor esi, esi
jmp 0x405997
cmp dword [esp + 0x2c], 0
je 0x405ae0
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
jmp 0x405aed
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
mov dword [eax], ebx
jmp 0x405af0
cmp dword [esp + 0x2c], 0
je 0x405b40
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
call fcn.004060b0
mov byte [eax], bl
jmp 0x405af0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
mov word [eax], bx
mov esi, dword [esp + 0x1c]
inc esi
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x40]
movzx eax, byte [ebx]
mov byte [esp + 0x50], al
test al, al
jne 0x402347
jmp 0x405bd7
push 0x100
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x405b51
mov dword [esp + 0x3c], 0x100
mov esi, eax
mov dword [esp + 0x18], esi
mov byte [esi], 0x30
mov dword [esp + 0x28], 1
jmp 0x40593e
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x30], ecx
mov byte [eax], bl
jmp 0x405af0
xor esi, esi
jmp 0x405b2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x16
mov esi, 0xffffffff
jmp 0x405beb
xor edi, edi
jmp 0x405bd7
mov ecx, eax
jmp 0x405b8e
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov edx, dword [esp + 8]
mov dword [edx + 0x100c], eax
mov ecx, 0xffffffff
test byte [edx + 0x1004], 1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jne 0x405bb5
push dword [edx]
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
add esp, 8
mov eax, 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x405bcc
dec dword [esp + 0x14]
mov eax, dword [edx + 0x1008]
mov dword [edx + eax*4 + 4], ecx
mov eax, 1
mov ecx, dword [esp + 0x34]
add dword [ecx], eax
xor eax, eax
cmp esi, 1
sbb eax, eax
or esi, eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x24]
mov ecx, esi
push eax
push edi
call fcn.00405fd0
add esp, 8
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x28]
test edi, edi
je 0x405cc6
lea esi, [edx + 0x1008]
jmp 0x405c2a
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
mov edi, dword [edx + eax*4]
inc dword [esp + 0x14]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_isspace
add esp, 4
test eax, eax
mov edx, dword [esp + 8]
je 0x405c8d
mov eax, dword [esi]
test eax, eax
jne 0x405c09
mov eax, dword [edx + 0x100c]
mov edi, 0xffffffff
test al, 1
jne 0x405c19
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x405c60
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
cmp eax, 0xffffffff
je 0x405c70
inc dword [esp + 0x14]
mov edi, eax
jmp 0x405c19
movzx edi, byte [ecx]
test edi, edi
je 0x405c7d
inc ecx
inc dword [esp + 0x14]
mov dword [edx], ecx
jmp 0x405c19
mov eax, dword [esp + 8]
or byte [eax + 0x100c], 1
jmp 0x405c19
or eax, 1
mov dword [edx + 0x100c], eax
mov edi, 0xffffffff
jmp 0x405c19
cmp edi, 0xffffffff
je 0x405cc6
test byte [edx + 0x1004], 1
jne 0x405cb1
push dword [edx]
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
add esp, 8
mov eax, 0xffffffff
lea esi, [esp + 0x14]
jmp 0x405cc4
dec dword [esp + 0x14]
mov eax, dword [edx + 0x1008]
mov dword [edx + eax*4 + 4], edi
mov eax, 1
add dword [esi], eax
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x405bd7
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x100c]
or eax, 1
mov dword [edx + 0x100c], eax
xor eax, eax
mov esi, dword [esp + 0x1c]
cmp esi, 1
sbb eax, eax
or esi, eax
lea eax, [esp + 0x18]
lea edx, [esp + 0x24]
mov ecx, esi
push eax
push dword [esp + 0x14]
jmp 0x405be3
lea eax, [esp + 0x14]
mov ecx, esi
push 0
push eax
call fcn.00405f80
add esp, 8
jmp case.0x402917.38
mov edx, dword [esp + 8]
mov eax, dword [edx + 0x100c]
or eax, 1
mov dword [edx + 0x100c], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x2a
lea eax, [esp + 0x18]
lea edx, [esp + 0x24]
mov esi, dword [esp + 0x1c]
jmp 0x405cfb
lea eax, [esp + 0x18]
lea edx, [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, esi
push eax
push 0
jmp 0x405be3
mov ecx, dword [esp + 0x20]
and ecx, 0x400
xor eax, eax
neg ecx
sbb eax, eax
mov esi, dword [esp + 0x1c]
jmp 0x405cf1
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
call fcn.004060e0
mov esi, 0xffffffff
jmp 0x405beb
mov ecx, 0xffffffff
test dword [esp + 0x20], 0x400
jne 0x405db7
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
mov byte [ecx + eax - 1], 0
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x10], 0
mov esi, ecx
lea eax, [esp + 0x18]
lea edx, [esp + 0x24]
jmp 0x405cfd
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
jmp 0x405d0d
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
jmp 0x405ce6
cmp dword [esp + 0xc], 0xffffffff
je 0x405ce6
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 1
jmp 0x405d0f
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x100c], eax
jmp case.0x402917.38
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x100c]
or ecx, 1
mov eax, dword [esp + 8]
mov dword [eax + 0x100c], ecx
jmp case.0x402917.38
mov ecx, 0xffffffff
test dword [esp + 0x20], 0x400
jne 0x405db7
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov ecx, dword [esp + 0x38]
mov word [eax + ecx*2 - 2], 0
jmp 0x405daa