Function at 0x412aec
Capabilities:
Terminate process

Disassembly:
push ebp
mov edx, 0x41213b
mov ebp, esp
mov ecx, 0x4714ec
sub esp, 0xc2c
push edi
push esi
push ebx
lea esi, [ebp - 0xc10]
mov eax, dword [0x41213b]
add esp, 0xfffffffc
mov dword [0x4714ec], eax
lea ebx, [ebp - 0x810]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ax, word [edx + 8]
mov word [ecx + 8], ax
mov dword [0x47108c], 0x2fc
lea eax, [ebp - 0x400]
push 0x45c0f4
push 0x41289e
mov dword [ebp - 0xc18], eax
push eax
call sub.cygwin1.dll_sprintf
add esp, 0xfffffff4
push esi
call fcn.00424bf8
add esp, 0x20
add esp, 0xfffffff4
push ebx
call fcn.00424bf8
add esp, 0xfffffff8
push ebx
push esi
call sub.cygwin1.dll_strcat
add esp, 0x20
add esp, 0xfffffff4
push ebx
call fcn.00424bf8
add esp, 0xfffffff8
push ebx
push esi
call sub.cygwin1.dll_strcat
add esp, 0x20
add esp, 0xfffffff8
push esi
mov eax, dword [ebp - 0xc18]
push eax
call sub.cygwin1.dll_strcat
add esp, 0xfffffff8
push 0x4128a1
mov eax, dword [ebp - 0xc18]
push eax
call sub.cygwin1.dll_fopen
mov edi, eax
add esp, 0x20
add esp, 0xfffffffc
mov eax, dword [ebp - 0xc18]
push eax
push 0x4128a3
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffff4
push edi
call sub.cygwin1.dll_fclose
add esp, 0x20
mov eax, dword [ebp - 0xc18]
add esp, 0xfffffff4
push eax
call sub.cygwin1.dll_unlink
add esp, 0xfffffff8
push 0x4128a7
mov eax, dword [ebp - 0xc18]
push eax
call sub.cygwin1.dll_fopen
mov edi, eax
add esp, 0x20
test edi, edi
je 0x412c08
add esp, 0xfffffff4
push 0
call sub.cygwin1.dll_exit
nop
add esp, 0xfffffff8
lea eax, [ebp - 0x400]
push 0x4128a1
push eax
call sub.cygwin1.dll_fopen
add esp, 0xfffffff8
mov edi, eax
push 0x180
lea eax, [ebp - 0x400]
push eax
call sub.cygwin1.dll_chmod
add esp, 0x20
test edi, edi
jne 0x412c54
add esp, 0xfffffffc
push 0x4128a9
push 0x412306
push 0x20
call fcn.00437adc
jmp 0x413082
add esp, 0xfffffffc
push 0x4128c5
push 0x412306
push 0x20
call fcn.00437adc
add esp, 0xfffffff4
push 0
call sub.cygwin1.dll_time
add esp, 0x20
mov dword [ebp - 0xc14], eax
add esp, 0xfffffff4
lea eax, [ebp - 0xc14]
add esp, 0xfffffff4
push eax
call sub.cygwin1.dll_ctime
push eax
push 0x4715ac
push 0x46216c
push 0x4128e4
push edi
call sub.cygwin1.dll_fprintf
mov ebx, dword [0x45c0d4]
add esp, 0x30
test ebx, ebx
je 0x412ffc
cmp word [ebx + 0x3c8], 0
jl 0x412fee
add esp, 0xfffffffc
lea eax, [ebx + 0x118]
push eax
lea esi, [ebp - 0x800]
push 0x412915
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffff8
push esi
push ebx
call fcn.0043c308
add esp, 0x20
cmp byte [ebp - 0x800], 0
je 0x412d05
add esp, 0xfffffffc
push esi
push 0x412927
push edi
call sub.cygwin1.dll_fprintf
add esp, 0x10
mov eax, dword [ebx + 0x3cc]
test eax, eax
je 0x412d1c
add esp, 0xfffffffc
push eax
push 0x412939
jmp 0x412d24
add esp, 0xfffffff8
push 0x41294a
push edi
call sub.cygwin1.dll_fprintf
add esp, 0x10
cmp byte [ebx + 0x169], 0
je 0x412d4e
add esp, 0xfffffffc
lea eax, [ebx + 0x169]
push eax
push 0x41295d
push edi
call sub.cygwin1.dll_fprintf
add esp, 0x10
cmp byte [ebx + 0x34d], 0
je 0x412d6f
add esp, 0xfffffffc
lea eax, [ebx + 0x34d]
push eax
push 0x41296f
push edi
call sub.cygwin1.dll_fprintf
add esp, 0x10
cmp byte [ebx + 0x1e2], 0
je 0x412d90
add esp, 0xfffffffc
lea eax, [ebx + 0x1e2]
push eax
push 0x412984
push edi
call sub.cygwin1.dll_fprintf
add esp, 0x10
cmp byte [ebx + 0x2d4], 0
je 0x412db1
add esp, 0xfffffffc
lea eax, [ebx + 0x2d4]
push eax
push 0x412996
push edi
call sub.cygwin1.dll_fprintf
add esp, 0x10
cmp byte [ebx + 0x25b], 0
je 0x412dd2
add esp, 0xfffffffc
lea eax, [ebx + 0x25b]
push eax
push 0x4129aa
push edi
call sub.cygwin1.dll_fprintf
add esp, 0x10
add esp, 0xfffffffc
mov eax, 0x2d
test byte [ebx + 0x3c8], 1
je 0x412de8
mov eax, 0x2b
push eax
push 0x4129be
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c8], 2
je 0x412e0d
mov eax, 0x2b
push eax
push 0x4129ce
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c8], 4
je 0x412e32
mov eax, 0x2b
push eax
push 0x4129e0
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2b
add esp, 0x10
test byte [ebx + 0x3c8], 8
je 0x412e57
mov eax, 0x2d
push eax
push 0x4129f2
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c8], 0x10
je 0x412e7c
mov eax, 0x2b
push eax
push 0x412a01
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c8], 0x20
je 0x412ea1
mov eax, 0x2b
push eax
push 0x412a0e
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test dword [ebx + 0x3c8], 0x60040
je 0x412ec9
mov eax, 0x2b
push eax
push 0x412a1a
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
cmp byte [ebx + 0x3c8], 0
jge 0x412eee
mov eax, 0x2b
push eax
push 0x412a26
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c9], 1
je 0x412f13
mov eax, 0x2b
push eax
push 0x412a37
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c9], 2
je 0x412f38
mov eax, 0x2b
push eax
push 0x412a47
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c9], 4
je 0x412f5d
mov eax, 0x2b
push eax
push 0x412a59
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c9], 8
je 0x412f82
mov eax, 0x2b
push eax
push 0x412a67
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3ca], 2
je 0x412fa7
mov eax, 0x2b
push eax
push 0x412a74
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffffc
mov eax, 0x2d
add esp, 0x10
test byte [ebx + 0x3c8], 0x40
je 0x412fcc
mov eax, 0x2b
push eax
push 0x412a80
push edi
call sub.cygwin1.dll_fprintf
add esp, 0xfffffff8
push 0x412a8d
push edi
call sub.cygwin1.dll_fprintf
add esp, 0x20
cmp eax, 0xffffffff
je 0x41303c
mov ebx, dword [ebx + 0x5d8]
test ebx, ebx
jne 0x412cb4
add esp, 0xfffffff4
push edi
call sub.cygwin1.dll_fclose
add esp, 0xfffffff4
push 0x45c0f4
call sub.cygwin1.dll_unlink
add esp, 0x20
lea eax, [ebp - 0x400]
add esp, 0xfffffff8
push 0x45c0f4
push eax
call fcn.00440664
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41305c
add esp, 0xfffffffc
push 0x412aa4
jmp 0x413064
add esp, 0xfffffffc
push 0x4128a9
push 0x412306
push 0x20
call fcn.00437adc
add esp, 0xfffffff4
push edi
call sub.cygwin1.dll_fclose
jmp 0x413082
add esp, 0xfffffffc
push 0x412ac4
push 0x412306
push 0x20
call fcn.00437adc
add esp, 0x10
add esp, 0xfffffff4
lea eax, [ebp - 0x400]
push eax
call sub.cygwin1.dll_unlink
lea esp, [ebp - 0xc38]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret