Function at 0x40d2b0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10c
mov ebx, 0x414338
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0xfc], eax
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov dword [esp], eax
lea edx, [ebp - 0x78]
mov dword [esp + 4], edx
call sub.cygwin1.dll__fstat64
inc eax
je 0x40d305
mov edx, dword [ebp - 0x4c]
mov ecx, 0xffffffff
mov eax, dword [ebp - 0x50]
mov ebx, edx
or ebx, eax
je 0x40d6a3
mov ecx, dword [ebp - 0xfc]
test ecx, ecx
je 0x40d6cc
mov dword [esp], 0x58
call fcn.0040fee0
mov dword [ebp - 0x100], eax
xor edx, edx
call fcn.00403b40
mov eax, dword [ebp - 0x100]
mov dword [eax], 0xffffffff
call fcn.0040f6d0
mov edx, dword [ebp - 0x100]
mov dword [edx + 0xc], eax
mov dword [edx + 0x18], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x34], 0
mov dword [edx + 0x40], 3
call int.00401040
mov dword [eax + 0xc], fcn.00405460
mov ecx, dword [ebp - 0x100]
mov dword [eax + 8], 0x403b70
mov dword [ecx + 0x28], eax
nop
mov ebx, dword [ebp - 0xfc]
mov eax, pe_nt_image_headers32
mov dword [esp + 4], eax
lea eax, [ebp - 0xf8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.cygwin1.dll_fgets
test eax, eax
je 0x40d65b
cmp byte [ebp - 0xf8], 0x2a
jne 0x40d5f7
lea edx, [ebp - 0xf7]
xor esi, esi
mov dword [esp], edx
call sub.cygwin1.dll_atoi
mov dword [ebp - 0x104], eax
shl eax, 2
mov dword [esp], eax
call fcn.0040fee0
cmp esi, dword [ebp - 0x104]
mov dword [ebp - 0x108], eax
jge 0x40d4d3
lea esi, [esi]
mov ecx, dword [ebp - 0xfc]
mov eax, pe_nt_image_headers32
lea ebx, [ebp - 0xf8]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], ecx
call sub.cygwin1.dll_fgets
test eax, eax
je 0x40d618
cmp byte [ebp - 0xf8], 0x24
jne 0x40d5f7
mov eax, 0xa
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0xf7]
mov dword [esp], eax
call sub.cygwin1.dll_strtol
mov dword [esp + 4], eax
mov ebx, eax
mov dword [esp], 0
call fcn.0040f5f0
test ebx, ebx
mov edi, eax
je 0x40d482
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0xfc]
mov eax, 1
mov dword [esp + 8], eax
mov dword [esp], edi
mov dword [esp + 0xc], edx
call sub.cygwin1.dll_fread
test eax, eax
je 0x40d5f7
mov edx, edi
xor eax, eax
mov edi, 2
call fcn.00403a20
mov ecx, dword [ebp - 0x108]
mov ebx, dword [ebp - 0xfc]
mov dword [ecx + esi*4], eax
mov eax, 1
mov dword [esp + 8], eax
lea eax, [ebp - 0xf8]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_fread
test eax, eax
je 0x40d5f7
inc esi
cmp esi, dword [ebp - 0x104]
jl 0x40d3f0
mov edx, dword [ebp - 0x108]
mov eax, dword [edx]
mov eax, dword [eax]
call fcn.00403ad0
test eax, eax
mov esi, eax
je 0x40d6b0
mov ebx, dword [0x4161f4]
test ebx, ebx
je 0x40d530
mov ebx, 1
cmp ebx, dword [ebp - 0x104]
jge 0x40d530
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + ebx*4]
call fcn.00406ae0
mov ecx, dword [ebp - 0x108]
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, dword [ebp - 0x104]
jl 0x40d510
test byte [esi + 0xc], 1
jne 0x40d5dd
mov ecx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x108]
mov ebx, dword [ebp - 0x104]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x18], ebx
mov dword [esp], ecx
call dword [esi + 4]
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40d597
nop
lea esi, [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x100]
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x28]
mov dword [esp], eax
call fcn.004011c0
mov ebx, dword [ebp - 0x100]
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x40d570
xor esi, esi
cmp esi, dword [ebp - 0x104]
jge 0x40d5ca
jmp 0x40d5b0
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + esi*4]
inc esi
mov dword [esp], eax
call fcn.00405460
cmp esi, dword [ebp - 0x104]
jl 0x40d5b0
mov ecx, dword [ebp - 0x108]
mov dword [esp], ecx
call fcn.0040ffb0
jmp 0x40d380
mov ebx, dword [ebp - 0x104]
mov edx, dword [ebp - 0x108]
mov eax, dword [edx + ebx*4 - 4]
call fcn.00403e90
jmp 0x40d53a
mov eax, str.Bad_file_format_reading_the_append_only_file
mov dword [esp + 4], eax
mov dword [esp], 2
call fcn.00403610
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov edx, dword [ebp - 0xfc]
movzx eax, word [edx + 0xc]
test al, 0x20
jne 0x40d650
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], eax
mov eax, str.Unrecoverable_error_reading_the_append_only_file:__s
mov dword [esp + 4], eax
mov dword [esp], 2
call fcn.00403610
jmp 0x40d60c
mov edx, str.Unexpected_end_of_file_reading_the_append_only_file
mov dword [esp + 4], edx
jmp 0x40d600
movzx eax, word [ebx + 0xc]
test al, 0x20
je 0x40d622
mov ebx, dword [ebp - 0xfc]
mov dword [esp], ebx
call sub.cygwin1.dll_fclose
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 0xc]
mov dword [esp], eax
call fcn.0040f760
mov ecx, dword [ebp - 0x100]
mov eax, dword [ecx + 0x28]
mov dword [esp], eax
call fcn.00401090
mov ebx, dword [ebp - 0x100]
mov dword [esp], ebx
call fcn.0040ffb0
xor ecx, ecx
add esp, 0x10c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x108]
mov esi, str.Unknown_command__s_reading_the_append_only_file
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
jmp 0x40d642
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov dword [esp + 8], eax
mov edx, str.Fatal_error:_cant_open_the_append_log_file_for_reading:__s
mov dword [esp + 4], edx
jmp 0x40d642