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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x409ac8
test edx, edx
je 0x409ac8
cmp dword [ecx], 0
je 0x409ac8
mov ebx, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
call sub.api_ms_win_crt_locale_l1_1_0.dll_localeconv
lea edi, [esp + 0x78]
lea esi, [esp + 0x76]
push edi
push 0x10
push dword [eax]
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbrtowc
add esp, 0x10
mov dword [esp + 0x2c], eax
movzx eax, word [esp + 0x76]
mov dword [esp + 0x50], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
call sub.api_ms_win_crt_locale_l1_1_0.dll_localeconv
push edi
push 0x10
push dword [eax + 4]
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_mbrtowc
add esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0
mov ecx, 0
test eax, eax
jle 0x406358
movzx ecx, word [esp + 0x76]
mov dword [esp + 0x80], ecx
movzx esi, word [ebx]
test si, si
je case.0x406982.38
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
add eax, 0x1008
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x2c], 0
mov eax, 0x2e
cmovg eax, dword [esp + 0x50]
mov dword [esp + 0x98], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x44], 0
mov dword [esp + 8], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], ecx
mov ecx, ebx
mov dword [esp + 0x18], 0
xor ebx, ebx
jmp 0x4063f1
xor edx, edx
mov ecx, esi
mov dword [esp + 0x18], ecx
cmp bx, si
jne 0x409bc9
movzx esi, word [edi]
mov ecx, edi
mov ebx, edx
test si, si
je 0x409add
lea edi, [ecx + 2]
cmp si, 0x25
je 0x406565
movzx eax, si
push 8
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
mov edx, 1
mov dword [esp + 0x50], eax
test eax, eax
jne 0x4063e1
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x40643a
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
movzx ebx, word [edx + eax*4]
jmp 0x406475
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x100c]
test al, 1
jne 0x409c10
mov ebx, dword [esp + 0xc]
test byte [ebx + 0x1004], 1
mov ecx, dword [ebx]
jne 0x40653c
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409bfd
movzx ebx, ax
inc dword [esp + 0x10]
cmp ebx, 0xffff
je 0x409c10
cmp dword [esp + 0x2c], 0
je 0x4063d0
movzx eax, bx
push 8
push eax
jmp 0x4064c4
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
movzx ebx, word [edx + eax*4]
inc dword [esp + 0x10]
cmp ebx, 0xffff
je 0x409bbc
push 8
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
je 0x4063d0
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
jne 0x4064a0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x100c]
test al, 1
jne 0x409bbc
mov ebx, dword [esp + 0xc]
test byte [ebx + 0x1004], 1
mov ecx, dword [ebx]
jne 0x406517
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409ba9
movzx ebx, ax
jmp 0x4064b1
movzx ebx, word [ecx]
test ebx, ebx
je 0x409baf
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
cmp ebx, 0xffff
jne 0x4064c1
jmp 0x409bbc
movzx ebx, word [ecx]
test ebx, ebx
je 0x409c03
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
cmp ebx, 0xffff
jne 0x406485
jmp 0x409c10
mov dword [esp + 0x2c], ebx
mov esi, ecx
movzx eax, word [edi]
push 4
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4065d6
mov dword [esp + 0x50], edi
mov eax, esi
add esi, 4
movzx edi, word [eax + 2]
add edi, 0xffffffd0
movzx eax, word [eax + 4]
push 4
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
je 0x4065e0
nop word cs:[eax + eax]
lea eax, [edi + edi*4]
lea ebx, [esi + 2]
movzx ecx, word [esi]
lea edi, [ecx + eax*2]
add edi, 0xffffffd0
movzx eax, word [esi + 2]
push 4
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
mov esi, ebx
test eax, eax
jne 0x4065b0
jmp 0x4065e2
mov dword [esp + 0x40], 0
jmp 0x4065fe
mov ebx, esi
lea eax, [ebx + 2]
cmp word [ebx], 0x24
mov ecx, 0
cmovne edi, ecx
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x50]
cmove edi, eax
xor ebx, ebx
mov ecx, dword [esp + 0x80]
jmp 0x406619
or ebx, 0x80
add edi, 2
movzx eax, word [edi]
cmp eax, 0x27
je 0x406650
cmp eax, 0x2a
je 0x406610
cmp eax, 0x49
jne 0x406678
movzx eax, word [edi + 2]
cmp eax, 0x33
je 0x406662
cmp eax, 0x36
jne 0x406670
cmp word [edi + 4], 0x34
jne 0x406670
add edi, 4
or ebx, 0xc
add edi, 2
jmp 0x406619
mov eax, ebx
or eax, 0x100
test cx, cx
cmovne ebx, eax
add edi, 2
jmp 0x406619
cmp word [edi + 4], 0x32
jne 0x406670
add edi, 4
nop dword [eax]
or ebx, 4
add edi, 2
jmp 0x406619
movzx eax, al
push 4
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
mov dword [esp + 0x50], ebx
je 0x4066b6
xor esi, esi
lea eax, [esi + esi*4]
movzx ecx, byte [edi]
movzx edx, byte [edi + 2]
add edi, 2
lea esi, [ecx + eax*2]
add esi, 0xffffffd0
push 4
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
jne 0x406690
test esi, esi
jne 0x4066bb
mov esi, 0xffffffff
movzx edx, word [edi]
movzx eax, dx
lea ecx, [eax - 0x4c]
cmp ecx, 0x2e
mov ebx, dword [esp + 0x2c]
ja case.default.0x4066d1
jmp dword [ecx*4 + 0x4aa010]
add edi, 2
mov eax, 0xc
jmp 0x406765
add edi, 2
mov eax, 4
jmp 0x406765
lea ecx, [edi + 2]
movzx edx, word [edi + 2]
mov eax, 0x200
cmp edx, 0x53
je 0x406767
cmp edx, 0x5b
je 0x406767
mov word [esp + 0x30], 0x61
cmp edx, 0x73
je 0x406767
jmp 0x40677e
lea ecx, [edi + 2]
lea edx, [edi + 4]
xor eax, eax
cmp word [edi + 2], 0x68
setne al
cmove ecx, edx
inc eax
jmp 0x406767
add edi, 2
mov eax, 8
jmp 0x406765
lea ecx, [edi + 2]
lea edx, [edi + 4]
xor eax, eax
cmp word [edi + 2], 0x6c
sete al
lea eax, [eax*8 + 4]
cmove ecx, edx
jmp 0x406767
movzx edx, word [edi + 2]
cmp dx, 0x6c
jne 0x406a94
add edi, 4
mov eax, 0x404
mov ecx, edi
movzx edx, word [ecx]
mov edi, ecx
test dx, dx
je case.0x406982.38
mov word [esp + 0x30], dx
or dword [esp + 0x50], eax
lea edx, [edi + 2]
test ebx, ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], esi
je 0x4067a9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov eax, dword [eax]
mov dword [esp + 0x38], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0
mov esi, dword [esp + 0x18]
jmp 0x406814
movzx eax, word [esp + 0x30]
cmp eax, 0x62
jg 0x4068d6
cmp eax, 0x43
je 0x406968
cmp eax, 0x5b
je 0x406968
jmp 0x40678d
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x100c]
or ecx, 1
mov eax, dword [esp + 0xc]
mov dword [eax + 0x100c], ecx
nop word cs:[eax + eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 4
je 0x409c10
movzx ebx, si
push 8
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
je 0x406896
mov eax, esi
mov si, 0xffff
cmp ax, 0xffff
je 0x4067f0
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x40684a
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
movzx eax, word [edx + eax*4]
inc dword [esp + 0x10]
mov esi, eax
cmp eax, 0xffff
je 0x4067f0
jmp 0x4067fe
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x100c]
test cl, 1
jne 0x4067f0
test byte [eax + 0x1004], 1
mov edx, dword [eax]
jne 0x40687c
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x4067cb
movzx eax, ax
jmp 0x40683b
movzx eax, word [edx]
test eax, eax
je 0x4067d5
add edx, 2
inc dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x40683f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov dword [esp + 0x18], esi
cmp si, 0xffff
mov edx, dword [esp + 0x20]
je 0x406902
mov ecx, dword [esp + 0xc]
test byte [ecx + 0x1004], 1
jne 0x4068e9
push dword [ecx]
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetwc
mov edx, dword [esp + 0x28]
add esp, 8
mov eax, 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x406900
cmp eax, 0x63
je 0x406919
cmp eax, 0x6e
je 0x406968
jmp 0x40678d
dec dword [esp + 0x10]
mov eax, dword [ecx + 0x1008]
mov dword [ecx + eax*4 + 4], ebx
mov eax, 1
mov ecx, dword [esp + 0x4c]
add dword [ecx], eax
movzx eax, word [esp + 0x30]
cmp ax, 0x73
je 0x4069ba
movzx eax, ax
cmp eax, 0x63
jne 0x406968
mov ecx, dword [esp + 0x50]
test cl, 4
jne case.0x406982.67
mov ebx, dword [esp + 0x2c]
cmp ebx, 0xffffffff
mov eax, 1
cmove ebx, eax
test cl, cl
js 0x406a57
test ecx, 0x600
mov eax, dword [esp + 8]
je 0x406bff
mov edx, dword [esp + 0x40]
test edx, edx
je 0x407018
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov esi, eax
jmp 0x407025
movzx eax, word [esp + 0x30]
add eax, 0xffffffdb
cmp eax, 0x53
mov ecx, dword [esp + 0x50]
ja case.0x406982.38
mov esi, 8
jmp dword [eax*4 + 0x4aa0cc]
xor ebx, ebx
mov esi, dword [esp + 0x2c]
test esi, esi
setg byte [esp + 0x18]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x406ab4
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
movzx ecx, word [edx + eax*4]
jmp 0x406aef
mov ecx, dword [esp + 0x50]
test cl, 4
jne case.0x406982.83
test cl, cl
mov edx, dword [esp + 0x40]
jns 0x406b69
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
jmp 0x407925
mov esi, dword [esp + 0x2c]
cmp esi, 0xffffffff
mov edi, esi
mov eax, 1
cmove edi, eax
test cl, cl
js 0x406a64
test ecx, 0x600
mov esi, dword [esp + 0xc]
je 0x406c1e
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x40]
test edx, edx
je 0x407098
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov edi, eax
jmp 0x4070a5
test cl, cl
mov edx, dword [esp + 0x40]
mov dword [esp + 0x50], ecx
js 0x406b5c
test ecx, 0x600
mov eax, dword [esp + 8]
je 0x406e55
test edx, edx
je 0x4071e8
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov esi, eax
jmp 0x4071f5
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x44]
jmp 0x4074ff
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.00409f90
mov ebx, eax
cmp bx, 0xffff
jne 0x4077dd
jmp 0x409ce0
mov word [esp + 0x30], dx
test eax, eax
jne 0x40677e
jmp case.0x406982.38
add edi, 2
mov eax, 0x400
test dx, dx
jne 0x406775
jmp case.0x406982.38
mov word [esp + 0x30], dx
jmp 0x40677e
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x100c]
test al, 1
jne 0x409c10
mov ecx, dword [esp + 0xc]
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x406bcd
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409dff
movzx ecx, ax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp ecx, 0xffff
je 0x409c10
movzx edx, byte [esp + 0x18]
mov bl, dl
sub esi, ebx
cmp ecx, 0x2d
mov dword [esp + 0x8c], ecx
je 0x406b1e
cmp ecx, 0x2b
jne 0x406b4d
test esi, esi
mov ebx, dword [esp + 0xc]
je case.0x406982.38
mov edi, esi
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x406b90
lea edx, [ecx - 1]
mov dword [ebx + 0x1008], edx
movzx esi, word [ebx + ecx*4]
inc eax
mov dword [esp + 0x10], eax
jmp 0x406e85
mov dword [esp + 0x2c], esi
mov esi, ecx
mov ebx, dword [esp + 0xc]
jmp 0x406e9e
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x3c]
jmp 0x407b24
test ecx, 0x600
mov edi, dword [esp + 8]
je 0x407125
test edx, edx
je 0x4078b6
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov edi, eax
jmp 0x4078c3
mov ecx, dword [ebx + 0x100c]
test cl, 1
jne case.0x406982.38
test byte [ebx + 0x1004], 1
mov edx, dword [ebx]
jne 0x406e70
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409e72
movzx esi, ax
inc dword [esp + 0x10]
jmp 0x406e85
movzx edx, word [ecx]
test edx, edx
je 0x409c03
mov edi, edx
add ecx, 2
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
mov ecx, edi
cmp ecx, 0xffff
jne 0x406b04
jmp 0x409c10
mov dword [esp + 8], eax
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4074e6
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov esi, eax
jmp 0x4074f3
mov edx, dword [esp + 0x40]
test edx, edx
mov ebx, dword [esp + 8]
je 0x407666
mov ecx, dword [ebp + 8]
call fcn.0040a140
jmp 0x407673
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.00409f90
mov dword [esp + 0x18], eax
cmp ax, 0x25
je 0x40916f
jmp 0x409dbd
mov eax, edx
test cl, 4
jne 0x4074a5
test cl, cl
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
js 0x4074db
test ecx, 0x600
je 0x409178
test edx, edx
je 0x409229
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov esi, eax
jmp 0x409236
or ecx, 0x10
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], 0xa
mov dword [esp + 0x6c], 0
mov esi, 0xa
mov dword [esp + 0x68], 0xa
jmp 0x406d77
or ecx, 0x10
mov dword [esp + 0x50], ecx
mov dword [esp + 0x68], 0
mov al, 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x38], 0xa
jmp 0x406d77
mov eax, edx
test cl, cl
mov edx, dword [esp + 0x40]
js 0x4074d4
test cl, 8
jne 0x4085a9
test cl, 4
jne 0x408a01
test cl, 2
jne 0x409208
mov ebx, dword [esp + 0x10]
test byte [esp + 0x50], 1
jne 0x4099c6
cmp dword [esp + 0x40], 0
je 0x409a42
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
call fcn.0040a140
jmp 0x409a4f
mov dword [esp + 0x6c], 0
mov dword [esp + 0x38], 8
mov dword [esp + 0x68], 8
jmp 0x406d77
and ecx, 0xffffffd1
or ecx, 0x24
mov dword [esp + 0x50], ecx
mov al, 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x38], 0x10
mov esi, 0x10
mov dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
mov ebx, dword [esp + 0xc]
je 0x406d93
lea ecx, [eax - 1]
mov dword [ebx + 0x1008], ecx
mov edx, dword [ebx + eax*4]
jmp 0x406dc2
mov eax, dword [ebx + 0x100c]
test al, 1
jne 0x409c10
test byte [ebx + 0x1004], 1
mov ecx, dword [ebx]
jne 0x406df8
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409e0e
movzx edx, ax
inc dword [esp + 0x10]
cmp dx, 0x2b
je 0x406e12
movzx eax, dx
cmp eax, 0x2d
je 0x406e12
cmp eax, 0xffff
je 0x409c10
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
jmp 0x408903
movzx edx, word [ecx]
test edx, edx
je 0x409e14
add ecx, 2
inc dword [esp + 0x10]
mov dword [ebx], ecx
cmp dx, 0x2b
jne 0x406dcc
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x406e27
mov dword [esp + 0x30], eax
jmp 0x40716d
mov ebx, edx
test edi, edi
je 0x40713c
push 0x200
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x40714d
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x407161
mov dword [esp + 8], eax
test edx, edx
je 0x407b0b
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov esi, eax
jmp 0x407b18
movzx esi, word [edx]
test esi, esi
je 0x409e78
add edx, 2
inc eax
mov dword [esp + 0x10], eax
mov dword [ebx], edx
cmp esi, 0xffff
je case.0x406982.38
xor eax, eax
test edi, edi
setg al
sub edi, eax
mov dword [esp + 0x2c], edi
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x6e
jne 0x406eeb
mov edi, esi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x407285
test esi, esi
je 0x407267
push 0x200
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x407278
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x407281
movzx eax, si
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x69
jne 0x406f3b
mov edi, esi
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x408173
test esi, esi
je 0x408155
push 0x200
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x408166
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x40816f
mov word [esp + 0x74], 0x65
cmp dword [esp + 0x2c], 0
je 0x40700b
cmp si, 0x30
jne 0x40700b
xor ecx, ecx
lea edx, [esp + 0x48]
push dword [esp + 0x14]
call fcn.0040a220
add esp, 4
mov dword [esp + 0x14], eax
mov word [eax], 0x30
mov ecx, ebx
lea edx, [esp + 0x10]
call fcn.00409f90
mov esi, eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
setg al
sub ecx, eax
mov dword [esp + 0x2c], ecx
je 0x407cbb
movzx eax, si
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x78
jne 0x407ccd
mov ecx, 1
lea edx, [esp + 0x48]
push dword [esp + 0x14]
call fcn.0040a220
add esp, 4
mov dword [esp + 0x14], eax
mov word [eax + 2], si
mov eax, dword [esp + 0x50]
and eax, 0xfffffebf
or eax, 0x40
mov dword [esp + 0x50], eax
mov ecx, ebx
lea edx, [esp + 0x10]
call fcn.00409f90
mov esi, eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
setg al
sub ecx, eax
mov dword [esp + 0x2c], ecx
mov word [esp + 0x74], 0x70
mov dword [esp + 0x30], 2
jmp 0x407cd5
mov dword [esp + 0x30], 0
jmp 0x407cd5
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0xc]
test esi, esi
je 0x409cb6
push 0x64
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esp + 8], esi
mov dword [esi], eax
mov dword [esp + 0x44], eax
test eax, eax
je 0x409e5a
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40705c
mov ecx, dword [esi]
cmp ecx, 0x20
jb 0x407076
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 + 8]
mov dword [esi + ecx*4 + 8], eax
mov dword [esp + 0x34], 0x64
mov esi, dword [esp + 0x44]
jmp 0x4074ff
mov eax, dword [esp + 0x28]
mov edi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
test edi, edi
je 0x409cb6
mov eax, dword [esp + 0x18]
cmp eax, 0x400
mov esi, 0x400
cmovl esi, eax
lea eax, [esi + esi]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, edi
mov dword [edi], eax
test eax, eax
je 0x409da4
mov edi, dword [esp + 0x24]
test edi, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], esi
je 0x4070ed
mov ecx, dword [edi]
cmp ecx, 0x20
jb 0x407107
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 dword [esp + 8], ebx
mov dword [edi + ecx*4 + 8], ebx
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
jmp 0x407683
test edx, edx
je 0x40811d
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov esi, eax
jmp 0x40812a
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x407161
mov dword [esp + 0x48], 0x100
mov dword [esp + 0x30], 0x100
mov edi, eax
jmp 0x40716b
mov dword [esp + 0x30], 0
xor edi, edi
mov edx, ebx
mov dword [esp + 0x14], edi
mov word [edi], dx
xor ebx, ebx
cmp dword [esp + 0x2c], 0
setg byte [esp + 0x18]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x4071a3
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
mov edx, dword [edx + eax*4]
inc dword [esp + 0x10]
jmp 0x4088ea
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x100c]
mov edx, 0xffff
test al, 1
jne 0x4088ea
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x407ae3
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x4088cb
movzx edx, ax
inc dword [esp + 0x10]
jmp 0x4088ea
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x409cb6
push 0xc8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esp + 8], esi
mov dword [esi], eax
test eax, eax
je 0x409e5a
mov edi, eax
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40722d
mov ecx, dword [esi]
cmp ecx, 0x20
jb 0x407247
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 + 8]
mov dword [esi + ecx*4 + 8], eax
mov dword [esp + 0x34], 0x64
mov esi, edi
jmp 0x407b24
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x407281
mov edx, 0x100
mov esi, eax
jmp 0x407285
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], esi
mov word [esi], di
cmp dword [esp + 0x2c], 0
je 0x409d61
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x4072b4
lea ecx, [eax - 1]
mov dword [ebx + 0x1008], ecx
movzx edi, word [ebx + eax*4]
inc dword [esp + 0x10]
jmp 0x407303
mov eax, dword [ebx + 0x100c]
test al, 1
jne 0x409d61
test byte [ebx + 0x1004], 1
mov ecx, dword [ebx]
jne 0x4072ef
mov edi, edx
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409e22
movzx eax, ax
inc dword [esp + 0x10]
mov edx, edi
mov edi, eax
jmp 0x407303
movzx edi, word [ecx]
test edi, edi
je 0x409e86
add ecx, 2
inc dword [esp + 0x10]
mov dword [ebx], ecx
cmp edi, 0xffff
je 0x409d61
mov esi, edx
mov dword [esp + 0x18], edi
movzx eax, di
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x61
jne 0x409d5f
xor ebx, ebx
cmp dword [esp + 0x2c], 0
setg al
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x407363
mov byte [esp + 0x30], al
test edi, edi
je 0x407367
push 0x200
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x407378
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x407381
mov edx, esi
jmp 0x40738d
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x407381
mov edx, 0x100
mov edi, eax
jmp 0x407388
xor edi, edi
mov edx, 1
movzx eax, byte [esp + 0x30]
mov bl, al
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
mov word [edi + 2], ax
cmp dword [esp + 0x2c], ebx
je 0x409d61
mov edi, edx
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x50]
je 0x4073c8
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
movzx esi, word [edx + eax*4]
jmp 0x4073f7
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x409cd1
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x40744d
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409e22
movzx esi, ax
inc dword [esp + 0x10]
cmp esi, 0xffff
je 0x409cd1
movzx eax, si
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x6e
jne 0x409cd1
mov ecx, dword [esp + 0x14]
cmp edi, 2
jne 0x407449
test ecx, ecx
je 0x40746e
push 0x200
push ecx
mov edi, ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x40747f
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x407488
mov edx, edi
jmp 0x40748f
movzx esi, word [ecx]
test esi, esi
je 0x409e88
add ecx, 2
inc dword [esp + 0x10]
mov dword [edx], ecx
cmp esi, 0xffff
jne 0x407407
jmp 0x409cd1
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x407488
mov edx, 0x100
mov ecx, eax
jmp 0x40748f
xor ecx, ecx
mov edx, 2
mov dword [esp + 0x14], ecx
mov word [ecx + 4], si
mov dword [esp + 0x48], edx
mov edi, 3
jmp 0x408646
test cl, cl
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
js 0x4074db
test ecx, 0x600
je 0x409191
test edx, edx
je 0x4092a3
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov esi, eax
jmp 0x4092b0
mov ecx, eax
jmp 0x40934d
mov dword [esp + 0x44], esi
mov edx, eax
jmp 0x4093ad
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0xc]
test esi, esi
je case.0x406982.38
mov ecx, edi
lea edx, [esp + 0x10]
call fcn.00409f90
mov dword [esp + 0x18], eax
cmp ax, 0xffff
je 0x409c10
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x50]
and eax, 0x480
mov dword [esp + 0x2c], eax
cmp byte [esp + 0x50], 0
mov eax, 0
cmovns eax, esi
cmp dword [esp + 0x2c], 0x400
jne 0x4075b7
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
add eax, esi
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x34]
lea edx, [ecx + edi]
cmp eax, edx
jb 0x4075b5
add edi, edi
sub esi, ecx
mov dword [esp + 0x34], edi
push edi
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4075ad
mov edi, dword [esp + 0x34]
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
add eax, esi
cmp edi, eax
jbe 0x409c42
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
mov edi, eax
add edi, esi
push edi
mov eax, dword [esp + 0xc]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x40757e
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 8]
mov dword [ecx], eax
add esi, eax
mov eax, esi
movzx ecx, word [esp + 0x18]
lea edx, [esp + 0x78]
push edx
push ecx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcrtomb
add esp, 0xc
cmp eax, 0xffffffff
je 0x409c10
add esi, eax
cmp ebx, 2
jl 0x40884b
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x4075fc
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
movzx eax, word [edx + eax*4]
jmp 0x40762f
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x100c]
test al, 1
jne 0x408843
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x407648
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x40882c
movzx eax, ax
inc dword [esp + 0x10]
dec ebx
mov dword [esp + 0x18], eax
cmp eax, 0xffff
jne 0x407535
jmp 0x40884b
movzx edi, word [ecx]
test edi, edi
je 0x408836
mov edx, edi
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, edi
jmp 0x407633
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
test eax, eax
je 0x409d69
mov dword [esp + 8], ebx
mov ecx, esi
lea edx, [esp + 0x10]
call fcn.00409f90
mov ebx, eax
cmp bx, 0xffff
je 0x409ce0
cmp byte [esp + 0x50], 0
mov esi, dword [esp + 0x2c]
js 0x4077dd
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
jmp 0x4076d9
lea ecx, [eax - 1]
mov esi, dword [esp + 0xc]
mov dword [esi + 0x1008], ecx
movzx ebx, word [esi + eax*4]
inc dword [esp + 0x10]
mov esi, dword [esp + 0x34]
dec edi
cmp ebx, 0xffff
je 0x40789c
test dword [esp + 0x50], 0x600
je 0x407756
mov eax, dword [esp + 8]
mov eax, dword [eax]
lea ecx, [eax + esi*2]
cmp edx, ecx
jne 0x407756
mov ecx, edi
dec edi
mov dword [esp + 0x18], ecx
cmp esi, ecx
cmovle edi, esi
add edi, esi
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
mov dword [esp + 0x34], esi
jne 0x407737
lea ecx, [esi + 1]
cmp edi, ecx
jbe 0x407737
lea eax, [ecx + ecx]
push eax
mov esi, dword [esp + 0xc]
push dword [esi]
mov edi, ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x407743
jmp 0x409c42
test eax, eax
mov esi, dword [esp + 8]
je 0x409c42
mov dword [esp + 8], esi
mov dword [esi], eax
mov ecx, dword [esp + 0x34]
lea edx, [eax + ecx*2]
mov esi, edi
mov edi, dword [esp + 0x18]
mov word [edx], bx
add edx, 2
cmp edi, 2
jl 0x40789c
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
jne 0x4076b3
mov dword [esp + 0x3c], edx
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x100c]
mov cx, 0xffff
mov dword [esp + 0x18], ecx
test al, 1
jne 0x409135
test byte [esi + 0x1004], 1
mov ecx, dword [esi]
jne 0x4077bc
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x40911f
movzx ebx, ax
inc dword [esp + 0x10]
jmp 0x4077d4
movzx ebx, word [ecx]
test ebx, ebx
je 0x409128
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esp + 0x3c]
jmp 0x4076c8
mov ecx, dword [esp + 0x20]
cmp edi, 2
jl 0x407893
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x40780b
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
movzx eax, word [edx + eax*4]
inc dword [esp + 0x10]
jmp 0x407865
mov edi, esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x100c]
mov ax, 0xffff
mov dword [esp + 0x18], eax
test cl, 1
mov eax, dword [esp + 0x50]
jne 0x4078a5
test byte [esi + 0x1004], 1
mov edx, dword [esi]
jne 0x40784f
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x40813b
movzx eax, ax
inc dword [esp + 0x10]
jmp 0x407863
movzx eax, word [edx]
test eax, eax
je 0x408147
add edx, 2
inc dword [esp + 0x10]
mov dword [esi], edx
mov esi, edi
cmp eax, 0xffff
je 0x40787a
lea ecx, [esi - 1]
cmp esi, 2
mov esi, ecx
ja 0x4077ea
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
jmp 0x409145
mov dword [esp + 0x18], ebx
jmp 0x40934d
mov dword [esp + 0x18], ebx
jmp 0x40913d
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
jmp 0x409145
mov eax, dword [esp + 0x28]
mov edi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0xc]
test edi, edi
je 0x409cb6
push 0x64
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x44], eax
test eax, eax
je 0x409d83
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4078f6
mov ecx, dword [esi]
cmp ecx, 0x20
jb 0x407910
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 dword [esi + ecx*4 + 8], edi
mov dword [esp + 0x34], 0x64
mov esi, dword [esp + 0x44]
mov ecx, ebx
lea edx, [esp + 0x10]
call fcn.00409f90
cmp ax, 0xffff
je 0x409ce4
mov edx, eax
mov ecx, dword [esp + 0x50]
test cl, cl
sets al
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
test ecx, 0x600
sete cl
or cl, al
mov byte [esp + 0x44], cl
mov eax, edx
mov dword [esp + 8], edi
mov dword [esp + 0x18], eax
movzx ebx, ax
push 8
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
jne 0x407ac5
cmp byte [esp + 0x50], 0
mov eax, esi
mov ecx, 0
cmovs eax, ecx
cmp byte [esp + 0x44], 0
jne 0x407a0d
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
add eax, esi
mov ecx, dword [edi]
mov edi, dword [esp + 0x34]
lea edx, [ecx + edi]
cmp eax, edx
jae 0x4079ba
mov eax, esi
mov edi, dword [esp + 8]
jmp 0x407a0d
add edi, edi
sub esi, ecx
mov dword [esp + 0x34], edi
push edi
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x407a03
mov edi, dword [esp + 0x34]
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
add eax, esi
cmp edi, eax
jbe 0x409c56
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
mov edi, eax
add edi, esi
push edi
mov eax, dword [esp + 0xc]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x4079d4
mov dword [esp + 0x34], edi
mov edi, dword [esp + 8]
mov dword [edi], eax
add esi, eax
mov eax, esi
lea ecx, [esp + 0x78]
push ecx
push ebx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcrtomb
add esp, 0xc
cmp eax, 0xffffffff
je 0x409c75
add esi, eax
mov ebx, esi
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x407a45
cmp eax, 1
mov esi, dword [esp + 0xc]
je 0x407b00
dec eax
mov dword [esp + 0x2c], eax
jmp 0x407a49
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x407a62
lea ecx, [eax - 1]
mov dword [esi + 0x1008], ecx
movzx eax, word [esi + eax*4]
jmp 0x407a91
mov eax, dword [esi + 0x100c]
test al, 1
jne 0x40906d
test byte [esi + 0x1004], 1
mov ecx, dword [esi]
jne 0x407aa7
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409066
movzx eax, ax
inc dword [esp + 0x10]
cmp eax, 0xffff
mov esi, ebx
jne 0x40796e
jmp 0x409088
movzx edi, word [ecx]
test edi, edi
je 0x409075
mov edx, edi
add ecx, 2
inc dword [esp + 0x10]
mov dword [esi], ecx
mov eax, edi
mov edi, dword [esp + 8]
jmp 0x407a95
mov ecx, ebx
mov edx, dword [esp + 0xc]
push 1
lea eax, [esp + 0x14]
push eax
call fcn.0040a0f0
add esp, 8
mov eax, dword [esp + 0x18]
jmp 0x409088
movzx edx, word [ecx]
test edx, edx
je 0x4088d8
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x4088ea
mov esi, ebx
mov eax, dword [esp + 0x18]
jmp 0x409088
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0xc]
test esi, esi
je case.0x406982.38
mov ecx, ebx
lea edx, [esp + 0x10]
call fcn.00409f90
cmp ax, 0xffff
je 0x409c10
mov ecx, eax
jmp 0x407b5d
lea ecx, [eax - 1]
mov dword [esi + 0x1008], ecx
movzx eax, word [esi + eax*4]
inc dword [esp + 0x10]
cmp eax, 0xffff
mov esi, dword [esp + 0x3c]
je 0x4085f2
mov edi, eax
movzx ebx, ax
push 8
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
jne 0x407c90
mov ebx, dword [esp + 0x50]
test bl, bl
js 0x407ba6
lea eax, [esi + 2]
mov word [esi], di
test ebx, 0x600
mov esi, dword [esp + 0xc]
je 0x407bb0
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x34]
lea edx, [ecx + ebx*2]
cmp eax, edx
je 0x407bb6
mov dword [esp + 0x3c], eax
jmp 0x407c17
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0xc]
jmp 0x407c1b
mov dword [esp + 0x3c], eax
jmp 0x407c1b
lea esi, [ebx + ebx]
lea eax, [ebx*4]
push eax
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x407bf2
lea ecx, [ebx + 1]
cmp esi, ecx
jbe 0x407bf2
lea eax, [ecx + ecx]
push eax
mov ebx, dword [esp + 0xc]
push dword [ebx]
mov esi, ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x407bfe
jmp 0x409d13
test eax, eax
mov ebx, dword [esp + 8]
je 0x409d13
mov dword [esp + 8], ebx
mov dword [ebx], eax
mov ecx, dword [esp + 0x34]
lea eax, [eax + ecx*2]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x407c31
cmp eax, 1
je 0x407cb0
dec eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
jne 0x407b3d
mov eax, dword [esi + 0x100c]
test al, 1
jne 0x4085d7
test byte [esi + 0x1004], 1
mov ecx, dword [esi]
jne 0x407c73
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x4085d0
movzx eax, ax
jmp 0x407b4a
movzx edi, word [ecx]
test edi, edi
je 0x4085e1
mov edx, edi
add ecx, 2
inc dword [esp + 0x10]
mov dword [esi], ecx
mov eax, edi
jmp 0x407b4e
mov ecx, ebx
mov edx, dword [esp + 0xc]
push 1
lea eax, [esp + 0x14]
push eax
call fcn.0040a0f0
add esp, 8
mov ebx, dword [esp + 0x50]
mov eax, edi
jmp 0x4085f2
mov esi, dword [esp + 0x3c]
mov eax, edi
jmp 0x4085f2
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0
jmp 0x407cd5
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x6c], 0
movzx ebx, si
push 4
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
je 0x407d5c
mov edi, esi
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
cmp esi, dword [esp + 0x30]
jne 0x407de5
add esi, esi
cmp esi, 0x101
mov eax, 0x100
cmovb esi, eax
lea eax, [esi + esi]
test ecx, ecx
mov ebx, dword [esp + 0xc]
je 0x407f4d
push eax
push ecx
mov dword [esp + 0x70], ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x407f5a
push dword [esp + 0x68]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x407f5e
cmp byte [esp + 0x6c], 0
mov dword [esp + 0x18], esi
jne 0x407dee
mov eax, dword [esp + 0x50]
and eax, 0x40
je 0x407dee
push 0x80
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
je 0x407e66
mov ecx, dword [esp + 0x14]
cmp edx, edi
jne 0x407fa2
lea esi, [edx + edx]
cmp esi, 0x101
mov eax, 0x100
cmovb esi, eax
lea eax, [esi + esi]
test ecx, ecx
mov ebx, dword [esp + 0xc]
je 0x407fb2
push eax
push ecx
mov dword [esp + 0x70], ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x407fbf
push dword [esp + 0x68]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x407fc3
mov ebx, dword [esp + 0xc]
jmp 0x407f64
cmp byte [esp + 0x6c], 0
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
je 0x407e66
mov esi, dword [esp + 0x14]
movzx eax, word [esp + 0x74]
cmp word [esi + edi*2 - 2], ax
jne 0x407ed8
cmp word [esp + 0x18], 0x2d
je 0x407e22
cmp ebx, 0x2b
jne 0x407ed8
cmp edx, edi
jne 0x407fdb
lea ebx, [edx + edx]
cmp ebx, 0x101
mov eax, 0x100
cmovb ebx, eax
lea eax, [ebx + ebx]
push eax
push esi
mov edi, edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ecx, eax
test eax, eax
jne 0x407fdf
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor ecx, ecx
mov ebx, edi
jmp 0x407fdf
test edi, edi
je 0x407ed8
cmp byte [esp + 0x6c], 0
jne 0x407ed8
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
mov edx, dword [esp + 0x3c]
add esp, 4
cmp ax, word [esp + 0x74]
jne 0x407ed8
mov ecx, dword [esp + 0x14]
cmp edx, edi
jne 0x407ff4
lea esi, [edx + edx]
cmp esi, 0x101
mov eax, 0x100
cmovb esi, eax
lea eax, [esi + esi]
test ecx, ecx
mov ebx, dword [esp + 0xc]
je 0x4080df
push eax
push ecx
mov dword [esp + 0x70], ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4080ec
push dword [esp + 0x68]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x4080f0
cmp byte [esp + 0x84], 0
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x18]
jne 0x4088a9
cmp dword [esp + 0x98], ebx
jne 0x407f77
mov ecx, dword [esp + 0x14]
cmp edx, edi
jne 0x407faa
lea esi, [edx + edx]
cmp esi, 0x101
mov eax, 0x100
cmovb esi, eax
lea eax, [esi + esi]
test ecx, ecx
mov ebx, dword [esp + 0xc]
je 0x407fff
push eax
push ecx
mov dword [esp + 0x70], ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x40800c
push dword [esp + 0x68]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x408010
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x407f5e
mov ecx, eax
jmp 0x407f64
xor ecx, ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov eax, edi
mov edx, esi
mov esi, edi
mov edi, dword [esp + 0x30]
jmp 0x408035
test dword [esp + 0x50], 0x100
je 0x4088a9
cmp si, ax
jne 0x4088a9
mov dword [esp + 0x84], 0
mov ebx, dword [esp + 0xc]
jmp 0x40803a
mov esi, edx
mov ebx, dword [esp + 0xc]
jmp 0x407fc9
mov esi, edx
mov ebx, dword [esp + 0xc]
jmp 0x408016
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x407fc3
mov ecx, eax
jmp 0x407fc9
xor ecx, ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x6c], 0
jmp 0x408027
mov ebx, edx
mov ecx, esi
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x18]
mov eax, esi
mov edx, ebx
mov ebx, dword [esp + 0xc]
jmp 0x407f6e
mov esi, edx
mov ebx, dword [esp + 0xc]
jmp 0x4080f6
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x408010
mov ecx, eax
jmp 0x408016
xor ecx, ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x14], ecx
mov al, 1
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x18]
mov eax, ecx
mov edx, esi
mov esi, ecx
mov ecx, dword [esp + 0x68]
mov word [ecx + edi*2], ax
inc edi
cmp dword [esp + 0x2c], 0
je 0x408624
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x408062
lea ecx, [eax - 1]
mov dword [ebx + 0x1008], ecx
movzx esi, word [ebx + eax*4]
inc dword [esp + 0x10]
jmp 0x4080b5
mov eax, dword [ebx + 0x100c]
test al, 1
jne 0x408620
test byte [ebx + 0x1004], 1
mov ecx, dword [ebx]
jne 0x4080a1
mov esi, ebx
mov ebx, edi
mov edi, edx
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409038
movzx esi, ax
inc dword [esp + 0x10]
mov edx, edi
mov edi, ebx
jmp 0x4080b5
movzx esi, word [ecx]
test esi, esi
je 0x409050
add ecx, 2
inc dword [esp + 0x10]
mov dword [ebx], ecx
cmp esi, 0xffff
je 0x408624
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edx
xor eax, eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
setg al
sub ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x407cf0
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4080f0
mov ecx, eax
jmp 0x4080f6
xor ecx, ecx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov al, 1
mov dword [esp + 0x84], eax
movzx eax, word [esp + 0x74]
mov edx, esi
mov esi, ecx
mov cl, 1
mov dword [esp + 0x6c], ecx
mov ecx, esi
mov esi, dword [esp + 0x18]
jmp 0x408035
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0xc]
test esi, esi
jne 0x407929
jmp 0x409ed4
or byte [esi + 0x100c], 1
jmp 0x40787e
or ecx, 1
mov dword [esi + 0x100c], ecx
jmp 0x40787e
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x40816f
mov edx, 0x100
mov esi, eax
jmp 0x408173
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], esi
mov word [esi], di
cmp dword [esp + 0x2c], 0
je 0x409d97
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x4081a2
lea ecx, [eax - 1]
mov dword [ebx + 0x1008], ecx
movzx edi, word [ebx + eax*4]
inc dword [esp + 0x10]
jmp 0x4081f3
mov eax, dword [ebx + 0x100c]
test al, 1
jne 0x409d97
test byte [ebx + 0x1004], 1
mov ecx, dword [ebx]
jne 0x4081df
mov dword [esp + 0x38], edx
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409ea2
movzx edi, ax
inc dword [esp + 0x10]
mov edx, dword [esp + 0x38]
jmp 0x4081f3
movzx edi, word [ecx]
test edi, edi
je 0x409eb7
add ecx, 2
inc dword [esp + 0x10]
mov dword [ebx], ecx
mov esi, edx
cmp edi, 0xffff
je 0x409de1
mov dword [esp + 0x18], edi
movzx eax, di
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x6e
jne 0x409df0
xor ebx, ebx
cmp dword [esp + 0x2c], 0
setg al
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x408279
mov byte [esp + 0x30], al
test edi, edi
je 0x408253
push 0x200
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x408264
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x40826d
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x40826d
mov esi, 0x100
mov edi, eax
jmp 0x408274
xor edi, edi
mov esi, 1
movzx eax, byte [esp + 0x30]
mov dword [esp + 0x38], esi
mov bl, al
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
mov word [edi + 2], ax
mov edi, dword [esp + 0x2c]
sub edi, ebx
je 0x409d02
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
mov edx, dword [esp + 0xc]
je 0x4082b4
lea ecx, [eax - 1]
mov dword [edx + 0x1008], ecx
movzx esi, word [edx + eax*4]
jmp 0x4082e3
mov eax, dword [edx + 0x100c]
test al, 1
jne 0x409d02
test byte [edx + 0x1004], 1
mov ecx, dword [edx]
jne 0x408349
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409ea2
movzx esi, ax
inc dword [esp + 0x10]
cmp esi, 0xffff
je 0x409d02
movzx eax, si
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x66
jne 0x409d02
xor ebx, ebx
test edi, edi
setg al
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
cmp edx, 2
jne 0x408390
mov byte [esp + 0x18], al
test ecx, ecx
je 0x40836a
push 0x200
push ecx
mov dword [esp + 0x34], ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x40837b
push dword [esp + 0x2c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x408384
movzx esi, word [ecx]
test esi, esi
je 0x409ebb
add ecx, 2
inc dword [esp + 0x10]
mov dword [edx], ecx
cmp esi, 0xffff
jne 0x4082f3
jmp 0x409d02
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x408384
mov edx, 0x100
mov ecx, eax
jmp 0x40838b
xor ecx, ecx
mov edx, 2
movzx eax, byte [esp + 0x18]
mov bl, al
mov dword [esp + 0x14], ecx
mov word [ecx + 4], si
mov dword [esp + 0x48], edx
sub edi, ebx
je 0x40859b
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.00409f90
mov esi, eax
movzx ebx, si
cmp ebx, 0xffff
je 0x408579
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x69
jne 0x408579
xor ebx, ebx
test edi, edi
setg bl
mov ecx, 3
lea edx, [esp + 0x48]
push dword [esp + 0x14]
call fcn.0040a220
add esp, 4
mov dword [esp + 0x14], eax
mov word [eax + 6], si
mov esi, edi
sub esi, ebx
je case.0x406982.38
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.00409f90
mov ebx, eax
cmp bx, 0xffff
je case.0x406982.38
movzx eax, bx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x6e
jne case.0x406982.38
xor eax, eax
test esi, esi
setg al
mov edi, eax
mov ecx, 4
lea edx, [esp + 0x48]
push dword [esp + 0x14]
call fcn.0040a220
add esp, 4
mov dword [esp + 0x14], eax
mov word [eax + 8], bx
sub esi, edi
je case.0x406982.38
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.00409f90
mov ebx, eax
cmp bx, 0xffff
je case.0x406982.38
movzx eax, bx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x69
jne case.0x406982.38
xor eax, eax
test esi, esi
setg al
mov edi, eax
mov ecx, 5
lea edx, [esp + 0x48]
push dword [esp + 0x14]
call fcn.0040a220
add esp, 4
mov dword [esp + 0x14], eax
mov word [eax + 0xa], bx
sub esi, edi
je case.0x406982.38
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.00409f90
mov ebx, eax
cmp bx, 0xffff
je case.0x406982.38
movzx eax, bx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x74
jne case.0x406982.38
xor eax, eax
test esi, esi
setg al
mov edi, eax
mov ecx, 6
lea edx, [esp + 0x48]
push dword [esp + 0x14]
call fcn.0040a220
add esp, 4
mov dword [esp + 0x14], eax
mov word [eax + 0xc], bx
cmp esi, edi
je case.0x406982.38
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
call fcn.00409f90
mov esi, eax
cmp si, 0xffff
je case.0x406982.38
movzx eax, si
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x79
jne case.0x406982.38
mov ecx, 7
lea edx, [esp + 0x48]
push dword [esp + 0x14]
call fcn.0040a220
add esp, 4
mov ecx, eax
mov dword [esp + 0x14], eax
mov word [eax + 0xe], si
mov edi, 8
mov edx, dword [esp + 0x48]
jmp 0x4085a0
mov edi, 3
cmp si, 0xffff
je 0x4085c2
mov ecx, ebx
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
call fcn.0040a0f0
add esp, 8
jmp 0x4085c6
mov edi, 3
mov ebx, dword [esp + 0x50]
jmp 0x408646
mov esi, dword [esp + 0x10]
test edx, edx
je 0x4091ae
mov ecx, dword [ebp + 8]
call fcn.0040a140
jmp 0x4091bb
mov si, 0xffff
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
jmp 0x408642
or byte [esi + 0x100c], 1
mov esi, dword [esp + 0x3c]
mov ax, 0xffff
jmp 0x4085f2
or eax, 1
mov dword [esi + 0x100c], eax
mov ax, 0xffff
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
test bl, bl
js 0x408617
mov word [esi], 0
add esi, 2
mov eax, dword [esp + 0x34]
add eax, eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], esi
mov edx, esi
jmp 0x409154
mov dword [esp + 0x3c], esi
jmp 0x40916f
mov si, 0xffff
mov dword [esp + 0x48], edx
test edi, edi
mov ebx, dword [esp + 0x50]
je case.0x406982.38
test bl, 0x40
je 0x408642
cmp edi, 2
je case.0x406982.38
mov ecx, dword [esp + 0x14]
cmp edx, edi
jne 0x4086a8
mov dword [esp + 0x50], ebx
mov ebx, edi
add edx, edx
cmp edx, 0x101
mov eax, 0x100
cmovb edx, eax
mov edi, edx
lea eax, [edx + edx]
test ecx, ecx
je 0x40868b
push eax
push ecx
mov dword [esp + 0x34], ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x40869c
push dword [esp + 0x2c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor ecx, ecx
jmp 0x4086a2
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x408810
mov dword [esp + 0x48], edi
mov ecx, eax
mov edi, ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov word [ecx + edi*2], 0
test bl, 8
jne 0x408734
test bl, 4
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x70]
jne 0x408799
push eax
push ecx
call fcn.0040f350
add esp, 8
fstp dword [esp + 0x9c]
test bl, bl
js 0x408874
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
je 0x408878
movss xmm0, dword [esp + 0x9c]
cmp dword [esp + 0x8c], 0x2d
jne 0x408711
xorps xmm0, xmmword [0x4aa000]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x408863
mov ecx, dword [ebp + 8]
movaps xmmword [esp + 0x50], xmm0
call fcn.0040a140
movaps xmm0, xmmword [esp + 0x50]
jmp 0x408870
lea eax, [esp + 0x70]
push eax
push ecx
call fcn.0040f440
add esp, 8
test bl, bl
mov esi, dword [esp + 0x1c]
js 0x408808
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
je 0x40880c
cmp dword [esp + 0x8c], 0x2d
fld st(0)
fchs
fxch st(1)
fcmove st(0), st(1)
fstp st(1)
mov edx, dword [esp + 0x40]
test edx, edx
je 0x408817
mov ecx, dword [ebp + 8]
fstp xword [esp + 0x50]
call fcn.0040a140
mov ecx, dword [esp + 0x20]
fld xword [esp + 0x50]
fstp xword [eax]
jmp 0x408878
push eax
push ecx
call fcn.0040f560
add esp, 8
fstp qword [esp + 0xa0]
test bl, bl
js 0x408874
mov eax, dword [esp + 0x70]
cmp eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
je 0x408878
mov edi, ecx
movsd xmm0, qword [esp + 0xa0]
cmp dword [esp + 0x8c], 0x2d
jne 0x4087e0
xorps xmm0, xmmword [0x4a9ff0]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x408894
mov ecx, dword [ebp + 8]
movaps xmmword [esp + 0x50], xmm0
call fcn.0040a140
mov ecx, dword [esp + 0x20]
movaps xmm0, xmmword [esp + 0x50]
movsd qword [eax], xmm0
jmp 0x408878
fstp st(0)
jmp 0x408874
fstp st(0)
jmp 0x408878
xor ecx, ecx
jmp 0x4086a2
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
fstp xword [eax]
mov ecx, edi
jmp 0x408878
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
mov ax, 0xffff
mov dword [esp + 0x18], eax
cmp byte [esp + 0x50], 0
mov dword [esp + 0x44], esi
js 0x40916f
mov ecx, dword [esp + 8]
jmp 0x409117
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
movss dword [eax], xmm0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x70]
je 0x409cfa
xor eax, eax
test bl, bl
setns al
add esi, eax
jmp 0x409349
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
movsd qword [eax], xmm0
mov ecx, edi
jmp 0x408878
mov dword [esp + 0x48], edx
mov ecx, ebx
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
call fcn.0040a0f0
mov edx, dword [esp + 0x40]
add esp, 8
jmp 0x408628
mov eax, dword [esp + 0xc]
or byte [eax + 0x100c], 1
jmp 0x4088e5
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
mov edx, 0xffff
movzx eax, byte [esp + 0x18]
mov bl, al
mov eax, dword [esp + 0x2c]
sub eax, ebx
mov dword [esp + 0x18], 1
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x40894e
cmp dx, 0x30
mov eax, dword [esp + 0x18]
jne 0x408957
cmp dword [esp + 0x2c], 0
setg cl
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x30], eax
mov byte [esp + 0x38], cl
jne 0x40898b
test ebx, ebx
je 0x408960
push 0x200
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x408975
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor ebx, ebx
jmp 0x408987
mov esi, dword [esp + 0x2c]
jmp 0x408aaa
mov esi, dword [esp + 0x2c]
jmp 0x408aae
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4089fd
mov dword [esp + 0x48], 0x100
mov dword [esp + 0x30], 0x100
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov word [ebx + eax*2], 0x30
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x4089b5
lea ecx, [eax - 1]
mov ebx, dword [esp + 0xc]
mov dword [ebx + 0x1008], ecx
mov edx, dword [ebx + eax*4]
inc dword [esp + 0x10]
jmp 0x408a31
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x100c]
mov edx, 0xffff
test al, 1
jne 0x408a31
test byte [ebx + 0x1004], 1
mov ecx, dword [ebx]
jne 0x4089eb
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x408a1a
movzx edx, ax
inc dword [esp + 0x10]
jmp 0x408a31
movzx edx, word [ecx]
test edx, edx
je 0x408a23
add ecx, 2
inc dword [esp + 0x10]
mov dword [ebx], ecx
jmp 0x408a31
xor ebx, ebx
jmp 0x408987
mov esi, dword [esp + 0x10]
test edx, edx
je 0x40935e
mov ecx, dword [ebp + 8]
call fcn.0040a140
jmp 0x40936b
or byte [ebx + 0x100c], 1
jmp 0x408a2c
or eax, 1
mov dword [ebx + 0x100c], eax
mov edx, 0xffff
xor ecx, ecx
movzx eax, byte [esp + 0x38]
mov cl, al
mov eax, dword [esp + 0x2c]
sub eax, ecx
inc dword [esp + 0x18]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x408a8b
mov edi, edx
movzx eax, dx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x78
jne 0x408a96
cmp byte [esp + 0x6c], 0
je 0x408a9c
xor eax, eax
mov esi, dword [esp + 0x2c]
test esi, esi
setg al
sub esi, eax
mov ecx, ebx
lea edx, [esp + 0x10]
call fcn.00409f90
mov edx, eax
mov dword [esp + 0x38], 0x10
jmp 0x408aaa
mov dword [esp + 0x38], esi
mov esi, edx
jmp 0x408c84
mov dword [esp + 0x38], esi
jmp 0x408aa4
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x2c]
mov edx, edi
mov eax, dword [esp + 0x18]
cmp dx, 0xffff
mov dword [esp + 0x18], eax
je 0x408c82
test esi, esi
je 0x408c82
mov ecx, dword [esp + 0x38]
cmp ecx, 0xa
sete byte [esp + 0x2c]
mov eax, dword [esp + 0x50]
shr eax, 8
and eax, 1
and al, byte [esp + 0x2c]
mov dword [esp + 0x6c], eax
lea eax, [ecx + 0x30]
mov dword [esp + 0x68], eax
jmp 0x408b1c
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
mov edx, dword [edx + eax*4]
inc dword [esp + 0x10]
cmp dx, 0xffff
je 0x408c7a
movzx eax, byte [esp + 0x2c]
mov bl, al
sub esi, ebx
mov ebx, dword [esp + 0xc]
je 0x408c82
cmp dword [esp + 0x38], 0x10
jne 0x408b3f
movzx eax, dx
push 0x80
push eax
mov edi, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
jne 0x408b8e
jmp 0x408f4d
movzx ebx, dx
push 4
push ebx
mov edi, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
je 0x408b73
cmp bx, word [esp + 0x80]
sete al
cmp dword [esp + 0x68], ebx
mov ebx, dword [esp + 0xc]
jg 0x408b8e
and al, byte [esp + 0x6c]
jne 0x408b8e
jmp 0x408f5c
cmp di, word [esp + 0x80]
sete al
and al, byte [esp + 0x6c]
cmp al, 1
mov ebx, dword [esp + 0xc]
jne 0x408f5c
cmp di, word [esp + 0x80]
je 0x408c07
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x30], eax
jne 0x408bfa
lea ecx, [eax + eax]
cmp ecx, 0x101
mov eax, 0x100
cmovb ecx, eax
mov dword [esp + 0x30], ecx
lea eax, [ecx + ecx]
test ebx, ebx
je 0x408bdb
push eax
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x408be8
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x408bf0
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x408bf0
mov ebx, eax
mov eax, dword [esp + 0x18]
jmp 0x408bfa
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebx
mov word [ebx + eax*2], di
inc eax
mov dword [esp + 0x18], eax
xor ebx, ebx
test esi, esi
setg dl
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
mov byte [esp + 0x2c], dl
jne 0x408aeb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x100c]
test al, 1
jne 0x408f84
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x408c58
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x408fea
movzx edx, ax
jmp 0x408afb
movzx edx, word [ecx]
test edx, edx
je 0x408ff4
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
cmp dx, 0xffff
jne 0x408b09
mov esi, edx
mov ebx, dword [esp + 0xc]
jmp 0x408c84
mov esi, edx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov edi, dword [esp + 0x18]
test edi, edi
je 0x408ce9
cmp edi, 1
jne 0x408cb6
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
cmp eax, 0x2b
je 0x409d51
cmp eax, 0x2d
mov edi, dword [esp + 0x18]
je 0x409d51
cmp si, 0xffff
je 0x408def
movzx eax, si
test byte [ebx + 0x1004], 1
jne 0x408dd2
push dword [ebx]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetwc
add esp, 8
mov eax, 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x408de9
test byte [esp + 0x50], 0x20
je 0x409d51
movzx eax, si
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp ax, 0x28
jne 0x409d51
mov bx, 0x6e
mov esi, 0x4aa220
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x408d33
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
mov edi, dword [edx + eax*4]
inc dword [esp + 0x10]
jmp 0x408d86
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x100c]
test al, 1
jne 0x409ccd
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x408d6c
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409d36
movzx edi, ax
inc dword [esp + 0x10]
jmp 0x408d92
movzx edx, word [ecx]
test edx, edx
je 0x409d40
mov edi, edx
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
cmp edi, 0xffff
je 0x409c92
mov dword [esp + 0x18], edi
movzx eax, di
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_towlower
add esp, 4
cmp bx, ax
jne 0x409c85
movzx ebx, word [esi]
add esi, 2
test bx, bx
jne 0x408d13
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x30], 0
je 0x408fba
mov ebx, dword [esp + 0x50]
jmp 0x4091f5
dec dword [esp + 0x10]
mov ecx, dword [ebx + 0x1008]
mov dword [ebx + ecx*4 + 4], eax
mov eax, 1
mov ecx, dword [esp + 0x4c]
add dword [ecx], eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
cmp ecx, edi
jne 0x408e54
add ecx, ecx
cmp ecx, 0x101
mov eax, 0x100
cmovb ecx, eax
mov dword [esp + 0x30], ecx
lea eax, [ecx + ecx]
test esi, esi
je 0x408e39
push eax
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x408e4a
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor esi, esi
jmp 0x408e54
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x408f88
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
mov esi, eax
mov dword [esp + 0x14], esi
mov word [esi + edi*2], 0
test bl, 8
jne 0x408e79
test bl, 0x10
jne 0x408e8f
push dword [esp + 0x38]
lea eax, [esp + 0x74]
push eax
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstoul
jmp 0x408e9e
test bl, 0x10
jne 0x408ea3
push dword [esp + 0x38]
lea eax, [esp + 0x74]
push eax
push esi
call fcn.00401e90
jmp 0x408eb2
push dword [esp + 0x38]
lea eax, [esp + 0x74]
push eax
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstol
add esp, 0xc
jmp 0x408ebc
push dword [esp + 0x38]
lea eax, [esp + 0x74]
push eax
push esi
call fcn.00401be0
add esp, 0xc
mov dword [esp + 0x88], edx
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x20]
je case.0x406982.38
test bl, bl
mov edx, dword [esp + 0x40]
js 0x408f14
test bl, 0x10
test bl, 8
jne 0x408f1b
test bl, 4
mov esi, dword [esp + 0x1c]
jne 0x408f33
test bl, 2
jne 0x408f8f
mov esi, eax
test bl, 1
jne 0x40900a
test edx, edx
je 0x40931e
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
call fcn.0040a140
jmp 0x40932b
mov ecx, edi
jmp 0x40934d
mov ebx, eax
test edx, edx
mov esi, dword [esp + 0x1c]
je 0x408f63
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov edi, dword [esp + 0x20]
jmp 0x408f70
mov ebx, eax
test edx, edx
je 0x408fa9
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov ecx, dword [esp + 0x20]
mov dword [eax], ebx
inc esi
jmp 0x409349
mov dword [esp + 0x38], 0x10
mov esi, edi
jmp 0x408c84
mov esi, edi
jmp 0x408c84
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x88]
mov dword [eax + 4], ecx
mov ecx, edi
inc esi
jmp 0x409349
mov ebx, ecx
jmp 0x409001
xor esi, esi
jmp 0x408e54
mov edi, eax
test edx, edx
je 0x409023
mov ecx, dword [ebp + 8]
call fcn.0040a140
mov word [eax], di
jmp 0x409344
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov dword [eax], ebx
jmp 0x408f7c
test esi, esi
mov ebx, dword [esp + 0x50]
je 0x4091c6
push 0x200
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4091d7
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x4091eb
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ebx, dword [esp + 0xc]
mov dword [ebx + 0x100c], eax
mov si, 0xffff
jmp 0x408c84
test edx, edx
je 0x40932f
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
call fcn.0040a140
jmp 0x40933c
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov word [eax], di
jmp 0x409344
mov edx, edi
mov dword [esp + 0x48], edi
or byte [esi + 0x100c], 1
mov si, 0xffff
mov edi, ebx
jmp 0x408628
mov dword [esp + 0x48], edx
or eax, 1
mov dword [ebx + 0x100c], eax
mov si, 0xffff
jmp 0x408628
or byte [esi + 0x100c], 1
mov esi, ebx
mov ax, 0xffff
jmp 0x409088
or eax, 1
mov dword [esi + 0x100c], eax
mov ax, 0xffff
mov esi, ebx
mov edi, dword [esp + 8]
mov dword [esp + 0x18], eax
cmp byte [esp + 0x50], 0
jns 0x40909c
mov dword [esp + 0x44], esi
jmp 0x40916f
lea eax, [esp + 0x78]
push eax
push 0
lea eax, [esp + 0x9b]
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcrtomb
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x4090f5
mov eax, dword [esp + 0x50]
and eax, 0x600
je 0x4090f5
lea ecx, [esi + ebx]
mov eax, dword [edi]
mov edx, dword [esp + 0x34]
add edx, eax
cmp ecx, edx
jb 0x4090f9
sub esi, eax
lea edx, [ebx + esi]
inc edx
mov dword [esp + 0x34], edx
push edx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x409eea
mov dword [edi], eax
add esi, eax
jmp 0x4090f9
test ebx, ebx
je 0x40910d
push ebx
lea eax, [esp + 0x97]
push eax
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add esi, ebx
mov byte [esi], 0
inc esi
mov ecx, edi
mov dword [esp + 0x44], esi
mov edx, esi
push dword [esp + 0x34]
jmp 0x409155
or byte [esi + 0x100c], 1
jmp 0x409135
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 8]
test al, al
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], esi
js 0x40916b
lea eax, [esi + esi]
push eax
call fcn.0040a1f0
add esp, 4
inc dword [esp + 0x1c]
mov dword [esp + 8], 0
jmp 0x40916f
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
jmp 0x40934d
test edx, edx
je 0x409372
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
call fcn.0040a140
jmp 0x40937f
test edx, edx
je 0x40938d
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
call fcn.0040a140
mov dword [esp + 0x3c], eax
jmp 0x40939e
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov dword [eax], esi
mov dword [eax + 4], 0
jmp 0x40916f
push 0x200
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4091eb
mov dword [esp + 0x48], 0x100
mov dword [esp + 0x30], 0x100
mov esi, eax
jmp 0x4091f5
mov dword [esp + 0x30], 0
xor esi, esi
mov dword [esp + 0x14], esi
mov word [esi], 0x30
mov edi, 1
jmp 0x408dfb
movzx esi, word [esp + 0x10]
cmp dword [esp + 0x40], 0
je 0x4099e2
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
call fcn.0040a140
jmp 0x4099ef
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
test esi, esi
je 0x409cb6
push 0x64
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esp + 8], esi
mov dword [esi], eax
test eax, eax
je 0x409e5a
mov ebx, eax
mov esi, dword [esp + 0x24]
test esi, esi
je 0x409267
mov ecx, dword [esi]
cmp ecx, 0x20
jb 0x409281
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 + 8]
mov dword [esi + ecx*4 + 8], eax
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x44], ebx
jmp 0x4093a9
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
add eax, 4
mov dword [esp + 0x28], eax
test esi, esi
je 0x409cb6
push 0xc8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esp + 8], esi
mov dword [esi], eax
mov dword [esp + 0x3c], eax
test eax, eax
je 0x409e5a
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4092e6
mov ecx, dword [esi]
cmp ecx, 0x20
jb 0x409300
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 + 8]
mov dword [esi + ecx*4 + 8], eax
mov dword [esp + 0x34], 0x64
jmp 0x4093a9
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov dword [eax], esi
jmp 0x409340
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov ecx, esi
mov byte [eax], cl
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc esi
mov dword [esp + 0x1c], esi
movzx esi, word [ecx]
test si, si
jne 0x4063c7
jmp case.0x406982.38
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov dword [eax], esi
jmp 0x40916f
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
test eax, eax
je case.0x406982.38
mov dword [esp + 0x44], eax
jmp 0x4093a9
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
add eax, 4
mov dword [esp + 0x28], eax
cmp dword [esp + 0x3c], 0
je case.0x406982.38
mov edx, dword [esp + 0x20]
movzx ebx, word [edi + 2]
lea ecx, [edi + 4]
xor eax, eax
cmp bx, 0x5e
sete al
cmove edx, ecx
mov esi, dword [esp + 0x2c]
cmp esi, 0x7fffffff
mov ecx, 0x7fffffff
cmovae esi, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x70], edx
xor ecx, ecx
cmp word [edi + eax*2 + 2], 0x5d
sete cl
lea edx, [edx + ecx*2]
mov edi, dword [esp + 8]
movzx eax, word [edx]
add edx, 2
cmp eax, 0x5d
je 0x409400
test eax, eax
jne 0x4093ec
jmp 0x409ed4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x10]
call fcn.00409f90
mov ecx, dword [esp + 0x20]
mov edx, ecx
add ecx, 0xfffffffe
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], eax
movzx eax, ax
test byte [esp + 0x50], 4
mov dword [esp + 8], edi
jne 0x40967c
cmp eax, 0xffff
mov esi, dword [esp + 0x44]
je 0x409ce4
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x50]
test cl, cl
sets al
test ecx, 0x600
sete cl
or cl, al
mov byte [esp + 0x38], cl
mov dword [esp + 0x44], esi
mov ecx, dword [esp + 0x70]
cmp ecx, dword [esp + 0x30]
jae 0x409522
mov eax, ecx
jmp 0x409496
lea eax, [eax + edi*2]
cmp eax, dword [esp + 0x30]
jae 0x409524
movzx esi, word [eax]
cmp si, 0x2d
jne 0x4094be
lea edx, [eax + 2]
cmp dword [esp + 0x30], edx
je 0x4094be
movzx edx, word [eax + 2]
test dx, dx
je 0x4094be
cmp eax, ecx
je 0x4094be
movzx edi, word [eax - 2]
cmp di, dx
jbe 0x4094e2
cmp bx, 0x5e
je 0x4094cb
cmp si, word [esp + 0x18]
je 0x409524
mov edi, 1
cmp bx, 0x5e
jne 0x409489
cmp si, word [esp + 0x18]
jne 0x409489
jmp 0x40993a
inc edi
mov esi, edi
lea edi, [esi + 1]
cmp word [esp + 0x18], si
je 0x4094f4
cmp si, dx
jbe 0x4094e3
dec edi
mov word [esp + 0x76], di
cmp bx, 0x5e
je 0x409505
cmp di, dx
jbe 0x409524
mov edi, 2
cmp bx, 0x5e
jne 0x409489
cmp si, dx
ja 0x409489
jmp 0x40993a
mov eax, ecx
cmp bx, 0x5e
je 0x409534
cmp dword [esp + 0x30], eax
je 0x40993a
cmp byte [esp + 0x50], 0
mov esi, dword [esp + 0x44]
mov eax, esi
mov ecx, 0
cmovs eax, ecx
cmp byte [esp + 0x38], 0
mov edi, dword [esp + 8]
jne 0x4095bc
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
add eax, esi
mov ecx, dword [edi]
mov edx, dword [esp + 0x34]
add edx, ecx
cmp eax, edx
jb 0x4095ba
mov edx, dword [esp + 0x34]
add edx, edx
sub esi, ecx
mov dword [esp + 0x34], edx
push edx
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4095b2
mov edi, dword [esp + 0x34]
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
add eax, esi
cmp edi, eax
jbe 0x409e3a
call sub.api_ms_win_crt_locale_l1_1_0.dll____mb_cur_max_func
mov edi, eax
add edi, esi
push edi
mov eax, dword [esp + 0xc]
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x409583
mov dword [esp + 0x34], edi
mov edi, dword [esp + 8]
mov dword [edi], eax
add esi, eax
mov eax, esi
movzx ecx, word [esp + 0x18]
lea edx, [esp + 0x78]
push edx
push ecx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcrtomb
add esp, 0xc
cmp eax, 0xffffffff
je 0x409c75
add esi, eax
cmp dword [esp + 0x2c], 2
jl 0x40995a
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x409603
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
movzx eax, word [edx + eax*4]
jmp 0x40963e
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x100c]
mov dx, 0xffff
mov dword [esp + 0x18], edx
test al, 1
jne 0x40995a
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x40965a
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409a9a
movzx eax, ax
inc dword [esp + 0x10]
dec dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp eax, 0xffff
jne 0x409473
jmp 0x40995a
movzx edi, word [ecx]
test edi, edi
je 0x409aaa
mov edx, edi
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, edi
mov edi, dword [esp + 8]
jmp 0x409642
cmp eax, 0xffff
mov esi, dword [esp + 0x44]
je 0x409ce4
mov ecx, edx
mov dword [esp + 0x44], esi
mov edx, ecx
mov ecx, dword [esp + 0x70]
cmp ecx, dword [esp + 0x30]
jae 0x409756
mov eax, ecx
jmp 0x4096ba
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea eax, [eax + edi*2]
cmp eax, dword [esp + 0x30]
jae 0x409762
movzx esi, word [eax]
cmp si, 0x2d
jne 0x4096e2
lea edx, [eax + 2]
cmp dword [esp + 0x30], edx
je 0x4096e2
movzx edx, word [eax + 2]
test dx, dx
je 0x4096e2
cmp eax, ecx
je 0x4096e2
movzx edi, word [eax - 2]
cmp di, dx
jbe 0x40970e
cmp bx, 0x5e
je 0x4096ef
cmp si, word [esp + 0x18]
je 0x40975a
mov edi, 1
cmp bx, 0x5e
jne 0x4096a5
mov edx, dword [esp + 0x18]
cmp si, dx
mov esi, edx
mov edx, dword [esp + 0x20]
jne 0x4096ad
jmp 0x4098cd
inc edi
mov esi, edi
lea edi, [esi + 1]
cmp word [esp + 0x18], si
je 0x409720
cmp si, dx
jbe 0x40970f
dec edi
mov word [esp + 0x76], di
cmp bx, 0x5e
je 0x409731
cmp di, dx
jbe 0x40975a
mov edi, 2
cmp bx, 0x5e
jne 0x4096a5
cmp si, dx
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
ja 0x4096ad
jmp 0x4098cd
mov eax, ecx
jmp 0x40975e
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp bx, 0x5e
je 0x409772
cmp dword [esp + 0x30], eax
je 0x4098cd
mov eax, dword [esp + 0x50]
test al, al
mov edi, dword [esp + 8]
js 0x4097aa
mov ecx, dword [esp + 0x3c]
lea esi, [ecx + 2]
mov edi, dword [esp + 0x18]
mov word [ecx], di
test eax, 0x600
je 0x4097ae
mov edi, dword [esp + 8]
mov ecx, dword [edi]
mov edx, dword [esp + 0x34]
lea edx, [ecx + edx*2]
cmp esi, edx
je 0x4097ba
mov dword [esp + 0x3c], esi
jmp 0x409812
mov ecx, edx
jmp 0x409816
mov dword [esp + 0x3c], esi
mov ecx, edx
mov edi, dword [esp + 8]
jmp 0x409816
mov eax, dword [esp + 0x34]
lea esi, [eax + eax]
lea eax, [eax*4]
push eax
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
jne 0x4097f5
mov ecx, dword [esp + 0x34]
lea edi, [ecx + 1]
cmp esi, edi
jbe 0x4097f5
lea eax, [edi + edi]
push eax
mov eax, dword [esp + 0xc]
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 0x409f03
mov edi, dword [esp + 8]
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
lea eax, [eax + ecx*2]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x2c], 2
jl 0x4098eb
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
test eax, eax
je 0x409846
lea ecx, [eax - 1]
mov edx, dword [esp + 0xc]
mov dword [edx + 0x1008], ecx
movzx eax, word [edx + eax*4]
mov ecx, dword [esp + 0x20]
inc dword [esp + 0x10]
jmp 0x4098b8
mov edx, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x100c]
mov di, 0xffff
mov dword [esp + 0x18], edi
test al, 1
jne 0x409a93
test byte [ecx + 0x1004], 1
mov ecx, dword [ecx]
jne 0x40988d
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409a6a
movzx eax, ax
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
jmp 0x4098b4
movzx edi, word [ecx]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x18], 0
je 0x409a7e
add ecx, 2
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, edi
mov ecx, edx
mov edi, dword [esp + 8]
dec dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp eax, 0xffff
jne 0x409691
jmp 0x4098eb
movzx ecx, si
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
call fcn.0040a0f0
mov ecx, dword [esp + 0x28]
add esp, 8
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x10]
je 0x409ed4
cmp byte [esp + 0x50], 0
js 0x40934d
mov edx, dword [esp + 0x3c]
mov word [edx], 0
add edx, 2
mov eax, dword [esp + 0x34]
add eax, eax
mov ecx, edi
mov dword [esp + 0x3c], edx
push eax
call fcn.0040a1f0
mov ecx, dword [esp + 0x24]
add esp, 4
inc dword [esp + 0x1c]
mov dword [esp + 8], 0
jmp 0x40934d
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
call fcn.0040a0f0
add esp, 8
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x10]
je 0x409ed4
cmp byte [esp + 0x50], 0
js 0x40916f
lea eax, [esp + 0x78]
push eax
push 0
lea eax, [esp + 0x9b]
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcrtomb
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x4099bc
mov eax, dword [esp + 0x50]
and eax, 0x600
je 0x4099bc
mov eax, dword [esp + 0x44]
lea ecx, [eax + ebx]
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov edx, dword [esp + 0x34]
add edx, eax
cmp ecx, edx
jae 0x4099f7
mov esi, dword [esp + 0x44]
jmp 0x409a21
test ebx, ebx
mov esi, dword [esp + 0x44]
jne 0x409a21
jmp 0x409a35
cmp dword [esp + 0x40], 0
je 0x409a56
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
call fcn.0040a140
jmp 0x409a63
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov word [eax], si
jmp 0x40916f
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov esi, ecx
lea edx, [ebx + ecx]
inc edx
mov dword [esp + 0x34], edx
push edx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x409e3a
mov ecx, dword [esp + 8]
mov dword [ecx], eax
add esi, eax
push ebx
lea eax, [esp + 0x97]
push eax
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add esi, ebx
mov byte [esi], 0
inc esi
mov ecx, dword [esp + 8]
jmp 0x409113
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov dword [eax], ebx
jmp 0x40916f
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x28], ecx
mov byte [eax], bl
jmp 0x40916f
mov eax, dword [esp + 0xc]
or byte [eax + 0x100c], 1
mov ecx, dword [esp + 0x20]
jmp 0x4098e7
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
mov ax, 0xffff
mov dword [esp + 0x18], eax
mov ecx, edx
jmp 0x4098e7
mov eax, dword [esp + 0xc]
or byte [eax + 0x100c], 1
jmp 0x40995a
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
mov ax, 0xffff
mov dword [esp + 0x18], eax
mov edi, dword [esp + 8]
jmp 0x40995a
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x16
mov esi, 0xffffffff
jmp 0x409c38
cmp dword [esp + 0x50], 0
mov ebx, dword [esp + 0xc]
je case.0x406982.38
lea esi, [ebx + 0x1008]
jmp 0x409b20
lea ecx, [eax - 1]
mov dword [ebx + 0x1008], ecx
movzx edi, word [ebx + eax*4]
inc dword [esp + 0x10]
push 8
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_iswctype
add esp, 8
test eax, eax
je 0x409b7f
mov eax, dword [esi]
test eax, eax
jne 0x409b00
mov eax, dword [ebx + 0x100c]
mov edi, 0xffff
test al, 1
jne 0x409b11
test byte [ebx + 0x1004], 1
mov ecx, dword [ebx]
jne 0x409b54
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fgetwc
add esp, 4
cmp ax, 0xffff
je 0x409b66
movzx edi, ax
jmp 0x409b0d
movzx edi, word [ecx]
test edi, edi
je 0x409b6f
add ecx, 2
inc dword [esp + 0x10]
mov dword [ebx], ecx
jmp 0x409b11
or byte [ebx + 0x100c], 1
jmp 0x409b11
or eax, 1
mov dword [ebx + 0x100c], eax
mov edi, 0xffff
jmp 0x409b11
cmp edi, 0xffff
je case.0x406982.38
test byte [ebx + 0x1004], 1
jne 0x409be1
movzx eax, di
push dword [ebx]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetwc
add esp, 8
mov eax, 0xffffffff
lea esi, [esp + 0x10]
jmp 0x409bf4
mov eax, dword [ebx + 0x100c]
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
movzx eax, word [esp + 0x1c]
xor esi, esi
cmp ax, 1
jmp 0x409c1d
movzx ecx, bx
lea eax, [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push eax
call fcn.0040a0f0
add esp, 8
jmp case.0x406982.38
dec dword [esp + 0x10]
mov eax, dword [ebx + 0x1008]
mov dword [ebx + eax*4 + 4], edi
mov eax, 1
add dword [esi], eax
movzx esi, word [esp + 0x1c]
jmp 0x409c21
mov eax, dword [ebx + 0x100c]
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
mov ecx, dword [esp + 0x1c]
movzx eax, cx
xor esi, esi
cmp cx, 1
sbb esi, esi
or esi, eax
lea eax, [esp + 0x14]
lea edx, [esp + 0x24]
mov ecx, esi
push eax
push dword [esp + 0xc]
call fcn.0040a010
add esp, 8
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
call fcn.0040a170
mov esi, 0xffffffff
jmp 0x409c38
mov ecx, dword [esp + 0x50]
test ecx, 0x400
jne 0x409c9f
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x1c]
inc eax
xor edi, edi
jmp 0x409ca7
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x2a
jmp 0x409ed4
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
jmp 0x409d51
mov si, 0xffff
mov ebx, dword [esp + 0xc]
jmp 0x409d51
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 8]
and ecx, 0x400
movzx eax, ax
xor esi, esi
neg ecx
jmp 0x409cf1
movzx esi, word [esp + 0x1c]
lea eax, [esp + 0x14]
lea edx, [esp + 0x24]
mov ecx, esi
push eax
push 0
jmp 0x409c30
mov ebx, ecx
jmp 0x409d4d
mov ebx, dword [esp + 8]
mov edx, edi
mov dword [esp + 0x48], edi
jmp 0x409d69
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
movzx eax, cx
xor esi, esi
cmp cx, 1
sbb esi, esi
or esi, eax
jmp 0x409ed9
movzx esi, si
jmp 0x409c21
mov edi, dword [esp + 8]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], edx
jmp 0x409ed4
test dword [esp + 0x50], 0x400
jne 0x409d7f
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
mov word [eax + ecx*2 - 2], 0
inc dword [esp + 0x1c]
xor edi, edi
jmp 0x409d83
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x100c]
or eax, 1
mov ebx, dword [esp + 0xc]
mov dword [ebx + 0x100c], eax
mov si, 0xffff
movzx ecx, si
lea eax, [esp + 0x10]
mov edx, ebx
jmp 0x409bd4
mov edx, esi
mov ebx, dword [esp + 8]
mov dword [esp + 0x48], edx
movzx esi, word [esp + 0x1c]
lea eax, [esp + 0x14]
lea edx, [esp + 0x24]
mov ecx, esi
push eax
push ebx
jmp 0x409c30
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x50]
and ecx, 0x400
movzx eax, word [esp + 0x1c]
jmp 0x409cb0
mov edi, dword [esp + 8]
mov dword [esp + 0x48], edx
jmp 0x409ed4
mov ecx, dword [esp + 0x50]
and ecx, 0x400
movzx eax, word [esp + 0x1c]
xor esi, esi
neg ecx
sbb esi, esi
or esi, eax
jmp 0x409d6e
movzx eax, word [esp + 0x18]
cmp eax, 0xffff
je 0x409c10
movzx ecx, word [esp + 0x18]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0xc]
push 1
jmp 0x409bd6
mov edx, esi
mov edi, dword [esp + 8]
mov dword [esp + 0x48], esi
jmp 0x409ed4
mov edi, dword [esp + 8]
mov edx, esi
mov dword [esp + 0x48], esi
jmp 0x409ed4
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x100c]
jmp 0x409c03
mov eax, dword [ebx + 0x100c]
or eax, 1
mov dword [ebx + 0x100c], eax
jmp 0x409c10
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0xc]
or byte [eax + 0x100c], 1
mov ebx, dword [esp + 8]
jmp 0x409d69
test dword [esp + 0x50], 0x400
jne 0x409e5a
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov byte [eax + esi], 0
inc dword [esp + 0x1c]
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x50]
and ecx, 0x400
movzx eax, word [esp + 0x1c]
xor esi, esi
neg ecx
jmp 0x409c1d
mov ecx, dword [ebx + 0x100c]
or ecx, 1
mov dword [ebx + 0x100c], ecx
jmp case.0x406982.38
mov edi, edx
mov dword [esp + 0x48], edi
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
mov ebx, dword [esp + 8]
jmp 0x409d69
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xc]
or byte [eax + 0x100c], 1
jmp 0x409ed0
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
or eax, 1
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x100c], eax
mov edi, dword [esp + 8]
movzx esi, word [esp + 0x1c]
lea eax, [esp + 0x14]
lea edx, [esp + 0x24]
mov ecx, esi
push eax
push edi
jmp 0x409c30
test dword [esp + 0x50], 0x400
jne 0x409d83
mov eax, dword [edi]
mov byte [eax + esi], 0
jmp 0x409d2e
test dword [esp + 0x50], 0x400
jne 0x409e5a
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
mov word [eax + ecx*2 - 2], 0
jmp 0x409e4e