Function at 0x61005980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp], 0
call fcn.610053a0
mov dword [esp], sym.cygwin1.dll___cygwin_user_data
call fcn.61004f70
sub esp, 4
call fcn.610551c0
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.61023ec0
mov eax, dword [0x610e90bc]
mov dword [esp], eax
call fcn.6109add0
mov eax, dword [0x610e90c0]
mov dword [esp], eax
call fcn.6109aee0
mov eax, dword [0x610e9098]
test eax, eax
je 0x61005a10
mov edx, dword [0x610edacc]
mov eax, dword [edx + 0x48]
test eax, eax
jne 0x610059f6
mov eax, dword [edx + 0x20]
mov dword [esp + 4], eax
lea eax, [edx + 0x4c]
mov dword [esp], eax
call sym.cygwin1.dll__longjmp
mov eax, dword [edx + 0x120]
mov dword fs:[4], eax
mov eax, dword [edx + 0x11c]
mov dword fs:[8], eax
jmp 0x610059e4
call fcn.6109b640
mov eax, dword [0x610e9098]
test eax, eax
jne 0x610059d7
mov eax, dword [0x610eda9c]
mov dword [esp + 4], eax
mov eax, dword [0x610edaa0]
mov dword [esp], eax
call fcn.61069d70
mov eax, dword [0x611103e4]
sub esp, 8
test eax, eax
je 0x61005d93
call fcn.6101cea0
call fcn.610a5c10
call fcn.61089fb0
call fcn.610a3e40
mov edx, dword [sym.cygwin1.dll___argc]
test edx, edx
je 0x61005c84
mov dword [0x61110008], edx
mov esi, dword [0x610e9068]
test esi, esi
je 0x61005aa6
xor ebx, ebx
mov esi, 0x610e9060
lea esi, [esi]
mov dword [esp + 8], sym.cygwin1.dll___cygwin_user_data
mov eax, dword [sym.cygwin1.dll___argv]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [esi + ebx*4 + 8]
inc ebx
cmp ebx, 1
ja 0x61005aa6
mov edx, dword [sym.cygwin1.dll___argc]
jmp 0x61005a80
mov eax, dword [0x610ed768]
add eax, 0x18c
mov dword [esp], eax
call fcn.6101d290
mov eax, dword [sym.cygwin1.dll___argv]
mov ebx, dword [eax]
test ebx, ebx
jne 0x61005c59
mov eax, dword [eax]
mov dword [sym.cygwin1.dll___progname], eax
mov edx, dword [sym.cygwin1.dll___progname]
test edx, edx
je 0x61005b27
xor ecx, ecx
mov esi, edx
mov eax, ecx
mov ah, al
mov al, byte [esi]
cmp al, ah
je 0x61005aed
inc esi
test al, al
jne 0x61005ae0
xor esi, esi
mov eax, esi
lea esi, [eax - 4]
mov ecx, eax
cmp esi, edx
jbe 0x61005b27
mov edi, 0x61005966
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61005b12
xor al, byte [eax + 0x610ef1e4]
cmp al, byte [edi - 1]
jne 0x61005b1d
test al, al
jne 0x61005b03
mov eax, 1
jmp 0x61005b1f
xor eax, eax
test eax, eax
je 0x61005b27
mov byte [ecx - 4], 0
cmp byte [section..bss], 0
je 0x61005b87
mov ecx, dword [0x610eea1c]
test ecx, ecx
jne 0x61005b87
cmp byte [0x61110001], 0
mov ebx, dword [sym.cygwin1.dll___progname]
je 0x61005b7c
movzx eax, byte [ebx]
mov ecx, ebx
test al, al
je 0x61005b7c
cmp al, 0x20
je 0x61005b7c
mov dl, al
cmp dl, 0x2f
je 0x61005c4f
cmp dl, 0x5c
lea eax, [ecx + 1]
je 0x61005c4f
mov ecx, eax
movzx eax, byte [eax]
test al, al
mov dl, al
je 0x61005b7c
cmp al, 0x20
jne 0x61005b58
mov dword [esp], ebx
call fcn.6102f8d0
sub esp, 4
mov dword [esp], 0x610edaf0
mov edx, 1
mov dword [0x61110014], edx
call fcn.6101c840
mov eax, dword [0x610e9070]
test eax, eax
je 0x61005bd4
mov ebx, 2
mov esi, 0x610e9060
mov dword [esp + 8], sym.cygwin1.dll___cygwin_user_data
mov eax, dword [sym.cygwin1.dll___argv]
mov dword [esp + 4], eax
mov eax, dword [sym.cygwin1.dll___argc]
mov dword [esp], eax
call dword [esi + ebx*4 + 8]
inc ebx
cmp ebx, 3
jbe 0x61005bb1
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x61005c20
mov eax, dword [0x610eea1c]
test eax, eax
je 0x61005bf9
call sym.cygwin1.dll___errno
mov dword [eax], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [0x611103e0], 0
call sym.cygwin1.dll___errno
mov dword [eax], 0
call fcn.61088d70
mov edx, dword [0x610e9048]
test edx, edx
je 0x61005bf1
jmp 0x61005dc2
mov dword [esp + 0xc], 0x6100596b
mov eax, dword [0x610e9048]
mov dword [esp + 8], 0x6100594f
mov dword [esp + 4], 0x40
mov dword [esp + 0x10], eax
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61005bdd
lea ebx, [ecx + 1]
mov eax, ebx
jmp 0x61005b6d
mov dword [esp + 4], 0x2f
mov eax, dword [eax]
mov dword [esp], eax
call sym.cygwin1.dll__strrchr
mov dword [sym.cygwin1.dll___progname], eax
test eax, eax
je 0x61005c7a
inc eax
jmp 0x61005ac9
mov eax, dword [sym.cygwin1.dll___argv]
jmp 0x61005ac7
call sub.KERNEL32.dll_GetCommandLineA
mov dword [esp], eax
mov ebx, eax
call sym.cygwin1.dll__strlen
add eax, 0x10
and eax, 0xfffffff0
call sym.cygwin1.dll__alloca
mov dword [esp + 4], ebx
lea eax, [esp + 0x14]
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
cmp dword [0x61110004], 1
mov ebx, eax
je 0x61005d7f
mov eax, dword [0x610ef740]
xor edx, edx
cmp byte [eax + 4], 0
js 0x61005cd8
cmp byte [section..data], 0
je 0x61005cd8
mov edx, 1
mov dword [esp + 0xc], edx
mov dword [esp], ebx
mov dword [esp + 8], sym.cygwin1.dll___argc
mov dword [esp + 4], sym.cygwin1.dll___argv
call fcn.61004bf0
mov eax, dword [sym.cygwin1.dll___argv]
sub esp, 0x10
mov edx, dword [eax]
mov eax, 0x3a
mov ecx, edx
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x61005d14
inc edx
test al, al
jne 0x61005d07
xor edx, edx
mov eax, edx
test eax, eax
je 0x61005d63
mov dword [esp], 0x104
call fcn.61054c10
mov dword [esp + 4], eax
mov ebx, eax
mov eax, dword [sym.cygwin1.dll___argv]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.61068cd0
mov dword [esp], ebx
mov esi, dword [sym.cygwin1.dll___argv]
call sym.cygwin1.dll__strlen
mov dword [esp], ebx
inc eax
mov dword [esp + 4], eax
call fcn.61054d00
mov dword [esi], eax
mov edx, dword [sym.cygwin1.dll___argc]
jmp 0x61005a66
mov eax, 0x5c
mov ah, al
mov al, byte [ecx]
cmp al, ah
je 0x61005d77
inc ecx
test al, al
jne 0x61005d6a
xor ecx, ecx
mov eax, ecx
test eax, eax
jne 0x61005d1a
jmp 0x61005d58
mov dword [esp + 4], eax
mov dword [esp], eax
call section.noname15
sub esp, 8
jmp 0x61005cbd
mov dword [esp + 4], 0x400
mov dword [esp], 0x61110400
call sub.KERNEL32.dll_GetConsoleTitleA
sub esp, 8
test eax, eax
je 0x61005a44
mov edi, 0x61110400
mov dword [0x611103e4], edi
jmp 0x61005a44
mov eax, dword [0x610e9034]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [sym.cygwin1.dll___argv]
mov dword [esp + 4], eax
mov eax, dword [sym.cygwin1.dll___argc]
mov dword [esp], eax
call edx
mov dword [esp], eax
call fcn.610cf030
nop
lea esi, [esi]