Function at 0x41d940
Capabilities:
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebx, dword [esp + 0xd0]
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
cmp ebx, 2
je 0x41dc78
ja 0x41d9a8
test ebx, ebx
je 0x41dc50
cmp byte [0x475f24], 0
jne 0x41d99a
mov esi, dword [0x475184]
test esi, esi
je 0x41da90
call sub.cygwin1.dll___errno
mov ecx, dword [esp + 0x1c]
cmp byte [0x475ee2], 0
mov dword [eax], ecx
je 0x41d9c8
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 4
jne 0x41d978
mov eax, dword [0x47602c]
test eax, eax
je 0x41d99a
mov esi, dword [0x475184]
test esi, esi
jne 0x41d986
jmp 0x41da90
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call sub.cygwin1.dll___errno
mov dword [eax], 0
mov eax, dword [0x475ef8]
cmp byte [0x475ee2], 0
mov ebx, eax
jne 0x41d9f0
test eax, eax
je 0x41dbb8
mov edi, dword [0x475ee4]
test edi, edi
jne 0x41dac2
mov eax, dword [0x475ef8]
test eax, eax
je 0x41db88
cmp byte [0x475ee1], 0
jne 0x41dac0
lea eax, [esp + 0xd8]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], eax
call sub.cygwin1.dll_vfprintf
cmp byte [0x44f184], 0
jne 0x41db61
lea esi, [esi]
lea esi, [esi]
mov byte [0x475ee0], 1
call sub.cygwin1.dll___errno
cmp dword [eax], 0x20
je 0x41dcb0
call sub.cygwin1.dll___errno
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x475ee8]
test ebx, ebx
je 0x41d986
mov ecx, dword [0x475f54]
test ecx, ecx
jne 0x41d986
call fcn.0041d4e0
jmp 0x41d986
xor edi, edi
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
test esi, esi
je 0x41db70
mov eax, esi
mov ebp, edx
lea ecx, [esp + 0xd8]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xd4]
mov dword [esp], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0x18], edx
call sub.cygwin1.dll_vsnprintf
mov edx, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x41dc20
cmp esi, eax
jle 0x41dbf8
cmp byte [0x475ee1], 0
mov esi, edi
mov edi, ebp
mov ebp, edx
jne 0x41dbe8
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.cygwin1.dll_fputs
test esi, esi
je 0x41db44
cmp esi, ebx
je 0x41db44
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.cygwin1.dll_fputs
mov dword [esp], ebp
call fcn.004376c0
cmp byte [0x44f184], 0
mov dword [esp + 0x24], 0
je 0x41da60
call fcn.0041d560
jmp 0x41da67
mov eax, pe_nt_image_headers32
mov esi, pe_nt_image_headers32
lea ebp, [esp + 0x30]
jmp 0x41dad6
call sub.cygwin1.dll___getreent
mov edi, dword [eax + 0xc]
test ebx, ebx
je 0x41d9eb
cmp byte [0x475ee1], 1
je 0x41dac2
test edi, edi
jne 0x41dac2
jmp 0x41da2b
call sub.cygwin1.dll___getreent
cmp byte [0x475ee2], 0
mov ebx, dword [eax + 0xc]
jne 0x41dc40
mov edi, dword [0x475ee4]
test edi, edi
je 0x41dc90
test ebx, ebx
je 0x41d9eb
jmp 0x41dac2
mov eax, edi
call fcn.0041cdc0
jmp 0x41db24
lea ebx, [eax + 1]
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.00447950
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
mov eax, dword [0x475ef8]
jmp 0x41d9f0
add esi, esi
mov dword [esp], edx
mov dword [esp + 4], esi
call fcn.00447950
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
mov eax, dword [0x475ef8]
jmp 0x41d9f0
test ebx, ebx
jne 0x41da1e
jmp 0x41d9eb
mov edi, dword [0x475f20]
test edi, edi
je 0x41d99a
mov esi, dword [0x475184]
test esi, esi
jne 0x41d986
jmp 0x41da90
mov ebp, dword [0x475f20]
test ebp, ebp
je 0x41d96f
jmp 0x41d99a
mov edx, dword [0x475ef8]
test edx, edx
je 0x41db88
mov eax, dword [0x475ef8]
test ebx, ebx
je 0x41d9f0
jmp 0x41da1e
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]