Function at 0x4042a0
Capabilities:
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x10a8
call fcn.00401338
sub esp, eax
mov ebx, ecx
mov eax, dword [esp + eax]
mov dword [esp + 0x28], edx
lea ebp, [esp + 0xa0]
mov dword [esp + 0x3c], 0
mov edi, ebp
mov esi, eax
mov eax, dword [0x41fb4c]
mov dword [esp], eax
call fcn.00411330
mov edx, dword [0x41fb38]
mov dword [esp + 0x2c], eax
mov ecx, 0x400
xor eax, eax
rep stosd dword es:[edi], eax
test edx, edx
jne 0x4044e5
mov eax, dword [esp + 0x28]
mov dword [esp + 4], 0x10000
mov dword [esp], eax
call sub.cygwin1.dll__open64
test eax, eax
mov dword [esp + 0x24], eax
js 0x40456e
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.cygwin1.dll__fstat64
test eax, eax
js 0x4045e0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
call sub.cygwin1.dll__mmap64
cmp eax, 0xffffffff
mov edi, eax
je 0x4045a7
mov eax, dword [0x41fb3c]
mov edx, dword [esp + 0x68]
test eax, eax
je 0x404510
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
cmp eax, edx
mov dword [esp + 0x2c], eax
ja 0x40454d
lea ecx, [edi + eax]
cmp ecx, edi
jbe 0x4043c0
cmp byte [edi], 0xff
jne 0x404517
mov eax, edi
jmp 0x4043b9
cmp byte [eax], 0xff
jne 0x404517
add eax, 1
cmp ecx, eax
jne 0x4043b0
sub edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 0x28], edx
call sub.cygwin1.dll_write
mov edx, dword [esp + 0x28]
cmp eax, edx
jne 0x40446f
mov eax, edx
sar eax, 0x1f
shr eax, 0x1e
add edx, eax
and edx, 3
sub edx, eax
cmp ebx, 1
jne 0x404400
test edx, edx
jne 0x4044c0
cmp ebx, 1
jg 0x404453
mov eax, dword [esp + 0x68]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.cygwin1.dll_munmap
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_close
add esp, 0x10ac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.cygwin1.dll_write
cmp eax, 0x1000
jne 0x40446f
sub ebx, 0x1000
je 0x404405
cmp ebx, 0xfff
jg 0x404430
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.cygwin1.dll_write
cmp eax, ebx
je 0x404405
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov esi, dword [0x41fb6c]
mov ebx, dword [0x41fb70]
mov edi, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0x10], edi
mov dword [esp + 4], str._s:_Write_error_on__s:__s_n
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
lea eax, [esp + 0x3c]
mov ebx, 4
mov dword [esp], esi
sub ebx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.cygwin1.dll_write
cmp ebx, eax
je 0x404405
jmp 0x40446f
call sub.cygwin1.dll___getreent
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], str.Adding_Image__s_n
mov dword [esp + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x4042f5
mov ecx, edi
jmp 0x4043c4
mov ebx, dword [0x41fb70]
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0x28]
mov dword [esp + 4], str._s:_Bad_file:___s__has_invalid_buffer_for_XIP_n
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov ebx, dword [0x41fb70]
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0x28]
mov dword [esp + 4], str._s:_Bad_size:___s__is_too_small_for_XIP_n
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
jmp 0x404536
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, dword [0x41fb70]
mov esi, eax
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s:_Cant_open__s:__s_n
mov dword [esp + 0xc], edx
jmp 0x4044a5
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, dword [0x41fb70]
mov esi, eax
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s:_Cant_read__s:__s_n
mov dword [esp + 0xc], edx
jmp 0x4044a5
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov ebx, dword [0x41fb70]
mov esi, eax
call sub.cygwin1.dll___getreent
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s:_Cant_stat__s:__s_n
mov dword [esp + 0xc], edx
jmp 0x4044a5