Function at 0x40c2b1
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push 0x78
mov eax, 0x450f2f
call fcn.0042c0a7
mov edi, ecx
mov dword [ebp - 0x6c], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
test ebx, ebx
je 0x40c6a1
mov ecx, ebx
call fcn.0040ee0f
push eax
call fcn.00434185
pop ecx
test eax, eax
jne 0x40c2f7
cmp dword [edi + 0x2e8], eax
je 0x40c6a1
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40c303
mov eax, dword [eax + 0x1c]
jmp 0x40c305
xor eax, eax
movzx esi, word [ebx + 0x10]
shl esi, 0xa
test esi, esi
je 0x40c318
cmp eax, esi
jae 0x40c6a1
push ecx
mov ecx, ebx
call fcn.0040ee0f
push eax
call fcn.0040c167
mov ecx, edi
mov dword [ebp - 0x64], eax
call fcn.0040bdf9
mov edi, eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x80], edi
test eax, eax
jne 0x40c341
and dword [ebp - 0x70], eax
jmp 0x40c34b
push eax
call fcn.00434185
pop ecx
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x74]
xor eax, eax
cmp eax, dword [edi + 0x10]
sbb eax, eax
and eax, dword [edi + 0x10]
mov dword [ebp - 0x78], eax
test edx, edx
jne 0x40c363
xor ecx, ecx
jmp 0x40c372
push edx
call fcn.00434185
mov edx, dword [ebp - 0x74]
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
add ecx, eax
mov eax, dword [ebp - 0x70]
add eax, 3
add eax, ecx
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x84], eax
mov ecx, dword [ecx + 0x2e8]
test ecx, ecx
je 0x40c3ad
cmp dword [edi + 0x14], 8
jb 0x40c39f
mov eax, dword [edi]
mov dword [ebp - 0x60], eax
jmp 0x40c3a2
mov dword [ebp - 0x60], edi
mov eax, dword [ecx]
push edx
push dword [ebp - 0x60]
push dword [ebp - 0x68]
call dword [eax]
mov eax, dword [ebp - 0x64]
cmp eax, 0xffffffff
je 0x40c550
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test esi, esi
je 0x40c3d4
cmp edi, esi
jae 0x40c542
push ecx
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x6c]
call fcn.0040c1d4
add edi, eax
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x40c405
push 0
lea ecx, [ebp - 0x60]
add eax, eax
push ecx
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c405
add edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x40c431
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x14], 8
jb 0x40c417
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x60]
add eax, eax
push edx
push eax
push ecx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c431
add edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40c471
push 0
lea ecx, [ebp - 0x60]
add eax, eax
push ecx
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c454
add edi, dword [ebp - 0x60]
push 0
lea eax, [ebp - 0x60]
push eax
push 4
push 0x462fd4
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c471
add edi, dword [ebp - 0x60]
test esi, esi
je 0x40c538
cmp edi, esi
jb 0x40c538
xor esi, esi
lea ecx, [ebp - 0x2c]
push esi
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push 0x80
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.0040de98
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x6c]
lea eax, [ecx + 8]
cmp dword [eax + 0x14], 8
jb 0x40c4b8
mov eax, dword [eax]
push eax
push str._FILE_SIZE_LIMIT_REACHED__LOGGING_DISABLED_FOR__s_MODULE_
lea esi, [ecx + 0xbc]
push 0x104
push esi
call fcn.0040a10a
push esi
call fcn.004061c6
add esp, 0x14
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.004060b9
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x60]
cmp dword [ebp - 0x18], 8
push 0
push edx
lea ecx, [eax + eax]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x60], ecx
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c50e
add edi, dword [ebp - 0x60]
mov eax, dword [ebx + 0x10]
mov ecx, 0x30000
and eax, ecx
cmp eax, ecx
jne 0x40c528
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40c528
mov byte [eax], 1
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.00406923
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40c542
mov dword [eax + 0x1c], edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c6a1
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x84]
call fcn.00407146
mov esi, dword [ebp - 0x6c]
cmp dword [esi + 0x2e4], 0
jne 0x40c5b4
push str.____Queued_Lines_Start_____r_n
lea ecx, [ebp - 0x5c]
call fcn.00403e25
mov byte [ebp - 4], 2
lea ecx, [esi + 0x2d4]
push eax
call fcn.0040da94
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
push 0
push 1
call fcn.00406923
cmp dword [ebp - 0x70], 0
jbe 0x40c5cf
push dword [ebp - 0x68]
call fcn.004061c6
pop ecx
push eax
push dword [ebp - 0x68]
lea ecx, [ebp - 0x2c]
call fcn.00403e56
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x40c5e3
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403efa
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40c5fe
mov edi, dword [ebp - 0x74]
push edi
call fcn.004061c6
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403e56
mov edi, 0x462fd4
push edi
call fcn.004061c6
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403e56
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x2d4]
call fcn.0040da1c
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040d36a
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Unable_to_open_log_file:_r_n_
call esi
mov ecx, ebx
call fcn.0040ee0f
push eax
call esi
push 0x468a74
call esi
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call esi
push edi
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
push 0
push 1
call fcn.00406923
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.00406923
call fcn.0042c051
ret 0xc