Function at 0x487340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [0x4d9d18], 0
mov eax, dword [0x4a5b00]
test eax, eax
je 0x487580
mov eax, dword [0x4d9d1c]
test eax, eax
jne 0x4873c7
sub esp, 0xc
mov eax, dword [0x4a5b00]
mov dword [0x4d9d60], eax
mov dword [0x4d9d50], eax
mov dword [0x4d9d20], 0
push str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
mov ecx, dword [ebp + 0x10]
mov dword [0x4d9d40], eax
add esp, 0x10
mov dl, byte [ecx]
cmp dl, 0x2d
je 0x487706
cmp dl, 0x2b
je 0x487782
test eax, eax
sete al
and eax, 0xff
mov dword [0x4d9d30], eax
mov dword [0x4d9d1c], 1
mov eax, dword [0x4d9d20]
test eax, eax
je 0x4873d9
cmp byte [eax], 0
jne 0x4874c4
mov ebx, dword [0x4a5b00]
mov dword [ebp - 0x54], ebx
cmp dword [0x4d9d60], ebx
jle 0x4873f0
mov dword [0x4d9d60], ebx
mov edi, dword [ebp - 0x54]
cmp edi, dword [0x4d9d50]
jge 0x487401
mov dword [0x4d9d50], edi
mov eax, dword [0x4d9d30]
mov dword [ebp - 0x44], eax
dec eax
je 0x487719
mov edx, dword [ebp + 8]
cmp dword [ebp - 0x54], edx
je 0x48746c
mov ecx, dword [ebp - 0x54]
mov ebx, dword [ebp + 0xc]
mov edx, 0x4d0454
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 0x48748a
mov eax, dword [ebp - 0x54]
mov edx, dword [0x4d9d60]
inc eax
cmp dword [0x4d9d50], edx
mov dword [0x4a5b00], eax
je 0x4877f0
cmp eax, edx
je 0x48745f
mov eax, ebx
call fcn.00487200
mov eax, dword [ebp + 8]
mov dword [0x4d9d60], eax
mov dword [0x4a5b00], eax
mov eax, dword [0x4d9d50]
cmp eax, dword [0x4d9d60]
jne 0x4878dc
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 0x487798
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x50]
inc ebx
mov dl, byte [ecx + 1]
test dl, dl
je 0x487798
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
je 0x4874bc
cmp dl, 0x2d
sete al
and eax, 0xff
add ebx, eax
mov dword [0x4d9d20], ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4874ed
mov eax, dword [0x4a5b00]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + eax*4]
mov dl, byte [eax + 1]
cmp dl, 0x2d
je 0x4875f1
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
jne 0x4875d8
mov ebx, dword [0x4d9d20]
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 [0x4d9d20], edi
call fcn.004871d0
mov edx, dword [0x4a5b00]
cmp byte [ebx + 1], 1
adc edx, 0
test eax, eax
mov dword [0x4a5b00], edx
je 0x48758f
cmp byte [ebp - 0x29], 0x3a
je 0x48758f
cmp byte [eax], 0x57
je 0x487a86
mov cl, byte [eax + 1]
cmp cl, 0x3a
jne 0x487480
cmp byte [eax + 2], 0x3a
je 0x487bd6
cmp byte [edi], 0
je 0x487ba4
mov ecx, dword [0x4a5b00]
mov dword [0x4d9d18], edi
inc ecx
mov dword [0x4a5b00], ecx
mov esi, dword [ebp - 0x4c]
mov dword [0x4d9d20], 0
jmp 0x487480
mov dword [0x4a5b00], 1
jmp 0x487369
mov edx, dword [0x4a5b04]
test edx, edx
je 0x4875c3
mov eax, dword [0x4d9d40]
test eax, eax
je 0x4878e9
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.00487320
add esp, 0x10
mov dword [0x4a5b08], 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 0x4875f1
movsx edx, dl
mov eax, dword [ebp + 0x10]
call fcn.004871d0
test eax, eax
jne 0x4874ed
mov eax, dword [0x4d9d20]
mov dword [ebp - 0x48], eax
mov dl, byte [eax]
mov byte [ebp - 0xd], dl
test dl, dl
je 0x4878c0
mov edi, eax
cmp dl, 0x3d
je 0x4878c0
inc edi
mov al, byte [edi]
test al, al
jne 0x4877c4
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
test esi, esi
je 0x487971
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 0x487663
add ebx, 0x10
mov esi, dword [ebx]
test esi, esi
je 0x4876a9
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 0x487653
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
cmp eax, dword [ebp - 0x14]
je 0x48782d
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4877d1
add ebx, 0x10
mov dword [ebp - 0x38], 1
mov esi, dword [ebx]
test esi, esi
jne 0x48765c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x487836
mov edi, dword [0x4a5b04]
test edi, edi
jne 0x4877fa
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 [0x4a5b08], 0
add edx, eax
mov eax, dword [0x4a5b00]
mov dword [ebp - 0x48], edx
inc eax
mov ebx, dword [ebp - 0x48]
mov dword [0x4a5b00], eax
mov dword [0x4d9d20], ebx
mov eax, esi
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc ecx
mov dword [0x4d9d30], 2
mov dword [ebp + 0x10], ecx
jmp 0x4873bd
mov edx, dword [0x4d9d50]
mov eax, dword [0x4d9d60]
cmp edx, eax
je 0x4878a9
cmp dword [ebp - 0x54], eax
je 0x487742
mov eax, dword [ebp + 0xc]
call fcn.00487200
mov edx, dword [0x4a5b00]
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 0x487761
jmp 0x487777
inc ecx
add edx, 4
mov dword [0x4a5b00], ecx
cmp ecx, dword [ebp + 8]
je 0x4877df
mov eax, dword [edx]
cmp byte [eax], 0x2d
jne 0x487752
cmp byte [eax + 1], 0
je 0x487752
mov edi, dword [0x4a5b00]
mov dword [ebp - 0x54], edi
mov dword [0x4d9d60], ecx
jmp 0x487410
mov eax, dword [ebp + 0x10]
mov dword [0x4d9d30], 0
inc eax
mov dword [ebp + 0x10], eax
jmp 0x4873bd
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x48747d
mov eax, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
inc eax
mov esi, 1
mov dword [0x4a5b00], eax
mov dword [0x4d9d18], ebx
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp al, 0x3d
jne 0x487611
jmp 0x48761c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], eax
jmp 0x487653
mov eax, dword [ebp + 8]
mov dword [0x4d9d60], ecx
mov dword [ebp - 0x54], eax
jmp 0x487410
mov dword [0x4d9d50], eax
jmp 0x48745f
mov eax, dword [0x4a5b00]
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.00487320
mov ecx, dword [0x4d9d20]
add esp, 0x10
mov dword [ebp - 0x48], ecx
jmp 0x4876c2
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x487971
mov edx, dword [0x4a5b00]
inc edx
mov dword [0x4a5b00], edx
cmp byte [edi], 0
jne 0x4878c8
mov edi, dword [ebp - 0x3c]
cmp dword [edi + 4], 1
je 0x4879ec
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 [0x4d9d20], ebx
je 0x48788f
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 0x487a09
mov eax, dword [ecx + 0xc]
xor esi, esi
mov dword [edx], eax
jmp 0x487480
cmp dword [ebp - 0x54], edx
je 0x487742
mov ecx, dword [ebp - 0x54]
mov dword [0x4d9d50], ecx
jmp 0x487742
mov edi, dword [ebp - 0x48]
jmp 0x48761c
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4878fa
lea eax, [edi + 1]
mov dword [0x4d9d18], eax
jmp 0x487860
or esi, 0xffffffff
mov dword [0x4a5b00], eax
jmp 0x487480
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push eax
push str._s:_invalid_option_____c_n
jmp 0x4875b2
mov edi, dword [0x4a5b04]
test edi, edi
je 0x487860
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + edx*4 - 4]
cmp byte [eax + 1], 0x2d
je 0x487a62
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.00487320
add esp, 0x20
sub esp, 0xc
mov ebx, dword [0x4d9d20]
mov esi, 0x3f
push ebx
call sub.msvcrt.dll_strlen
add ebx, eax
add esp, 0x10
mov dword [0x4d9d20], ebx
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0xc]
mov dword [0x4a5b08], eax
jmp 0x487480
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x487c9f
mov eax, dword [0x4a5b04]
test eax, eax
je 0x4879c1
mov eax, dword [0x4a5b00]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + eax*4]
cmp byte [eax + 1], 0x2d
je 0x487b53
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.00487320
add esp, 0x20
mov ecx, dword [0x4a5b00]
mov esi, 0x3f
inc ecx
mov dword [0x4d9d20], 0x4d0540
mov dword [0x4a5b00], ecx
mov dword [0x4a5b08], 0
jmp 0x487480
cmp dword [ebp + 8], edx
jle 0x487a14
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x4d9d18], eax
lea eax, [edx + 1]
mov dword [0x4a5b00], eax
jmp 0x487860
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebx + 0xc]
jmp 0x487480
mov eax, dword [0x4a5b04]
test eax, eax
jne 0x487b75
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 [0x4d9d20], eax
mov eax, dword [edx + 0xc]
mov dword [0x4a5b08], eax
cmp byte [ecx], 0x3a
setne al
and eax, 0xff
lea esi, [eax + eax*4 + 0x3a]
jmp 0x487480
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.00487320
add esp, 0x10
jmp 0x487942
mov cl, byte [eax + 1]
cmp cl, 0x3b
jne 0x48753d
cmp byte [ebx + 1], 0
je 0x487c7e
mov eax, dword [0x4a5b00]
mov ebx, dword [ebp - 0x48]
inc eax
mov dword [0x4d9d18], ebx
mov dword [0x4a5b00], eax
mov ebx, dword [0x4d9d18]
mov dword [ebp - 0x48], ebx
mov dword [0x4d9d20], ebx
mov al, byte [ebx]
test al, al
setne byte [ebp - 0x3d]
jne 0x487c52
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x28], edi
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ecx]
test ebx, ebx
je 0x487d0b
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 0x487b14
add esi, 0x10
mov ebx, dword [esi]
test ebx, ebx
je 0x487bfd
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 0x487b06
sub esp, 0xc
push ebx
call sub.msvcrt.dll_strlen
add esp, 0x10
cmp eax, dword [ebp - 0x18]
je 0x487cfe
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x487bcb
mov dword [ebp - 0x20], 1
jmp 0x487b06
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.00487320
add esp, 0x10
jmp 0x4879c1
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.00487320
mov edi, dword [0x4d9d20]
add esp, 0x10
mov dword [ebp - 0x48], edi
jmp 0x487a21
mov edx, dword [0x4a5b00]
cmp edx, dword [ebp + 8]
je 0x487cd0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + edx*4]
mov dword [0x4d9d18], eax
lea eax, [edx + 1]
mov dword [0x4a5b00], eax
jmp 0x48756c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
jmp 0x487b06
cmp byte [edi], 0
je 0x487c46
mov ebx, dword [0x4a5b00]
mov dword [0x4d9d18], edi
inc ebx
mov dword [0x4a5b00], ebx
mov dword [0x4d9d20], 0
jmp 0x487480
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x487d04
mov eax, dword [0x4a5b04]
test eax, eax
jne 0x487e23
sub esp, 0xc
mov ebx, dword [0x4d9d20]
push ebx
call sub.msvcrt.dll_strlen
mov esi, dword [0x4a5b00]
add ebx, eax
inc esi
add esp, 0x10
mov dword [0x4a5b00], esi
mov esi, 0x3f
mov dword [0x4d9d20], ebx
jmp 0x487480
mov dword [0x4d9d18], 0
jmp 0x487bee
mov dword [ebp - 0x28], ebx
cmp al, 0x3d
je 0x487acd
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 0x487ad3
cmp al, 0x3d
jne 0x487c5d
jmp 0x487ad3
cmp edx, dword [ebp + 8]
je 0x487e58
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x4d9d18], eax
lea eax, [edx + 1]
mov dword [0x4a5b00], eax
jmp 0x487ab0
mov eax, dword [0x4a5b00]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + eax*4]
cmp byte [eax + 1], 0x2d
je 0x48797c
movsx edx, byte [ebp - 0xd]
mov eax, dword [ebp + 0x10]
call fcn.004871d0
test eax, eax
jne 0x4874ed
jmp 0x48797c
mov edx, dword [0x4a5b04]
test edx, edx
jne 0x487e01
mov edx, dword [ebp + 0x10]
mov dword [0x4a5b08], esi
cmp byte [edx], 0x3a
setne al
and eax, 0xff
lea ecx, [eax + eax*4 + 0x3a]
mov dword [ebp - 0x4c], ecx
jmp 0x48756c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp - 0x24]
test ebx, ebx
jne 0x487d1f
mov esi, 0x57
mov dword [0x4d9d20], 0
jmp 0x487480
cmp byte [ebp - 0x3d], 0
je 0x487dd4
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x487d83
mov edx, dword [0x4a5b04]
test edx, edx
je 0x487d5f
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.00487320
add esp, 0x10
sub esp, 0xc
mov ebx, dword [0x4d9d20]
mov esi, 0x3f
push ebx
call sub.msvcrt.dll_strlen
add esp, 0x10
add ebx, eax
mov dword [0x4d9d20], ebx
jmp 0x487480
mov eax, dword [ebp - 0x28]
inc eax
mov dword [0x4d9d18], 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 [0x4d9d20], eax
je 0x487dba
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 0x487e4d
mov eax, dword [ebx + 0xc]
xor esi, esi
mov dword [edx], eax
jmp 0x487480
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 1
jne 0x487d8c
mov edx, dword [0x4a5b00]
cmp dword [ebp + 8], edx
jle 0x487e9b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
mov dword [0x4d9d18], eax
lea eax, [edx + 1]
mov dword [0x4a5b00], eax
jmp 0x487d8c
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.00487320
add esp, 0x10
jmp 0x487cde
mov edx, dword [ebp + 0xc]
mov eax, dword [0x4a5b00]
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.00487320
add esp, 0x10
jmp 0x487c15
mov edi, dword [ebp - 0x24]
mov esi, dword [edi + 0xc]
jmp 0x487480
mov eax, dword [0x4a5b04]
test eax, eax
je 0x487e7e
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.00487320
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [0x4a5b08], esi
cmp byte [eax], 0x3a
setne al
and eax, 0xff
lea esi, [eax + eax*4 + 0x3a]
jmp 0x487480
mov eax, dword [0x4a5b04]
test eax, eax
je 0x487ec5
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.00487320
add esp, 0x10
sub esp, 0xc
mov ebx, dword [0x4d9d20]
push ebx
call sub.msvcrt.dll_strlen
mov edi, dword [ebp + 0x10]
add ebx, eax
mov dword [0x4d9d20], ebx
add esp, 0x10
cmp byte [edi], 0x3a
setne al
and eax, 0xff
lea esi, [eax + eax*4 + 0x3a]
jmp 0x487480