Function at 0x40b470
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 4]
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa8]
cmp byte [edx], 0x3a
je 0x40b934
mov ebx, dword [esp + 0xa0]
test ebx, ebx
mov eax, 0xffffffff
jle 0x40b709
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx]
test eax, eax
mov dword [ecx + 0xc], 0
jne 0x40b714
mov edi, dword [esp + 0xbc]
mov dword [edi], 1
mov eax, 1
mov edx, dword [esp + 0xbc]
mov dword [edx + 0x24], eax
mov dword [edx + 0x20], eax
mov ebp, dword [esp + 0xb8]
xor ebx, ebx
test ebp, ebp
mov esi, dword [esp + 0xa8]
mov dword [edx + 0x14], 0
je 0x40b724
mov ebx, 1
mov ebp, dword [esp + 0xbc]
mov dword [ebp + 0x1c], ebx
mov edx, dword [esp + 0xa8]
mov al, byte [edx]
cmp al, 0x2d
je 0x40b758
cmp al, 0x2b
je 0x40bbbe
xor edx, edx
test ebx, ebx
sete dl
mov ecx, dword [esp + 0xbc]
mov dword [ecx + 0x18], edx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0xa8], esi
mov dword [ebx + 0x10], 1
mov edi, dword [esp + 0xbc]
mov esi, dword [edi + 0x14]
test esi, esi
je 0x40b56a
cmp byte [esi], 0
jne 0x40b798
mov ebp, dword [esp + 0xbc]
mov edx, dword [esp + 0xbc]
mov esi, dword [ebp + 0x24]
mov ebp, dword [edx]
cmp esi, ebp
mov dword [esp + 0x1c], esi
jle 0x40b58c
mov dword [esp + 0x1c], ebp
mov dword [edx + 0x24], ebp
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 0x20]
cmp eax, ebp
mov dword [esp + 0x20], eax
jle 0x40b5ac
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x20], ebp
mov dword [edx + 0x20], ebp
mov edi, dword [esp + 0xbc]
mov ebx, dword [edi + 0x18]
mov dword [esp + 0x24], ebx
dec ebx
je 0x40b96c
cmp ebp, dword [esp + 0xa0]
je 0x40b944
mov eax, dword [esp + 0xa4]
mov esi, dword [eax + ebp*4]
cld
mov ecx, 3
mov edi, 0x410310
repe cmpsb byte [esi], byte es:[edi]
jne 0x40b6cc
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x20], ecx
lea eax, [ebp + 1]
je 0x40ba3f
cmp ecx, eax
je 0x40ba4f
mov ebp, dword [esp + 0xbc]
mov edi, dword [esp + 0x20]
cmp eax, ecx
mov dword [ebp], eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], eax
jle 0x40b692
cmp ecx, edi
jle 0x40b692
nop
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x1c]
sub ebp, dword [esp + 0x1c]
sub edi, dword [esp + 0x74]
cmp ebp, edi
jle 0x40bb83
xor esi, esi
cmp esi, edi
jge 0x40b67c
mov ebx, dword [esp + 0x70]
sub ebx, edi
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x74]
lea ecx, [esi + ebx]
mov edx, dword [esp + 0xa4]
mov ebp, dword [esp + 8]
mov ebx, dword [edx + ecx*4]
lea edx, [esi + ebp]
mov ebp, dword [esp + 0xa4]
inc esi
mov eax, dword [ebp + edx*4]
cmp esi, edi
mov dword [ebp + ecx*4], eax
mov dword [ebp + edx*4], ebx
jl 0x40b64c
sub dword [esp + 0x70], edi
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x70], ebp
jle 0x40b692
mov esi, dword [esp + 0x74]
cmp ebp, esi
jg 0x40b624
mov ebp, dword [esp + 0xbc]
mov eax, dword [ebp]
sub eax, dword [esp + 0x1c]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x20], ecx
mov esi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xbc]
mov dword [ebx + 0x24], esi
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x1c], esi
mov dword [ebx], edx
mov ebp, edx
nop
cmp ebp, dword [esp + 0xa0]
je 0x40b944
mov edi, dword [esp + 0xa4]
mov edx, dword [edi + ebp*4]
cmp byte [edx], 0x2d
je 0x40b767
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov eax, 0xffffffff
je 0x40b709
mov esi, dword [esp + 0xbc]
lea ecx, [ebp + 1]
mov dword [esi], ecx
mov dword [esi + 0xc], edx
mov eax, 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ecx + 0x10]
test esi, esi
jne 0x40b553
jmp 0x40b4d9
sub esp, 0xc
push str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
jne 0x40b505
mov ebp, dword [esp + 0xbc]
mov dword [ebp + 0x1c], ebx
mov edx, dword [esp + 0xa8]
mov al, byte [edx]
cmp al, 0x2d
jne 0x40b525
nop
mov esi, edx
inc esi
mov dword [ebp + 0x18], 2
jmp 0x40b53e
mov al, byte [edx + 1]
test al, al
je 0x40b6e8
mov ebp, dword [esp + 0xac]
xor ecx, ecx
test ebp, ebp
je 0x40b785
cmp al, 0x2d
jne 0x40b785
mov cl, 1
lea eax, [edx + ecx + 1]
mov edi, dword [esp + 0xbc]
mov dword [edi + 0x14], eax
mov esi, eax
lea esi, [esi]
mov ebx, dword [esp + 0xac]
test ebx, ebx
je 0x40bb1c
mov edx, dword [esp + 0xbc]
mov ecx, dword [edx]
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x18], ecx
mov edx, dword [ebp + ecx*4]
mov al, byte [edx + 1]
cmp al, 0x2d
je 0x40b7df
mov edi, dword [esp + 0xb4]
test edi, edi
je 0x40bb1c
cmp byte [edx + 2], 0
je 0x40bafe
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0xffffffff
mov al, byte [esi]
test al, al
mov ebp, esi
je 0x40b814
nop
cmp al, 0x3d
je 0x40b814
inc ebp
mov al, byte [ebp]
test al, al
jne 0x40b808
mov ebx, dword [esp + 0xac]
mov ecx, dword [ebx]
test ecx, ecx
mov dword [esp + 0x5c], 0
je 0x40bd2f
mov edx, ebp
sub edx, esi
mov dword [esp + 0x58], edx
lea esi, [esi]
push eax
push dword [esp + 0x5c]
push esi
push dword [ebx]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x40b892
mov edi, dword [ebx]
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp dword [esp + 0x58], ecx
je 0x40bfed
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40bc1b
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x40b88a
mov edi, dword [ebx + 4]
mov edx, dword [esp + 0x6c]
cmp dword [edx + 4], edi
je 0x40bf71
mov dword [esp + 0x64], 1
add ebx, 0x10
mov edx, dword [ebx]
inc dword [esp + 0x5c]
test edx, edx
jne 0x40b838
mov ebx, dword [esp + 0x64]
test ebx, ebx
jne 0x40bc63
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x40bd2f
mov edx, dword [esp + 0x18]
inc edx
mov ecx, dword [esp + 0xbc]
mov dword [ecx], edx
mov bl, byte [ebp]
test bl, bl
je 0x40bf90
mov ebx, dword [esp + 0x6c]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40c1fa
lea eax, [ebp + 1]
mov dword [ecx + 0xc], eax
xor eax, eax
mov edi, esi
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx + esi - 1]
mov esi, dword [esp + 0xb0]
mov ebp, dword [esp + 0xbc]
test esi, esi
mov dword [ebp + 0x14], ebx
je 0x40b919
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0xb0]
mov dword [edx], esi
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x40bf65
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0xc]
jmp 0x40b709
mov dword [esp + 0x88], 0
jmp 0x40b49b
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x20], ebp
je 0x40b95b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xbc]
mov dword [ecx], eax
add esp, 0x8c
pop ebx
pop esi
pop edi
mov eax, 0xffffffff
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x20], eax
je 0x40ba74
cmp eax, ebp
je 0x40ba88
mov edx, dword [esp + 0x20]
cmp ebp, eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], ebp
jle 0x40bcc0
cmp eax, edx
nop
jle 0x40bcc0
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x1c]
sub esi, dword [esp + 0x1c]
sub edi, dword [esp + 0x84]
cmp esi, edi
mov dword [esp + 0x7c], esi
jle 0x40bbd9
xor esi, esi
cmp esi, edi
jge 0x40ba19
mov eax, dword [esp + 0x80]
sub eax, edi
mov dword [esp + 0x78], eax
nop
mov eax, dword [esp + 0x84]
lea ecx, [esi + eax]
mov ebx, dword [esp + 0xa4]
mov edx, dword [ebx + ecx*4]
mov eax, dword [esp + 0x78]
mov dword [esp], edx
mov ebx, dword [esp + 0xa4]
lea edx, [esi + eax]
mov eax, dword [ebx + edx*4]
inc esi
mov ebx, dword [esp + 0xa4]
mov dword [ebx + ecx*4], eax
cmp esi, edi
mov ecx, dword [esp]
mov dword [ebx + edx*4], ecx
jl 0x40b9dc
sub dword [esp + 0x80], edi
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x80], ecx
jle 0x40bcc0
mov edx, dword [esp + 0x84]
cmp ecx, edx
jmp 0x40b9a0
mov edi, dword [esp + 0xbc]
mov dword [edi], eax
mov dword [esp + 0x20], eax
mov dword [edi + 0x20], eax
mov esi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xbc]
mov dword [ebx + 0x24], esi
mov edx, dword [esp + 0xa0]
mov ebp, edx
mov dword [esp + 0x1c], esi
mov dword [ebx], edx
jmp 0x40b6cc
cmp dword [esp + 0x20], ebp
je 0x40ba88
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x20], ebp
mov dword [edi + 0x20], ebp
cmp ebp, dword [esp + 0xa0]
jge 0x40baeb
mov esi, dword [esp + 0xa4]
mov eax, dword [esi + ebp*4]
cmp byte [eax], 0x2d
je 0x40bfca
lea eax, [ebp + 1]
mov ebp, dword [esp + 0xbc]
mov dword [ebp], eax
cmp eax, dword [esp + 0xa0]
jge 0x40bae9
mov ebx, dword [esp + 0xa4]
mov edx, dword [ebx + eax*4]
cmp byte [edx], 0x2d
mov ebp, eax
jne 0x40baa4
cmp byte [edx + 1], 0
jne 0x40baeb
mov ebp, eax
lea eax, [ebp + 1]
mov ebp, dword [esp + 0xbc]
mov dword [ebp], eax
cmp eax, dword [esp + 0xa0]
jl 0x40baba
mov ebp, eax
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x1c], ebp
mov dword [edx + 0x24], ebp
jmp 0x40b5c1
sub esp, 8
movsx eax, al
push eax
push dword [esp + 0xb4]
call sub.msvcrt.dll_strchr
add esp, 0x10
test eax, eax
je 0x40b7df
mov edi, dword [esp + 0xbc]
lea eax, [esi + 1]
mov dword [edi + 0x14], eax
mov bl, byte [esi]
sub esp, 8
movsx edi, bl
push edi
push dword [esp + 0xb4]
call sub.msvcrt.dll_strchr
add esp, 0x10
cmp byte [esi + 1], 0
jne 0x40bb50
mov esi, dword [esp + 0xbc]
inc dword [esi]
test eax, eax
je 0x40bce0
cmp bl, 0x3a
je 0x40bce0
cmp byte [eax], 0x57
je 0x40bdeb
mov dl, byte [eax + 1]
cmp dl, 0x3a
je 0x40bc2c
mov eax, edi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x40bbb1
mov ebx, dword [esp + 0x74]
lea ecx, [esi + ebx]
mov edx, dword [esp + 0xa4]
mov edi, dword [esp + 0x1c]
mov ebx, dword [edx + ecx*4]
lea edx, [esi + edi]
mov edi, dword [esp + 0xa4]
mov eax, dword [edi + edx*4]
mov dword [edi + ecx*4], eax
inc esi
mov dword [edi + edx*4], ebx
cmp esi, ebp
jl 0x40bb88
add dword [esp + 0x74], ebp
jmp 0x40b680
mov esi, dword [esp + 0xa8]
mov eax, dword [esp + 0xbc]
inc esi
mov dword [eax + 0x18], 0
jmp 0x40b53e
xor esi, esi
jmp 0x40bc05
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x1c]
lea ecx, [esi + edi]
lea edx, [esi + eax]
mov edi, dword [esp + 0xa4]
mov ebx, dword [edi + ecx*4]
mov eax, dword [edi + edx*4]
mov dword [edi + ecx*4], eax
inc esi
mov dword [edi + edx*4], ebx
cmp esi, dword [esp + 0x7c]
jl 0x40bbe0
mov esi, dword [esp + 0x7c]
add dword [esp + 0x84], esi
jmp 0x40ba20
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x60], edx
jmp 0x40b892
cmp byte [eax + 2], 0x3a
je 0x40c03b
mov ecx, dword [esp + 0xbc]
mov eax, dword [ecx + 0x14]
cmp byte [eax], 0
je 0x40c006
mov dword [ecx + 0xc], eax
inc dword [ecx]
mov edx, dword [esp + 0xbc]
mov eax, edi
mov dword [edx + 0x14], 0
jmp 0x40bb78
mov edi, dword [esp + 0x68]
test edi, edi
jne 0x40b8ab
mov ebp, dword [esp + 0x88]
test ebp, ebp
jne 0x40c2ef
xor eax, eax
mov edi, esi
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 0x18]
lea ecx, [ecx + esi - 1]
inc eax
mov ebp, dword [esp + 0xbc]
mov esi, dword [esp + 0xbc]
mov dword [ebp], eax
mov dword [esi + 0x14], ecx
mov dword [ebp + 8], 0
mov eax, 0x3f
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebp
sub eax, dword [esp + 0x1c]
add dword [esp + 0x20], eax
mov ebx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], ebp
jmp 0x40ba88
mov edx, dword [esp + 0x88]
test edx, edx
je 0x40bd1e
mov ebx, dword [esp + 0xbc]
mov ebp, dword [ebx + 0x1c]
test ebp, ebp
je 0x40bfd9
push edi
mov ecx, dword [esp + 0xa8]
push dword [ecx]
push str._s:_illegal_option_____c_n
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x40
push esi
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov edx, dword [esp + 0xbc]
mov eax, 0x3f
mov dword [edx + 8], edi
jmp 0x40bcb5
mov ebp, dword [esp + 0xb4]
test ebp, ebp
je 0x40bd6c
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xa4]
mov ebx, dword [ecx + edi*4]
cmp byte [ebx + 1], 0x2d
je 0x40bd6c
sub esp, 8
movsx eax, byte [esi]
push eax
push dword [esp + 0xb4]
call sub.msvcrt.dll_strchr
add esp, 0x10
test eax, eax
jne 0x40bb1c
mov edx, dword [esp + 0x88]
test edx, edx
je 0x40bdc5
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0xa4]
mov eax, dword [ecx + esi*4]
cmp byte [eax + 1], 0x2d
je 0x40c153
sub esp, 0xc
mov esi, dword [esp + 0xc8]
push dword [esi + 0x14]
movsx ebp, byte [eax]
push ebp
mov edx, dword [esp + 0xb8]
push dword [edx]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str._s:_unrecognized_option___c_s_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x20
mov edi, dword [esi]
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0xbc]
inc ecx
mov eax, 0x3f
mov dword [ebx + 0x14], 0x410360
mov dword [ebx], ecx
mov dword [ebx + 8], 0
jmp 0x40bcb5
mov dl, byte [eax + 1]
cmp dl, 0x3b
jne 0x40bb6d
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x40c065
mov dword [ebp + 0xc], eax
inc dword [ebp]
mov edx, dword [esp + 0xbc]
mov esi, dword [edx + 0xc]
mov dword [edx + 0x14], esi
mov dl, byte [esi]
test dl, dl
mov byte [esp + 0x2b], dl
je 0x40be5c
cmp dl, 0x3d
jmp 0x40be5a
inc esi
mov cl, byte [esi]
test cl, cl
mov byte [esp + 0x2b], cl
je 0x40be5c
cmp cl, 0x3d
jne 0x40be4c
mov ebx, dword [esp + 0xac]
mov edi, dword [ebx]
xor ebp, ebp
test edi, edi
je 0x40c13b
mov edx, dword [esp + 0xbc]
mov eax, dword [edx + 0x14]
mov ecx, esi
sub ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], ecx
push eax
push dword [esp + 0x44]
push dword [esp + 0x1c]
push dword [ebx]
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
jne 0x40bec7
mov edi, dword [ebx]
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp dword [esp + 0x40], ecx
je 0x40c281
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40c0ab
mov dword [esp + 0x48], 1
add ebx, 0x10
mov edx, dword [ebx]
inc ebp
test edx, edx
jne 0x40be85
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x40bee5
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x40c423
mov edx, dword [esp + 0x50]
test edx, edx
je 0x40c13b
cmp byte [esp + 0x2b], 0
je 0x40c181
mov ebp, dword [esp + 0x50]
mov ebx, dword [ebp + 4]
test ebx, ebx
je 0x40c3b6
lea edi, [esi + 1]
mov ecx, dword [esp + 0xbc]
mov dword [ecx + 0xc], edi
mov ebp, dword [esp + 0xbc]
mov edx, dword [ebp + 0x14]
xor eax, eax
cld
mov ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
mov ebp, dword [esp + 0xb0]
lea ebx, [ecx + edx - 1]
mov esi, dword [esp + 0xbc]
test ebp, ebp
mov dword [esi + 0x14], ebx
je 0x40bf56
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0xb0]
mov dword [esi], ebx
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 8]
test edx, edx
je 0x40c1bc
mov edi, dword [ecx + 0xc]
xor eax, eax
mov dword [edx], edi
jmp 0x40b709
mov eax, dword [ebx + 8]
cmp dword [edx + 8], eax
jne 0x40b88a
mov ecx, dword [ebx + 0xc]
cmp dword [edx + 0xc], ecx
jne 0x40b88a
jmp 0x40b892
mov ebp, dword [esp + 0x6c]
cmp dword [ebp + 4], 1
jne 0x40b8e5
cmp edx, dword [esp + 0xa0]
jge 0x40c0b8
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0xa4]
add edi, 2
mov ecx, dword [esp + 0xbc]
mov eax, dword [ebx + edx*4]
mov dword [ecx], edi
jmp 0x40b8e2
cmp byte [eax + 1], 0
je 0x40baa4
jmp 0x40baeb
push edi
mov eax, dword [esp + 0xa8]
push dword [eax]
push str._s:_invalid_option_____c_n
jmp 0x40bd0c
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], 1
jmp 0x40b89f
mov ebp, dword [esp + 0xbc]
mov edx, dword [ebp]
cmp edx, dword [esp + 0xa0]
je 0x40c107
mov ebx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xbc]
lea ebp, [edx + 1]
mov eax, dword [ebx + edx*4]
mov dword [ecx], ebp
mov dword [ecx + 0xc], eax
jmp 0x40bc4e
mov ebp, dword [esp + 0xbc]
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x40c09b
mov dword [ebp + 0xc], eax
inc dword [ebp]
mov eax, dword [esp + 0xbc]
mov dword [eax + 0x14], 0
mov eax, edi
jmp 0x40bb78
mov ebp, dword [esp + 0xbc]
mov edx, dword [ebp]
cmp edx, dword [esp + 0xa0]
je 0x40c1c8
mov ebp, dword [esp + 0xa4]
mov ecx, dword [esp + 0xbc]
lea ebx, [edx + 1]
mov eax, dword [ebp + edx*4]
mov dword [ecx], ebx
mov dword [ecx + 0xc], eax
jmp 0x40be30
mov edx, dword [esp + 0xbc]
mov dword [edx + 0xc], 0
jmp 0x40c050
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebp
jmp 0x40bec7
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x40c296
mov edi, esi
mov al, bl
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx + esi - 1]
mov ebx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x6c]
mov dword [ebx + 0x14], edx
mov edi, dword [ecx + 0xc]
mov dword [ebx + 8], edi
mov ebp, dword [esp + 0xa8]
cmp byte [ebp], 0x3a
setne cl
movzx edx, cl
lea eax, [edx + edx*4 + 0x3a]
jmp 0x40b709
mov esi, dword [esp + 0x88]
test esi, esi
jne 0x40c2c9
mov esi, dword [esp + 0xbc]
mov dword [esi + 8], edi
mov ebp, dword [esp + 0xa8]
mov al, byte [ebp]
cmp al, 0x3a
setne dl
movzx edi, dl
lea edi, [edi + edi*4 + 0x3a]
jmp 0x40bc4e
mov ecx, dword [esp + 0xbc]
mov eax, 0x57
mov dword [ecx + 0x14], 0
jmp 0x40b709
mov ebx, dword [esp + 0xbc]
push dword [ebx + 0x14]
push dword [ecx]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push str._s:_unrecognized_option_____s_n
add ecx, 0x40
push ecx
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov ebp, dword [ebx]
mov dword [esp + 0x18], ebp
jmp 0x40bdc5
mov ebx, dword [esp + 0x50]
cmp dword [ebx + 4], 1
jne 0x40bf18
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx]
cmp edx, dword [esp + 0xa0]
jge 0x40c332
mov esi, dword [esp + 0xa4]
lea edi, [edx + 1]
mov ebp, dword [esi + edx*4]
mov dword [ecx], edi
mov dword [ecx + 0xc], ebp
jmp 0x40bf18
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx + 0xc]
jmp 0x40b709
mov ebx, dword [esp + 0x88]
test ebx, ebx
jne 0x40c390
mov esi, dword [esp + 0xbc]
mov dword [esi + 8], edi
mov edi, dword [esp + 0xa8]
cmp byte [edi], 0x3a
setne bl
lea edx, [ebx + ebx*4 + 0x3a]
movsx eax, dl
jmp 0x40b709
mov ebp, dword [esp + 0x88]
test ebp, ebp
je 0x40c251
mov edi, dword [esp + 0xa4]
mov eax, dword [edi + edx*4 - 4]
cmp byte [eax + 1], 0x2d
je 0x40c3f5
sub esp, 0xc
mov ecx, dword [esp + 0x78]
push dword [ecx]
movsx ebp, byte [eax]
push ebp
mov ebx, dword [esp + 0xb8]
push dword [ebx]
mov edi, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option___c_s_doesnt_allow_an_argument_n
add edi, 0x40
push edi
call sub.msvcrt.dll_fprintf
add esp, 0x20
mov edx, dword [esp + 0xbc]
mov esi, dword [edx + 0x14]
mov edi, esi
xor eax, eax
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x6c]
lea edi, [ecx + esi - 1]
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0xbc]
mov dword [esi + 8], eax
mov eax, 0x3f
mov dword [esi + 0x14], edi
jmp 0x40bcb5
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], 1
jmp 0x40bed1
mov eax, dword [esp + 0xa4]
push dword [eax + edx*4 - 4]
push dword [eax]
mov esi, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option___s_requires_an_argument_n
add esi, 0x40
push esi
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov edx, dword [esp + 0xbc]
mov esi, dword [edx + 0x14]
jmp 0x40c0c7
push edi
mov ecx, dword [esp + 0xa8]
push dword [ecx]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option_requires_an_argument_____c_n
add ebx, 0x40
push ebx
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x40c116
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0xa4]
push dword [ebx + edi*4]
push dword [ebx]
mov edx, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option___s_is_ambiguous_n
add edx, 0x40
push edx
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov ecx, dword [esp + 0xbc]
mov esi, dword [ecx]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 0x14]
jmp 0x40bc7e
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x40c360
mov ebx, dword [esp + 0xa4]
push dword [ebx + edx*4 - 4]
push dword [ebx]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option___s_requires_an_argument_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov ebp, dword [esp + 0xbc]
mov ebx, dword [ebp + 0x14]
cld
mov ecx, 0xffffffff
mov edi, ebx
mov al, byte [esp + 0x2b]
repne scasb al, byte es:[edi]
not ecx
lea esi, [ecx + ebx - 1]
mov dword [ebp + 0x14], esi
mov edx, dword [esp + 0xa8]
cmp byte [edx], 0x3a
jmp 0x40c0f8
push edi
mov eax, dword [esp + 0xa8]
push dword [eax]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option_requires_an_argument_____c_n
add ecx, 0x40
push ecx
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x40c1d7
mov esi, dword [esp + 0x88]
test esi, esi
jne 0x40c45a
mov edx, dword [esp + 0xbc]
mov esi, dword [edx + 0x14]
xor eax, eax
cld
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea ecx, [ecx + esi - 1]
mov ebp, dword [esp + 0xbc]
mov eax, 0x3f
mov dword [ebp + 0x14], ecx
jmp 0x40bcb5
mov eax, dword [esp + 0x6c]
push dword [eax]
push dword [edi]
mov esi, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option_____s_doesnt_allow_an_argument_n
add esi, 0x40
push esi
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov ecx, dword [esp + 0xbc]
mov esi, dword [ecx + 0x14]
jmp 0x40c251
mov esi, dword [esp + 0x88]
test esi, esi
jne 0x40c484
mov ebp, dword [esp + 0xbc]
mov esi, dword [ebp + 0x14]
xor eax, eax
cld
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx + esi - 1]
inc dword [ebp]
mov eax, 0x3f
mov dword [ebp + 0x14], ebx
jmp 0x40bcb5
mov ebx, dword [esp + 0x50]
push dword [ebx]
mov edx, dword [esp + 0xa8]
push dword [edx]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option___W__s_doesnt_allow_an_argument_n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x40c3c5
mov edx, dword [esp + 0xbc]
mov edi, dword [esp + 0xa4]
mov eax, dword [edx]
push dword [edi + eax*4]
push dword [edi]
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push str._s:_option___W__s_is_ambiguous_n
add ecx, 0x40
push ecx
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x40c42e