Function at 0x496ea0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [0x4bb68c]
mov dword [0x4fc768], 0
test eax, eax
jne 0x497110
mov dword [0x4bb68c], 1
mov eax, 1
mov dword [esp], str.POSIXLY_CORRECT
mov dword [0x4fc76c], eax
mov dword [0x4fc770], eax
mov dword [0x4fc77c], 0
call sub.msvcrt.dll_getenv
mov edi, dword [esp + 0x78]
mov dword [0x4fc774], eax
movzx edx, byte [edi]
cmp dl, 0x2d
je 0x497380
cmp dl, 0x2b
je 0x497362
test eax, eax
sete al
movzx eax, al
mov dword [0x4fc778], eax
mov dword [0x4fc764], 1
mov ebp, dword [0x4fc77c]
test ebp, ebp
je 0x497123
movzx eax, byte [ebp]
test al, al
mov byte [esp + 0x2c], al
je 0x497123
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4971e0
mov eax, dword [0x4bb68c]
lea edi, [eax*4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x74]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x3c], eax
movzx eax, byte [eax + 1]
cmp al, 0x2d
mov byte [esp + 0x43], al
je 0x496fc2
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4971e0
mov eax, dword [esp + 0x3c]
cmp byte [eax + 2], 0
jne 0x496fc2
mov eax, dword [esp + 0x78]
movzx eax, byte [eax]
test al, al
je 0x496fc2
movzx ecx, byte [esp + 0x43]
cmp cl, al
je 0x4975c4
mov edx, dword [esp + 0x78]
mov ebx, ecx
jmp 0x496fb8
cmp bl, cl
je 0x4975c4
add edx, 1
movzx ecx, byte [edx]
test cl, cl
jne 0x496fb0
movzx eax, byte [esp + 0x2c]
mov esi, ebp
cmp al, 0x3d
je 0x496fe1
test al, al
jne 0x496fd7
jmp 0x496fe1
cmp al, 0x3d
je 0x496fe1
add esi, 1
movzx eax, byte [esi]
test al, al
jne 0x496fd3
mov eax, dword [esp + 0x7c]
mov edi, dword [eax]
test edi, edi
je 0x497507
mov eax, esi
xor ecx, ecx
mov dword [esp + 0x28], ebp
sub eax, ebp
mov dword [esp + 0x4c], esi
mov ebp, edi
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x48], 0xffffffff
mov esi, ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov edi, eax
jmp 0x497035
mov dword [esp + 0x34], 1
add ebx, 0x10
mov ebp, dword [ebx]
add esi, 1
test ebp, ebp
je 0x497080
mov eax, dword [esp + 0x28]
mov dword [esp + 8], edi
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x497029
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
cmp eax, edi
je 0x497480
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x497021
mov dword [esp + 0x30], ebx
add ebx, 0x10
mov ebp, dword [ebx]
mov dword [esp + 0x48], esi
add esi, 1
test ebp, ebp
jne 0x497035
lea esi, [esi]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
test eax, eax
je 0x497ad3
mov eax, dword [0x4bb688]
test eax, eax
je 0x4970d6
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 4], str._s:_option___s_is_ambiguous_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x4bb68c]
mov ebp, dword [0x4fc77c]
mov dword [esp + 0x38], eax
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
add eax, ebp
mov dword [0x4fc77c], eax
mov eax, dword [esp + 0x38]
mov ebx, 0x3f
mov dword [0x4bb684], 0
add eax, 1
mov dword [0x4bb68c], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0x4fc764]
test edx, edx
je 0x496ecd
jmp 0x496f22
mov eax, dword [0x4bb68c]
cmp dword [0x4fc76c], eax
jle 0x497135
mov dword [0x4fc76c], eax
cmp eax, dword [0x4fc770]
jge 0x497142
mov dword [0x4fc770], eax
mov ebx, dword [0x4fc778]
cmp ebx, 1
je 0x4972c0
cmp dword [esp + 0x70], eax
je 0x497334
mov edi, dword [esp + 0x74]
mov ecx, 3
mov ebp, dword [edi + eax*4]
mov edi, 0x4f9804
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
seta cl
mov esi, ecx
setb cl
mov edx, esi
cmp dl, cl
jne 0x497290
mov edx, dword [0x4fc770]
mov ecx, dword [0x4fc76c]
add eax, 1
mov dword [0x4bb68c], eax
cmp edx, ecx
je 0x4974e5
cmp eax, ecx
je 0x4971b1
mov eax, dword [esp + 0x74]
call fcn.00496de0
mov edx, dword [0x4fc770]
cmp dword [esp + 0x70], edx
mov eax, dword [esp + 0x70]
mov dword [0x4fc76c], eax
mov dword [0x4bb68c], eax
jne 0x49734d
add esp, 0x5c
mov ebx, 0xffffffff
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x78]
lea esi, [ebp + 1]
movsx ebx, byte [esp + 0x2c]
mov dword [0x4fc77c], esi
movzx eax, byte [eax]
test al, al
je 0x497222
movzx ecx, byte [esp + 0x2c]
cmp al, cl
mov eax, dword [esp + 0x78]
jne 0x497218
jmp 0x4973b0
cmp dl, cl
je 0x4973b0
add eax, 1
movzx edx, byte [eax]
test dl, dl
jne 0x497210
cmp byte [ebp + 1], 0
jne 0x49723e
mov edx, 1
xor eax, eax
add dword [0x4bb68c], 1
test dl, dl
je 0x497420
mov eax, dword [0x4bb688]
test eax, eax
je 0x49727a
mov eax, dword [0x4fc774]
mov dword [esp + 0xc], ebx
test eax, eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 8], eax
je 0x4976b3
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str._s:_illegal_option_____c_n
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [0x4bb684], ebx
add esp, 0x5c
mov ebx, 0x3f
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebp], 0x2d
je 0x4973e0
test ebx, ebx
je 0x4971c9
add eax, 1
mov dword [0x4fc768], ebp
mov ebx, 1
mov dword [0x4bb68c], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0x4fc76c]
cmp dword [0x4fc770], edx
je 0x4975b0
cmp eax, edx
je 0x4972e5
mov eax, dword [esp + 0x74]
call fcn.00496de0
mov edx, dword [0x4bb68c]
cmp dword [esp + 0x70], edx
mov eax, edx
jle 0x497324
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
jmp 0x497311
add edx, 1
cmp esi, edx
mov dword [0x4bb68c], edx
je 0x4973d0
mov eax, dword [ecx + edx*4]
cmp byte [eax], 0x2d
jne 0x497300
cmp byte [eax + 1], 0
je 0x497300
mov eax, dword [0x4bb68c]
mov dword [0x4fc76c], edx
cmp dword [esp + 0x70], eax
jne 0x49715b
mov eax, dword [0x4fc76c]
mov edx, dword [0x4fc770]
mov dword [esp + 0x70], eax
cmp dword [esp + 0x70], edx
je 0x4971c9
mov ebx, 0xffffffff
mov dword [0x4bb68c], edx
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x4fc778], 0
add dword [esp + 0x78], 1
jmp 0x496f18
mov dword [0x4fc778], 2
add dword [esp + 0x78], 1
jmp 0x496f18
movsx ebx, byte [esp + 0x2c]
lea esi, [ebp + 1]
mov eax, dword [esp + 0x78]
mov dword [0x4fc77c], esi
lea esi, [esi]
lea edi, [edi]
test eax, eax
sete dl
cmp byte [esp + 0x2c], 0x3a
sete cl
or edx, ecx
cmp byte [ebp + 1], 0
je 0x49722f
jmp 0x497236
mov eax, dword [esp + 0x70]
mov dword [0x4fc76c], edx
jmp 0x49732a
movzx ecx, byte [ebp + 1]
test cl, cl
je 0x49729a
mov eax, dword [esp + 0x7c]
test eax, eax
setne bl
xor eax, eax
cmp cl, 0x2d
sete al
and eax, ebx
lea ebp, [ebp + eax + 1]
movzx eax, byte [ebp]
mov dword [0x4fc77c], ebp
mov byte [esp + 0x2c], al
jmp 0x496f40
cmp byte [eax], 0x57
movzx edx, byte [eax + 1]
je 0x4975d7
cmp dl, 0x3a
jne 0x4972b5
cmp byte [eax + 2], 0x3a
je 0x497788
cmp byte [ebp + 1], 0
jne 0x49774a
mov eax, dword [0x4bb68c]
cmp dword [esp + 0x70], eax
je 0x4978b0
mov edi, dword [esp + 0x74]
lea edx, [eax + 1]
mov dword [0x4bb68c], edx
mov eax, dword [edi + eax*4]
mov dword [0x4fc768], eax
mov dword [0x4fc77c], 0
jmp 0x4972b5
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
add eax, 1
mov dword [0x4bb68c], eax
cmp byte [esi], 0
jne 0x4974f1
cmp dword [ebx + 4], 1
je 0x49775c
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x80]
add eax, ebp
mov dword [0x4fc77c], eax
test edx, edx
je 0x4974ce
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
mov dword [eax], edi
mov eax, dword [ebx + 8]
test eax, eax
je 0x49779d
mov edx, dword [ebx + 0xc]
xor ebx, ebx
mov dword [eax], edx
jmp 0x4972b5
mov dword [0x4fc770], eax
mov edx, eax
jmp 0x4971b1
mov edi, dword [ebx + 4]
test edi, edi
je 0x4976d0
add esi, 1
mov dword [0x4fc768], esi
jmp 0x4974a7
cmp byte [esp + 0x43], 0x2d
je 0x497549
mov eax, dword [esp + 0x84]
test eax, eax
je 0x497549
mov eax, dword [esp + 0x78]
movzx eax, byte [eax]
test al, al
je 0x497549
movzx ebx, byte [esp + 0x2c]
cmp al, bl
je 0x497394
mov edx, dword [esp + 0x78]
jmp 0x49753f
cmp cl, bl
je 0x4975c4
add edx, 1
movzx ecx, byte [edx]
test cl, cl
jne 0x497537
mov eax, dword [0x4bb688]
test eax, eax
je 0x497597
cmp byte [esp + 0x43], 0x2d
je 0x49795c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], ebp
movsx eax, byte [eax]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 4], str._s:_unrecognized_option___c_s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x4bb68c]
mov dword [esp + 0x38], eax
mov dword [0x4fc77c], 0x4f98f0
jmp 0x4970e5
cmp eax, edx
je 0x4972e5
mov dword [0x4fc770], eax
mov edx, eax
jmp 0x4972e5
lea esi, [ebp + 1]
movsx ebx, byte [esp + 0x2c]
mov dword [0x4fc77c], esi
jmp 0x4971f9
cmp dl, 0x3b
jne 0x49742d
cmp byte [ebp + 1], 0
je 0x497859
add dword [0x4bb68c], 1
mov dword [0x4fc768], esi
movzx ebx, byte [esi]
mov dword [0x4fc77c], esi
mov edi, esi
cmp bl, 0x3d
je 0x49761f
test bl, bl
jne 0x497615
jmp 0x49761f
cmp bl, 0x3d
je 0x49761f
add edi, 1
movzx ebx, byte [edi]
test bl, bl
jne 0x497610
mov eax, dword [esp + 0x7c]
mov ebp, dword [eax]
test ebp, ebp
je 0x497a41
mov eax, edi
xor ecx, ecx
mov dword [esp + 0x28], esi
sub eax, esi
mov byte [esp + 0x38], bl
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov edi, ecx
mov dword [esp + 0x2c], 0
mov esi, eax
mov ebx, dword [esp + 0x7c]
jmp 0x497679
mov dword [esp + 0x30], 1
add ebx, 0x10
mov ebp, dword [ebx]
add edi, 1
test ebp, ebp
je 0x4977a5
mov eax, dword [esp + 0x28]
mov dword [esp + 8], esi
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x497669
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
cmp eax, esi
je 0x4978d8
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x497661
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], ebx
jmp 0x497669
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str._s:_invalid_option_____c_n
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x49727a
mov esi, dword [0x4bb688]
test esi, esi
je 0x4974a7
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x44]
mov eax, dword [eax + edi]
cmp byte [eax + 1], 0x2d
je 0x497883
mov edx, dword [ebx]
mov dword [esp + 0x10], edx
movsx eax, byte [eax]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 4], str._s:_option___c_s_doesnt_allow_an_argument_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov esi, dword [0x4fc77c]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add esi, eax
mov eax, dword [ebx + 0xc]
mov ebx, 0x3f
mov dword [0x4fc77c], esi
mov dword [0x4bb684], eax
jmp 0x4972b5
mov dword [0x4fc768], esi
add dword [0x4bb68c], 1
jmp 0x49746e
cmp dword [esp + 0x70], eax
jle 0x49781d
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x44]
add eax, 2
mov dword [0x4bb68c], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax + edi + 4]
mov dword [0x4fc768], eax
jmp 0x4974a7
cmp byte [ebp + 1], 0
jne 0x49774a
mov dword [0x4fc768], 0
jmp 0x49746e
mov ebx, dword [ebx + 0xc]
jmp 0x4972b5
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx ebx, byte [esp + 0x38]
mov edi, dword [esp + 0x3c]
test ebp, ebp
je 0x497aef
mov ecx, dword [0x4bb688]
test ecx, ecx
je 0x4977fc
mov edi, dword [esp + 0x74]
mov eax, dword [0x4bb68c]
mov eax, dword [edi + eax*4]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov dword [esp + 4], str._s:_option___W__s_is_ambiguous_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov esi, dword [0x4fc77c]
mov dword [esp], esi
mov ebx, 0x3f
call sub.msvcrt.dll_strlen
add esi, eax
add dword [0x4bb68c], 1
mov dword [0x4fc77c], esi
jmp 0x4972b5
mov ecx, dword [0x4bb688]
test ecx, ecx
jne 0x497990
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
add eax, ebp
mov dword [0x4fc77c], eax
mov eax, dword [ebx + 0xc]
mov dword [0x4bb684], eax
mov eax, dword [esp + 0x78]
cmp byte [eax], 0x3a
jne 0x497280
mov ebx, 0x3a
jmp 0x4972b5
mov eax, dword [0x4bb68c]
cmp dword [esp + 0x70], eax
je 0x4979cc
mov edi, dword [esp + 0x74]
lea edx, [eax + 1]
mov dword [0x4bb68c], edx
mov esi, dword [edi + eax*4]
mov dword [0x4fc768], esi
jmp 0x4975f7
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 4], str._s:_option_____s_doesnt_allow_an_argument_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x497722
mov eax, dword [0x4bb688]
test eax, eax
jne 0x497a16
mov eax, dword [esp + 0x78]
mov dword [0x4bb684], ebx
xor ebx, ebx
cmp byte [eax], 0x3a
setne bl
lea ebx, [ebx + ebx*4 + 0x3a]
jmp 0x49746e
mov dword [esp + 0x7c], ebx
movzx ebx, byte [esp + 0x38]
mov ebp, edi
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
test bl, bl
mov eax, dword [esp + 0x7c]
je 0x497a55
cmp dword [eax + 4], 0
jne 0x497abc
cmp dword [0x4bb688], 0
je 0x497936
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 4], str._s:_option___W__s_doesnt_allow_an_argument_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov edx, dword [0x4fc77c]
xor eax, eax
or ecx, 0xffffffff
mov ebx, 0x3f
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea eax, [edx + eax - 1]
mov dword [0x4fc77c], eax
jmp 0x4972b5
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], ebp
mov eax, dword [eax]
mov dword [esp + 4], str._s:_unrecognized_option_____s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x4bb68c]
mov dword [esp + 0x38], eax
jmp 0x497597
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x44]
mov eax, dword [eax + edi]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 4], str._s:_option___s_requires_an_argument_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebp, dword [0x4fc77c]
jmp 0x49782b
mov eax, dword [0x4bb688]
test eax, eax
je 0x4979fb
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
mov eax, dword [eax]
mov dword [esp + 4], str._s:_option_requires_an_argument_____c_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x78]
mov dword [0x4bb684], ebx
xor ebx, ebx
cmp byte [eax], 0x3a
setne bl
lea ebx, [ebx + ebx*4 + 0x3a]
jmp 0x4972b5
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
mov eax, dword [eax]
mov dword [esp + 4], str._s:_option_requires_an_argument_____c_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4978bd
mov dword [0x4fc77c], 0
mov ebx, 0x57
jmp 0x4972b5
cmp dword [eax + 4], 1
je 0x497a9a
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edx, dword [esp + 0x80]
add esi, eax
mov dword [0x4fc77c], esi
test edx, edx
je 0x497a7f
mov eax, dword [esp + 0x80]
mov dword [eax], ebp
mov eax, dword [esp + 0x7c]
mov eax, dword [eax + 8]
test eax, eax
je 0x497ac7
mov edi, dword [esp + 0x7c]
xor ebx, ebx
mov edx, dword [edi + 0xc]
mov dword [eax], edx
jmp 0x4972b5
mov eax, dword [0x4bb68c]
cmp dword [esp + 0x70], eax
jle 0x497b0d
mov edi, dword [esp + 0x74]
lea edx, [eax + 1]
mov dword [0x4bb68c], edx
mov eax, dword [edi + eax*4]
mov dword [0x4fc768], eax
jmp 0x497a5b
add edi, 1
mov dword [0x4fc768], edi
jmp 0x497a5b
mov eax, dword [esp + 0x7c]
mov ebx, dword [eax + 0xc]
jmp 0x4972b5
cmp dword [esp + 0x30], 0
je 0x497507
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
jmp 0x49748c
cmp dword [esp + 0x2c], 0
je 0x497a41
mov eax, dword [esp + 0x34]
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x7c], eax
jmp 0x4978eb
cmp dword [0x4bb688], 0
je 0x497b40
mov edi, dword [esp + 0x74]
mov eax, dword [edi + eax*4 - 4]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov dword [esp + 4], str._s:_option___s_requires_an_argument_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov edx, dword [0x4fc77c]
xor eax, eax
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea eax, [edx + eax - 1]
mov dword [0x4fc77c], eax
mov eax, dword [esp + 0x78]
cmp byte [eax], 0x3a
jne 0x497280
jmp 0x49784f