Function at 0x402740
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a064]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [esi + 4]
cmp edx, 1
jl 0x4028e2
cmp dword [esi], 0
mov dword [esi + 0xc], 0
je 0x40278d
cmp dword [esi + 0x10], 0
je 0x402793
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ebx
mov al, byte [ebx]
cmp al, 0x2d
je 0x402787
cmp al, 0x2b
jne 0x4027fc
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4027fc
mov dword [esi], 1
mov eax, dword [esi]
mov ebx, dword [ebp + 0x10]
push str.POSIXLY_CORRECT
mov dword [ebp - 0xc], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], 0
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ecx, eax
add esp, 4
neg ecx
sbb ecx, ecx
neg ecx
or ecx, dword [ebp + 0x24]
mov dword [esi + 0x1c], ecx
mov al, byte [ebx]
cmp al, 0x2d
jne 0x4027d7
inc ebx
mov dword [esi + 0x18], 2
mov dword [ebp - 0xc], ebx
jmp 0x4027f2
cmp al, 0x2b
jne 0x4027e8
inc ebx
mov dword [esi + 0x18], 0
mov dword [ebp - 0xc], ebx
jmp 0x4027f2
xor eax, eax
test ecx, ecx
sete al
mov dword [esi + 0x18], eax
mov edx, dword [ebp + 8]
mov dword [esi + 0x10], 1
xor eax, eax
cmp byte [ebx], 0x3a
cmovne eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x402817
cmp byte [eax], 0
jne 0x40292d
mov eax, dword [esi]
cmp dword [esi + 0x24], eax
jle 0x402821
mov dword [esi + 0x24], eax
cmp dword [esi + 0x20], eax
jle 0x402829
mov dword [esi + 0x20], eax
cmp dword [esi + 0x18], 1
jne 0x402876
mov ecx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x20], ecx
je 0x40284d
cmp ecx, eax
je 0x402854
push esi
push ebx
call fcn.004031a0
mov edx, dword [ebp + 8]
add esp, 8
jmp 0x402854
cmp ecx, eax
je 0x402854
mov dword [esi + 0x20], eax
cmp dword [esi], edx
jge 0x402871
mov ecx, dword [esi]
mov eax, dword [ebx + ecx*4]
cmp byte [eax], 0x2d
jne 0x402868
cmp byte [eax + 1], 0
jne 0x402871
lea eax, [ecx + 1]
mov dword [esi], eax
cmp eax, edx
jl 0x402858
mov eax, dword [esi]
mov dword [esi + 0x24], eax
cmp eax, edx
je 0x4028d8
mov edi, dword [ebp + 0xc]
mov edx, 0x407a80
mov edi, dword [edi + eax*4]
mov ecx, edi
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x4028a7
test bl, bl
je 0x4028a3
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x4028a7
add ecx, 2
add edx, 2
test bl, bl
jne 0x402887
xor ecx, ecx
jmp 0x4028ac
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4028f9
mov ecx, dword [esi + 0x24]
inc eax
mov dword [esi], eax
cmp dword [esi + 0x20], ecx
je 0x4028cd
cmp ecx, eax
je 0x4028d0
push esi
push dword [ebp + 0xc]
call fcn.004031a0
add esp, 8
jmp 0x4028d0
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x24], eax
mov dword [esi], eax
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
je 0x4028e2
mov dword [esi], eax
or eax, 0xffffffff
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x2d
jne 0x40316c
mov cl, byte [edi + 1]
test cl, cl
je 0x40316c
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x40291e
mov eax, 2
cmp cl, 0x2d
je 0x402923
mov eax, 1
mov ebx, dword [ebp - 0xc]
add eax, edi
mov dword [esi + 0x14], eax
jmp 0x402930
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x402d1f
mov eax, dword [esi]
mov eax, dword [edi + eax*4]
mov cl, byte [eax + 1]
cmp cl, 0x2d
je 0x402970
cmp dword [ebp + 0x1c], 0
je 0x402d1f
cmp byte [eax + 2], 0
jne 0x402970
movsx eax, cl
push eax
push ebx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
jne 0x402d1f
mov edx, dword [ebp + 0x14]
or ecx, 0xffffffff
xor edi, edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], ecx
mov al, byte [ebx]
test al, al
je 0x40299f
nop dword [eax]
cmp al, 0x3d
je 0x40299c
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x402990
mov dword [ebp - 0x18], ebx
mov eax, ebx
mov dword [ebp - 8], edi
sub eax, ecx
mov ebx, edx
mov dword [ebp - 0x20], eax
cmp dword [edx], edi
je 0x402c7b
push eax
push dword [esi + 0x14]
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x402a21
mov ecx, dword [ebx]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029d0
sub ecx, edx
cmp dword [ebp - 0x20], ecx
je 0x402a38
test edi, edi
jne 0x4029ec
mov eax, dword [ebp - 8]
mov edi, ebx
mov dword [ebp - 0x14], eax
jmp 0x402a24
cmp dword [ebp + 0x1c], 0
jne 0x402a0a
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 4]
jne 0x402a0a
mov eax, dword [edi + 8]
cmp eax, dword [ebx + 8]
jne 0x402a0a
mov eax, dword [edi + 0xc]
cmp eax, dword [ebx + 0xc]
je 0x402a21
mov eax, 8
call fcn.00406250
mov ecx, dword [ebp - 0x24]
mov eax, esp
mov dword [ebp - 0x24], eax
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
add ebx, 0x10
inc eax
mov dword [ebp - 8], eax
cmp dword [ebx], 0
je 0x402a47
mov eax, dword [ebp - 0x20]
jmp 0x4029b3
mov eax, dword [ebp - 8]
mov edi, ebx
mov dword [ebp - 0x14], eax
mov ecx, 1
jmp 0x402a49
xor ecx, ecx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x402af9
test ecx, ecx
jne 0x402af9
cmp dword [ebp - 0x10], ecx
je 0x402ac0
mov ecx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], edi
lea edi, [ebp - 0x1c]
push dword [ecx + eax*4]
push dword [ecx]
push str._s:_option__s_is_ambiguous__possibilities:
push 2
call ebx
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
nop
mov eax, dword [edi]
push dword [eax]
push str.____s
push 2
call ebx
add esp, 4
push eax
call fcn.00402540
mov edi, dword [edi + 4]
add esp, 0xc
test edi, edi
jne 0x402a90
push 2
call ebx
push eax
push 0xa
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 0xc
mov edx, dword [esi + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ac8
sub ecx, edi
mov dword [esi + 8], 0
inc dword [esi]
lea eax, [ecx + edx]
mov dword [esi + 0x14], eax
mov eax, 0x3f
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x402c7b
mov eax, dword [ebp - 0x18]
inc dword [esi]
mov ecx, dword [esi]
cmp byte [eax], 0
je 0x402bee
cmp dword [edi + 4], 0
je 0x402b64
inc eax
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x14]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b23
sub ecx, ebx
lea eax, [ecx + edx]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x402b3e
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
test ecx, ecx
je 0x4028e5
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10], 0
je 0x402bb5
mov edx, dword [ebp + 0xc]
push dword [edi]
mov eax, dword [edx + ecx*4 - 4]
cmp byte [eax + 1], 0x2d
jne 0x402b96
push dword [edx]
push str._s:_option____s_doesnt_allow_an_argument_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
jmp 0x402bb5
movsx eax, byte [eax]
push eax
push dword [edx]
push str._s:_option__c_s_doesnt_allow_an_argument_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x14
mov edx, dword [esi + 0x14]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bc0
sub ecx, ebx
lea eax, [ecx + edx]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 8], eax
mov eax, 0x3f
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp dword [edi + 4], 1
jne 0x402b1b
cmp ecx, dword [ebp + 8]
jge 0x402c10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi], eax
jmp 0x402b1b
cmp dword [ebp - 0x10], 0
je 0x402c36
push dword [edi]
mov eax, dword [ebp + 0xc]
push dword [eax]
push str._s:_option____s_requires_an_argument_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
mov edx, dword [esi + 0x14]
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c40
sub ecx, ebx
lea eax, [ecx + edx]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0xc]
mov edx, 0x3a
mov eax, 0x3f
cmp byte [ecx], dl
cmove eax, edx
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], 0
mov edi, dword [ebp + 0xc]
je 0x402ca6
mov eax, dword [esi]
mov eax, dword [edi + eax*4]
cmp byte [eax + 1], 0x2d
je 0x402ca6
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0xc]
movsx eax, byte [eax]
push eax
push ecx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
jne 0x402d1f
cmp dword [ebp - 0x10], 0
je 0x402cf6
mov eax, dword [esi]
push dword [esi + 0x14]
mov eax, dword [edi + eax*4]
cmp byte [eax + 1], 0x2d
jne 0x402cd7
push dword [edi]
push str._s:_unrecognized_option____s_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
jmp 0x402cf6
movsx eax, byte [eax]
push eax
push dword [edi]
push str._s:_unrecognized_option__c_s_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x14
inc dword [esi]
mov eax, 0x3f
mov dword [esi + 0x14], 0x4078d2
mov dword [esi + 8], 0
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov cl, byte [eax]
inc eax
movsx ebx, cl
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x14], eax
call sub.VCRUNTIME140.dll_strchr
mov ecx, dword [esi + 0x14]
add esp, 8
mov edx, eax
cmp byte [ecx], 0
jne 0x402d46
inc dword [esi]
test edx, edx
je 0x40312e
mov eax, dword [ebp - 0x18]
cmp al, 0x3a
je 0x40312e
cmp al, 0x3b
je 0x40312e
cmp byte [edx], 0x57
jne 0x403044
cmp byte [edx + 1], 0x3b
jne 0x403044
xor edx, edx
xor eax, eax
mov dword [ebp - 0x14], edx
xor edi, edi
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
test edx, edx
je 0x403024
cmp byte [ecx], al
je 0x402d96
inc dword [esi]
mov dword [esi + 0xc], ecx
jmp 0x402df8
mov ecx, dword [esi]
cmp ecx, dword [ebp + 8]
jne 0x402dea
cmp dword [ebp - 0x10], eax
je 0x402dc1
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
push str._s:_option_requires_an_argument_____c_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, 0x3a
mov dword [esi + 8], ebx
mov edx, 0x3f
cmp byte [ecx], al
cmovne eax, edx
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi], eax
mov ebx, dword [esi + 0xc]
mov dword [esi + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x402e10
cmp al, 0x3d
je 0x402e10
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x402e04
mov dword [ebp - 8], edi
cmp dword [edx], edi
je 0x403024
nop dword [eax + eax]
mov ecx, dword [esi + 0x14]
mov eax, ebx
sub eax, ecx
push eax
push ecx
push dword [edx]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edx, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x402e8d
mov ecx, dword [edx]
lea eax, [ecx + 1]
mov dword [ebp - 0x20], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402e43
sub ecx, dword [ebp - 0x20]
mov eax, ebx
sub eax, dword [esi + 0x14]
cmp eax, ecx
je 0x402f0a
test edi, edi
jne 0x402e68
mov eax, dword [ebp - 8]
mov edi, edx
mov dword [ebp - 0x14], eax
jmp 0x402e90
cmp dword [ebp + 0x1c], 0
jne 0x402e86
mov eax, dword [edi + 4]
cmp eax, dword [edx + 4]
jne 0x402e86
mov eax, dword [edi + 8]
cmp eax, dword [edx + 8]
jne 0x402e86
mov eax, dword [edi + 0xc]
cmp eax, dword [edx + 0xc]
je 0x402e8d
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 8]
add edx, 0x10
inc eax
mov dword [ebp + 0x14], edx
mov dword [ebp - 8], eax
cmp dword [edx], 0
jne 0x402e20
xor ecx, ecx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402f19
test ecx, ecx
jne 0x402f19
cmp dword [ebp - 0x10], ecx
je 0x402ed2
push dword [esi + 0xc]
mov eax, dword [ebp + 0xc]
push dword [eax]
push str._s:_option__W__s_is_ambiguous_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
mov edx, dword [esi + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ee0
sub ecx, edi
inc dword [esi]
lea eax, [ecx + edx]
mov dword [esi + 0x14], eax
mov eax, 0x3f
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov edi, edx
mov dword [ebp - 0x14], eax
mov ecx, 1
jmp 0x402ea1
test edi, edi
je 0x403024
cmp byte [ebx], 0
je 0x402f8d
cmp dword [edi + 4], 0
je 0x402f37
lea eax, [ebx + 1]
mov dword [esi + 0xc], eax
jmp 0x402ff3
cmp dword [ebp - 0x10], 0
je 0x402f5d
push dword [edi]
mov eax, dword [ebp + 0xc]
push dword [eax]
push str._s:_option__W__s_doesnt_allow_an_argument_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
mov edx, dword [esi + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402f65
sub ecx, edi
lea eax, [ecx + edx]
mov dword [esi + 0x14], eax
mov eax, 0x3f
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp dword [edi + 4], 1
jne 0x402fec
mov ecx, dword [esi]
cmp ecx, dword [ebp + 8]
jge 0x402faa
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi], eax
jmp 0x402ff3
cmp dword [ebp - 0x10], 0
je 0x402fd0
push dword [edi]
mov eax, dword [ebp + 0xc]
push dword [eax]
push str._s:_option__W__s_requires_an_argument_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
mov edx, dword [esi + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402fd8
sub ecx, edi
lea eax, [ecx + edx]
mov dword [esi + 0x14], eax
jmp 0x402c55
mov dword [esi + 0xc], 0
mov edx, dword [esi + 0x14]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403000
sub ecx, ebx
lea eax, [ecx + edx]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x402b3e
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x402b3e
mov dword [esi + 0x14], 0
mov eax, 0x57
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp byte [edx + 1], 0x3a
jne 0x403117
cmp byte [edx + 2], 0x3a
jne 0x40307e
cmp byte [ecx], 0
jne 0x403083
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
movsx eax, al
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp byte [ecx], 0
je 0x4030a6
inc dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], 0
movsx eax, al
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
cmp ecx, dword [ebp + 8]
jne 0x403102
cmp dword [ebp - 0x10], 0
je 0x4030cf
push ebx
push dword [edi]
push str._s:_option_requires_an_argument_____c_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, 0x3a
mov dword [esi + 8], ebx
mov edx, 0x3f
cmp byte [ecx], al
mov dword [esi + 0x14], 0
cmovne eax, edx
movsx eax, al
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + ecx*4]
mov dword [esi + 0xc], eax
lea eax, [ecx + 1]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], 0
movsx eax, al
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x10], 0
je 0x403150
push ebx
push dword [edi]
push str._s:_invalid_option_____c_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00402540
add esp, 0x10
mov dword [esi + 8], ebx
mov eax, 0x3f
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 0
je 0x4028e2
inc eax
mov dword [esi + 0xc], edi
mov dword [esi], eax
mov eax, 1
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406236
mov esp, ebp
pop ebp
ret