Function at 0x412fd0
Capabilities:
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [0x478324], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x478324
mov dword [esp], 0x1e
mov ebx, dword [esp + 0x50]
call sub.cygwin1.dll_sigaction
mov dword [esp + 8], 0
mov dword [esp + 4], 0x478324
mov dword [esp], 0x1f
mov dword [0x478324], 1
call sub.cygwin1.dll_sigaction
mov ecx, dword [0x478310]
test ecx, ecx
jne 0x413059
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [0x478310], ebx
mov dword [0x47830c], eax
mov eax, dword [esp + 0x58]
sar eax, 0x1f
xor edx, eax
mov dword [0x478308], edx
sub dword [0x478308], eax
test ebx, ebx
jne 0x413071
mov edx, dword [0x47d96c]
test edx, edx
je 0x413071
mov dword [0x47d96c], 2
cmp dword [0x478304], 7
ja case.default.0x413083
mov eax, dword [0x478304]
jmp dword [eax*4 + 0x455780]
cmp dword [0x47d784], 0
mov dword [0x478304], 1
mov dword [0x478300], ebx
jne 0x4134a9
cmp word [0x480952], 1
jle case.0x413083.1
call fcn.00409f30
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___exit_cleanup_code_d__file_s__line_d_:_entered_n
mov dword [esp], 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
call fcn.00420340
mov eax, dword [0x45104c]
add dword [0x478304], 1
cmp eax, 0xffffffff
je case.0x413083.2
lea edx, [esp + 0x2c]
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0041bec0
cmp eax, dword [0x45104c]
jne case.0x413083.2
mov eax, dword [esp + 0x2c]
movzx eax, ah
cmp eax, dword [0x478310]
mov dword [esp + 0x2c], eax
jle case.0x413083.2
mov dword [0x478310], eax
add dword [0x478304], 1
cmp dword [0x4782f4], 0
je case.0x413083.3
cmp dword [0x478320], 0
je 0x4134d0
mov edx, dword [0x451054]
cmp edx, 0xffffffff
je 0x413496
mov dword [esp], edx
call sub.cygwin1.dll_close
mov eax, dword [0x451050]
mov dword [0x451054], 0xffffffff
cmp eax, 0xffffffff
je 0x413196
mov dword [esp], eax
call fcn.004339e0
mov eax, dword [0x451050]
mov dword [esp], eax
call sub.cygwin1.dll_close
mov dword [0x451050], 0xffffffff
cmp dword [0x478320], 0
je case.0x413083.3
mov eax, dword [0x47831c]
test eax, eax
je case.0x413083.3
cmp dword [0x47d92c], 0
je case.0x413083.3
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00419850
test eax, eax
je case.0x413083.3
mov eax, dword [0x47d8b8]
mov ecx, dword [0x478320]
mov dword [0x478320], 0
test eax, eax
je 0x41351e
mov edx, dword [0x478318]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
sete al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movzx eax, al
mov dword [esp + 4], ecx
mov dword [esp + 0x18], eax
mov eax, dword [0x47831c]
mov dword [esp], eax
call fcn.00409be0
add dword [0x478304], 1
cmp dword [0x4782f8], 0
je 0x41324e
cmp ebx, 0x14
mov dword [0x4782f8], 0
jne 0x41324e
mov dword [esp], 1
call fcn.0042a6f0
mov eax, ebx
or eax, dword [0x478310]
jne case.0x413083.4
mov dword [esp], 1
call fcn.0042a6f0
mov eax, dword [0x478320]
add dword [0x478304], 1
test eax, eax
je 0x41327c
mov dword [esp], eax
call fcn.0041ee10
cmp dword [0x478310], 0
jne 0x413445
cmp dword [0x478314], 0
jne 0x41346c
test ebx, ebx
je 0x4132a0
mov dword [0x478310], ebx
mov eax, dword [0x47e714]
test al, 4
je 0x4132b3
mov dword [0x478310], 0x19
test al, 2
je 0x4132c1
mov dword [0x478310], 0x18
test al, 1
jne 0x4132ce
cmp dword [0x47d788], 0
je 0x4132d8
mov dword [0x478310], 0x17
cmp dword [esp + 0x58], 0
mov ebx, dword [0x478310]
jle 0x41340b
test ebx, ebx
je 0x41340b
mov eax, dword [0x478308]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [0x47830c]
mov dword [esp + 4], eax
call fcn.00421660
mov ebx, dword [0x478310]
add dword [0x478304], 1
cmp word [0x480952], 0
jle 0x413367
mov esi, dword [0x478308]
mov ebp, dword [0x47830c]
mov edi, dword [0x478300]
call fcn.00409f30
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___exit_cleanup_code_d__file_s__line_d_:_about_to_call_exit__d__n
mov dword [esp], 2
call fcn.00420340
mov ebx, dword [0x478310]
add dword [0x478304], 1
cmp ebx, 0x1e
je case.0x413083.7
lea eax, [ebx - 0xa]
test ebx, ebx
setne dl
and eax, 0xfffffffd
setne al
and eax, edx
cmp ebx, 0x13
setne dl
test al, dl
je case.0x413083.7
cmp dword [0x4782fc], 0
jne case.0x413083.7
cmp dword [0x452f10], 0x1e
jg 0x4133a8
cmp dword [0x47d654], 0
je case.0x413083.7
cmp dword [esp + 0x58], 0
jle 0x4133cd
cmp word [0x480952], 2
jg 0x4134f2
mov dword [esp + 4], ebx
mov dword [esp], 0x56
call fcn.0042a3d0
call fcn.0042bd80
mov eax, dword [0x47d96c]
add dword [0x478304], 1
test eax, eax
jne 0x4133f4
call fcn.00412f50
mov eax, dword [0x478310]
mov dword [esp], eax
call sub.cygwin1.dll_exit
cmp dword [0x478310], 0
je 0x4133e2
mov dword [esp], 0x64
call fcn.0041a6a0
jmp 0x4133e2
cmp dword [0x47d934], 0
jne 0x4132f1
cmp dword [0x47d8ac], 0
je 0x413311
cmp dword [0x47d96c], 0
jne 0x4132f1
cmp word [0x480928], 0
jg 0x413311
jmp 0x4132f1
mov dword [esp], 0x1e
call fcn.00418350
cmp dword [0x478314], 0
jne 0x41346c
cmp dword [0x478310], 0
jne 0x4132d8
jmp 0x413296
call sub.cygwin1.dll_getpid
cmp eax, dword [0x478314]
jne 0x41345a
call fcn.00439300
test eax, eax
je 0x41345a
cmp byte [eax], 0
je 0x41345a
call fcn.00439300
mov dword [esp], eax
call fcn.0044e894
jmp 0x41345a
mov eax, dword [0x451050]
cmp eax, 0xffffffff
jne 0x413177
jmp 0x4131a3
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_fputc
mov dword [0x47d784], 0
jmp 0x4130a7
mov eax, dword [0x451050]
cmp eax, 0xffffffff
je case.0x413083.3
mov edx, dword [0x451054]
cmp edx, 0xffffffff
jne 0x41315b
jmp 0x413177
call fcn.00409f30
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x455750
mov dword [esp], 2
call fcn.00420340
mov ebx, dword [0x478310]
jmp 0x4133bd
mov edx, dword [0x478318]
mov edi, 1
mov dword [edx + 4], 0
jmp 0x4131ee