Function at 0x4a7720
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [0x4fb960], 0
mov eax, dword [0x4c4b9c]
test eax, eax
je 0x4a7960
mov eax, dword [0x4fb964]
test eax, eax
jne 0x4a77a7
sub esp, 0xc
mov eax, dword [0x4c4b9c]
mov dword [0x4fb9a8], eax
mov dword [0x4fb998], eax
mov dword [0x4fb968], 0
push str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
mov ecx, dword [ebp + 0x10]
mov dword [0x4fb988], eax
add esp, 0x10
mov dl, byte [ecx]
cmp dl, 0x2d
je 0x4a7ae6
cmp dl, 0x2b
je 0x4a7b62
test eax, eax
sete al
and eax, 0xff
mov dword [0x4fb978], eax
mov dword [0x4fb964], 1
mov eax, dword [0x4fb968]
test eax, eax
je 0x4a77b9
cmp byte [eax], 0
jne 0x4a78a4
mov ebx, dword [0x4c4b9c]
mov dword [ebp - 0x54], ebx
cmp dword [0x4fb9a8], ebx
jle 0x4a77d0
mov dword [0x4fb9a8], ebx
mov edi, dword [ebp - 0x54]
cmp edi, dword [0x4fb998]
jge 0x4a77e1
mov dword [0x4fb998], edi
mov eax, dword [0x4fb978]
mov dword [ebp - 0x44], eax
dec eax
je 0x4a7af9
mov edx, dword [ebp + 8]
cmp dword [ebp - 0x54], edx
je 0x4a784c
mov ecx, dword [ebp - 0x54]
mov ebx, dword [ebp + 0xc]
mov edx, 0x4f2630
mov eax, 3
mov ecx, dword [ebx + ecx*4]
mov edi, edx
cld
mov dword [ebp - 0x50], ecx
mov esi, ecx
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4a786a
mov eax, dword [ebp - 0x54]
mov edx, dword [0x4fb9a8]
inc eax
cmp dword [0x4fb998], edx
mov dword [0x4c4b9c], eax
je 0x4a7bd0
cmp eax, edx
je 0x4a783f
mov eax, ebx
call fcn.004a75e0
mov eax, dword [ebp + 8]
mov dword [0x4fb9a8], eax
mov dword [0x4c4b9c], eax
mov eax, dword [0x4fb998]
cmp eax, dword [0x4fb9a8]
jne 0x4a7cbc
or esi, 0xffffffff
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x50]
cmp byte [edi], 0x2d
jne 0x4a7b78
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x50]
inc ebx
mov dl, byte [ecx + 1]
test dl, dl
je 0x4a7b78
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
je 0x4a789c
cmp dl, 0x2d
sete al
and eax, 0xff
add ebx, eax
mov dword [0x4fb968], ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4a78cd
mov eax, dword [0x4c4b9c]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + eax*4]
mov dl, byte [eax + 1]
cmp dl, 0x2d
je 0x4a79d1
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
jne 0x4a79b8
mov ebx, dword [0x4fb968]
mov al, byte [ebx]
lea edi, [ebx + 1]
movsx esi, al
mov byte [ebp - 0x29], al
mov edx, esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 0x10]
mov dword [0x4fb968], edi
call fcn.004a75b0
mov edx, dword [0x4c4b9c]
cmp byte [ebx + 1], 1
adc edx, 0
test eax, eax
mov dword [0x4c4b9c], edx
je 0x4a796f
cmp byte [ebp - 0x29], 0x3a
je 0x4a796f
cmp byte [eax], 0x57
je 0x4a7e66
mov cl, byte [eax + 1]
cmp cl, 0x3a
jne 0x4a7860
cmp byte [eax + 2], 0x3a
je 0x4a7fb6
cmp byte [edi], 0
je 0x4a7f84
mov ecx, dword [0x4c4b9c]
mov dword [0x4fb960], edi
inc ecx
mov dword [0x4c4b9c], ecx
mov esi, dword [ebp - 0x4c]
mov dword [0x4fb968], 0
jmp 0x4a7860
mov dword [0x4c4b9c], 1
jmp 0x4a7749
mov edx, dword [0x4c4ba0]
test edx, edx
je 0x4a79a3
mov eax, dword [0x4fb988]
test eax, eax
je 0x4a7cc9
push esi
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push str._s:_illegal_option_____c_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.004a7700
add esp, 0x10
mov dword [0x4c4ba4], esi
mov esi, 0x3f
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [eax + 2], 0
jne 0x4a79d1
movsx edx, dl
mov eax, dword [ebp + 0x10]
call fcn.004a75b0
test eax, eax
jne 0x4a78cd
mov eax, dword [0x4fb968]
mov dword [ebp - 0x48], eax
mov dl, byte [eax]
mov byte [ebp - 0xd], dl
test dl, dl
je 0x4a7ca0
mov edi, eax
cmp dl, 0x3d
je 0x4a7ca0
inc edi
mov al, byte [edi]
test al, al
jne 0x4a7ba4
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
test esi, esi
je 0x4a7d51
mov ebx, edi
mov edx, dword [ebp - 0x48]
sub ebx, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0
jmp 0x4a7a43
add ebx, 0x10
mov esi, dword [ebx]
test esi, esi
je 0x4a7a89
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x48]
push eax
push esi
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x4a7a33
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
cmp eax, dword [ebp - 0x14]
je 0x4a7c0d
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4a7bb1
add ebx, 0x10
mov dword [ebp - 0x38], 1
mov esi, dword [ebx]
test esi, esi
jne 0x4a7a3c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4a7c16
mov edi, dword [0x4c4ba0]
test edi, edi
jne 0x4a7bda
sub esp, 0xc
mov ecx, dword [ebp - 0x48]
mov esi, 0x3f
push ecx
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x48]
mov dword [0x4c4ba4], 0
add edx, eax
mov eax, dword [0x4c4b9c]
mov dword [ebp - 0x48], edx
inc eax
mov ebx, dword [ebp - 0x48]
mov dword [0x4c4b9c], eax
mov dword [0x4fb968], ebx
mov eax, esi
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc ecx
mov dword [0x4fb978], 2
mov dword [ebp + 0x10], ecx
jmp 0x4a779d
mov edx, dword [0x4fb998]
mov eax, dword [0x4fb9a8]
cmp edx, eax
je 0x4a7c89
cmp dword [ebp - 0x54], eax
je 0x4a7b22
mov eax, dword [ebp + 0xc]
call fcn.004a75e0
mov edx, dword [0x4c4b9c]
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x54]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
lea edx, [ebx + ecx*4]
jg 0x4a7b41
jmp 0x4a7b57
inc ecx
add edx, 4
mov dword [0x4c4b9c], ecx
cmp ecx, dword [ebp + 8]
je 0x4a7bbf
mov eax, dword [edx]
cmp byte [eax], 0x2d
jne 0x4a7b32
cmp byte [eax + 1], 0
je 0x4a7b32
mov edi, dword [0x4c4b9c]
mov dword [ebp - 0x54], edi
mov dword [0x4fb9a8], ecx
jmp 0x4a77f0
mov eax, dword [ebp + 0x10]
mov dword [0x4fb978], 0
inc eax
mov dword [ebp + 0x10], eax
jmp 0x4a779d
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x4a785d
mov eax, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
inc eax
mov esi, 1
mov dword [0x4c4b9c], eax
mov dword [0x4fb960], ebx
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp al, 0x3d
jne 0x4a79f1
jmp 0x4a79fc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], eax
jmp 0x4a7a33
mov eax, dword [ebp + 8]
mov dword [0x4fb9a8], ecx
mov dword [ebp - 0x54], eax
jmp 0x4a77f0
mov dword [0x4fb998], eax
jmp 0x4a783f
mov eax, dword [0x4c4b9c]
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + eax*4]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
add eax, 0x40
mov ebx, dword [edx]
push ebx
push str._s:_option___s_is_ambiguous_n
push eax
call fcn.004a7700
mov ecx, dword [0x4fb968]
add esp, 0x10
mov dword [ebp - 0x48], ecx
jmp 0x4a7aa2
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4a7d51
mov edx, dword [0x4c4b9c]
inc edx
mov dword [0x4c4b9c], edx
cmp byte [edi], 0
jne 0x4a7ca8
mov edi, dword [ebp - 0x3c]
cmp dword [edi + 4], 1
je 0x4a7dcc
sub esp, 0xc
mov ecx, dword [ebp - 0x48]
push ecx
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x48]
add esp, 0x10
add edx, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], edx
test eax, eax
mov ebx, dword [ebp - 0x48]
mov dword [0x4fb968], ebx
je 0x4a7c6f
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 8]
test edx, edx
je 0x4a7de9
mov eax, dword [ecx + 0xc]
xor esi, esi
mov dword [edx], eax
jmp 0x4a7860
cmp dword [ebp - 0x54], edx
je 0x4a7b22
mov ecx, dword [ebp - 0x54]
mov dword [0x4fb998], ecx
jmp 0x4a7b22
mov edi, dword [ebp - 0x48]
jmp 0x4a79fc
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4a7cda
lea eax, [edi + 1]
mov dword [0x4fb960], eax
jmp 0x4a7c40
or esi, 0xffffffff
mov dword [0x4c4b9c], eax
jmp 0x4a7860
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push eax
push str._s:_invalid_option_____c_n
jmp 0x4a7992
mov edi, dword [0x4c4ba0]
test edi, edi
je 0x4a7c40
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + edx*4 - 4]
cmp byte [eax + 1], 0x2d
je 0x4a7e42
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov edx, dword [edx]
push edx
movsx eax, byte [eax]
push eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str._s:_option___c_s_doesnt_allow_an_argument_n
push eax
call fcn.004a7700
add esp, 0x20
sub esp, 0xc
mov ebx, dword [0x4fb968]
mov esi, 0x3f
push ebx
call sub.msvcrt.dll_strlen
add ebx, eax
add esp, 0x10
mov dword [0x4fb968], ebx
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0xc]
mov dword [0x4c4ba4], eax
jmp 0x4a7860
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x4a807f
mov eax, dword [0x4c4ba0]
test eax, eax
je 0x4a7da1
mov eax, dword [0x4c4b9c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + eax*4]
cmp byte [eax + 1], 0x2d
je 0x4a7f33
sub esp, 0xc
mov esi, dword [ebp - 0x48]
push esi
movsx eax, byte [eax]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, dword [ebp + 0xc]
add eax, 0x40
mov ebx, dword [ecx]
push ebx
push str._s:_unrecognized_option___c_s_n
push eax
call fcn.004a7700
add esp, 0x20
mov ecx, dword [0x4c4b9c]
mov esi, 0x3f
inc ecx
mov dword [0x4fb968], 0x4f271c
mov dword [0x4c4b9c], ecx
mov dword [0x4c4ba4], 0
jmp 0x4a7860
cmp dword [ebp + 8], edx
jle 0x4a7df4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x4fb960], eax
lea eax, [edx + 1]
mov dword [0x4c4b9c], eax
jmp 0x4a7c40
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebx + 0xc]
jmp 0x4a7860
mov eax, dword [0x4c4ba0]
test eax, eax
jne 0x4a7f55
sub esp, 0xc
mov esi, dword [ebp - 0x48]
push esi
call sub.msvcrt.dll_strlen
mov ebx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
add ebx, eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x48], ebx
add esp, 0x10
mov eax, dword [ebp - 0x48]
mov dword [0x4fb968], eax
mov eax, dword [edx + 0xc]
mov dword [0x4c4ba4], eax
cmp byte [ecx], 0x3a
setne al
and eax, 0xff
lea esi, [eax + eax*4 + 0x3a]
jmp 0x4a7860
mov edi, dword [ebp - 0x3c]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov esi, dword [edi]
push esi
mov ecx, dword [ebx]
push ecx
push str._s:_option_____s_doesnt_allow_an_argument_n
push eax
call fcn.004a7700
add esp, 0x10
jmp 0x4a7d22
mov cl, byte [eax + 1]
cmp cl, 0x3b
jne 0x4a791d
cmp byte [ebx + 1], 0
je 0x4a805e
mov eax, dword [0x4c4b9c]
mov ebx, dword [ebp - 0x48]
inc eax
mov dword [0x4fb960], ebx
mov dword [0x4c4b9c], eax
mov ebx, dword [0x4fb960]
mov dword [ebp - 0x48], ebx
mov dword [0x4fb968], ebx
mov al, byte [ebx]
test al, al
setne byte [ebp - 0x3d]
jne 0x4a8032
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ecx]
test ebx, ebx
je 0x4a80eb
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x28]
sub edi, esi
mov esi, ecx
mov dword [ebp - 0x18], edi
xor edi, edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
jmp 0x4a7ef4
add esi, 0x10
mov ebx, dword [esi]
test ebx, ebx
je 0x4a7fdd
inc edi
push edx
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x48]
push eax
push ebx
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x4a7ee6
sub esp, 0xc
push ebx
call sub.msvcrt.dll_strlen
add esp, 0x10
cmp eax, dword [ebp - 0x18]
je 0x4a80de
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4a7fab
mov dword [ebp - 0x20], 1
jmp 0x4a7ee6
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, dword [edx]
add eax, 0x40
push edi
push str._s:_unrecognized_option_____s_n
push eax
call fcn.004a7700
add esp, 0x10
jmp 0x4a7da1
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + edx*4 - 4]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, dword [ebx]
add eax, 0x40
push edi
push str._s:_option___s_requires_an_argument_n
push eax
call fcn.004a7700
mov edi, dword [0x4fb968]
add esp, 0x10
mov dword [ebp - 0x48], edi
jmp 0x4a7e01
mov edx, dword [0x4c4b9c]
cmp edx, dword [ebp + 8]
je 0x4a80b0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + edx*4]
mov dword [0x4fb960], eax
lea eax, [edx + 1]
mov dword [0x4c4b9c], eax
jmp 0x4a794c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
jmp 0x4a7ee6
cmp byte [edi], 0
je 0x4a8026
mov ebx, dword [0x4c4b9c]
mov dword [0x4fb960], edi
inc ebx
mov dword [0x4c4b9c], ebx
mov dword [0x4fb968], 0
jmp 0x4a7860
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4a80e4
mov eax, dword [0x4c4ba0]
test eax, eax
jne 0x4a8203
sub esp, 0xc
mov ebx, dword [0x4fb968]
push ebx
call sub.msvcrt.dll_strlen
mov esi, dword [0x4c4b9c]
add ebx, eax
inc esi
add esp, 0x10
mov dword [0x4c4b9c], esi
mov esi, 0x3f
mov dword [0x4fb968], ebx
jmp 0x4a7860
mov dword [0x4fb960], 0
jmp 0x4a7fce
mov dword [ebp - 0x28], ebx
cmp al, 0x3d
je 0x4a7ead
mov edi, dword [ebp - 0x28]
inc edi
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x28]
mov al, byte [edx]
test al, al
setne byte [ebp - 0x3d]
je 0x4a7eb3
cmp al, 0x3d
jne 0x4a803d
jmp 0x4a7eb3
cmp edx, dword [ebp + 8]
je 0x4a8238
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x4fb960], eax
lea eax, [edx + 1]
mov dword [0x4c4b9c], eax
jmp 0x4a7e90
mov eax, dword [0x4c4b9c]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + eax*4]
cmp byte [eax + 1], 0x2d
je 0x4a7d5c
movsx edx, byte [ebp - 0xd]
mov eax, dword [ebp + 0x10]
call fcn.004a75b0
test eax, eax
jne 0x4a78cd
jmp 0x4a7d5c
mov edx, dword [0x4c4ba0]
test edx, edx
jne 0x4a81e1
mov edx, dword [ebp + 0x10]
mov dword [0x4c4ba4], esi
cmp byte [edx], 0x3a
setne al
and eax, 0xff
lea ecx, [eax + eax*4 + 0x3a]
mov dword [ebp - 0x4c], ecx
jmp 0x4a794c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp - 0x24]
test ebx, ebx
jne 0x4a80ff
mov esi, 0x57
mov dword [0x4fb968], 0
jmp 0x4a7860
cmp byte [ebp - 0x3d], 0
je 0x4a81b4
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x4a8163
mov edx, dword [0x4c4ba0]
test edx, edx
je 0x4a813f
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
push eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str._s:_option___W__s_doesnt_allow_an_argument_n
push eax
call fcn.004a7700
add esp, 0x10
sub esp, 0xc
mov ebx, dword [0x4fb968]
mov esi, 0x3f
push ebx
call sub.msvcrt.dll_strlen
add esp, 0x10
add ebx, eax
mov dword [0x4fb968], ebx
jmp 0x4a7860
mov eax, dword [ebp - 0x28]
inc eax
mov dword [0x4fb960], eax
sub esp, 0xc
mov eax, dword [ebp - 0x48]
push eax
call sub.msvcrt.dll_strlen
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp + 0x18]
add edi, eax
add esp, 0x10
mov dword [ebp - 0x48], edi
test esi, esi
mov eax, dword [ebp - 0x48]
mov dword [0x4fb968], eax
je 0x4a819a
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [edx], ecx
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebx + 8]
test edx, edx
je 0x4a822d
mov eax, dword [ebx + 0xc]
xor esi, esi
mov dword [edx], eax
jmp 0x4a7860
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 1
jne 0x4a816c
mov edx, dword [0x4c4b9c]
cmp dword [ebp + 8], edx
jle 0x4a827b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x4fb960], eax
lea eax, [edx + 1]
mov dword [0x4c4b9c], eax
jmp 0x4a816c
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str._s:_option_requires_an_argument_____c_n
push eax
call fcn.004a7700
add esp, 0x10
jmp 0x4a80be
mov edx, dword [ebp + 0xc]
mov eax, dword [0x4c4b9c]
mov eax, dword [edx + eax*4]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edi, dword [edx]
add eax, 0x40
push edi
push str._s:_option___W__s_is_ambiguous_n
push eax
call fcn.004a7700
add esp, 0x10
jmp 0x4a7ff5
mov edi, dword [ebp - 0x24]
mov esi, dword [edi + 0xc]
jmp 0x4a7860
mov eax, dword [0x4c4ba0]
test eax, eax
je 0x4a825e
push esi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str._s:_option_requires_an_argument_____c_n
push eax
call fcn.004a7700
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [0x4c4ba4], esi
cmp byte [eax], 0x3a
setne al
and eax, 0xff
lea esi, [eax + eax*4 + 0x3a]
jmp 0x4a7860
mov eax, dword [0x4c4ba0]
test eax, eax
je 0x4a82a5
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + edx*4 - 4]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str._s:_option___s_requires_an_argument_n
push eax
call fcn.004a7700
add esp, 0x10
sub esp, 0xc
mov ebx, dword [0x4fb968]
push ebx
call sub.msvcrt.dll_strlen
mov edi, dword [ebp + 0x10]
add ebx, eax
mov dword [0x4fb968], ebx
add esp, 0x10
cmp byte [edi], 0x3a
setne al
and eax, 0xff
lea esi, [eax + eax*4 + 0x3a]
jmp 0x4a7860