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

Disassembly:
push 0x74
mov eax, 0x57d0ba
call fcn.00552ddc
mov esi, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
test ebx, ebx
je 0x407f38
mov ecx, ebx
call fcn.0040af56
push eax
call fcn.00558353
pop ecx
test eax, eax
jne 0x407bb5
cmp dword [esi + 0x2e8], eax
je 0x407f38
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x407bc1
mov eax, dword [eax + 0x1c]
jmp 0x407bc3
xor eax, eax
movzx esi, word [ebx + 0x10]
shl esi, 0xa
test esi, esi
je 0x407bd6
cmp eax, esi
jae 0x407f38
push ecx
mov ecx, ebx
call fcn.0040af56
push eax
call fcn.00407a03
mov ecx, dword [ebp - 0x64]
mov edi, eax
mov dword [ebp - 0x60], edi
call fcn.00407682
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x407c00
and dword [ebp - 0x68], eax
jmp 0x407c0a
push eax
call fcn.00558353
pop ecx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x74]
call fcn.00403c30
mov ecx, dword [eax]
xor eax, eax
cmp eax, ecx
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x407c2d
push eax
call fcn.00558353
pop ecx
mov ecx, dword [ebp - 0x70]
add ecx, eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x68]
add eax, 3
add eax, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x2e8]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x407c72
mov ecx, dword [ebp - 0x74]
call fcn.00403d10
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x407c62
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x5c]
push dword [ebp - 0x78]
push ecx
mov eax, dword [edx]
mov ecx, edx
push dword [ebp - 0x6c]
call dword [eax]
cmp edi, 0xffffffff
je 0x407e0b
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test esi, esi
je 0x407c96
cmp edi, esi
jae 0x407dfd
push ecx
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
call fcn.00407a70
add edi, eax
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x407cc7
push 0
lea ecx, [ebp - 0x5c]
add eax, eax
push ecx
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407cc7
add edi, dword [ebp - 0x5c]
cmp dword [ebp - 0x70], 0
jbe 0x407cfc
mov ecx, dword [ebp - 0x74]
call fcn.00403d10
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x407cdf
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x70]
add eax, eax
push eax
push ecx
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407cfc
add edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x407d3c
push 0
lea ecx, [ebp - 0x5c]
add eax, eax
push ecx
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407d1f
add edi, dword [ebp - 0x5c]
push 0
lea eax, [ebp - 0x5c]
push eax
push 4
push 0x5c9bd8
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407d3c
add edi, dword [ebp - 0x5c]
test esi, esi
je 0x407df3
cmp edi, esi
jb 0x407df3
push 0
push 0x80
lea ecx, [ebp - 0x28]
call fcn.00409501
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x64]
lea ecx, [esi + 8]
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x407d72
mov eax, dword [eax]
push eax
push str._FILE_SIZE_LIMIT_REACHED__LOGGING_DISABLED_FOR__s_MODULE_
add esi, 0xbc
push 0x104
push esi
call fcn.0040497e
add esp, 0x10
lea ecx, [ebp - 0x28]
push esi
call fcn.00403b00
lea ecx, [ebp - 0x28]
call fcn.00403c30
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
lea esi, [eax + eax]
mov dword [ebp - 0x5c], esi
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x407db5
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x5c]
push ecx
push esi
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407dcd
add edi, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x10]
mov ecx, 0x30000
and eax, ecx
cmp eax, ecx
jne 0x407de7
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x407de7
mov byte [eax], 1
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404340
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x407dfd
mov dword [eax + 0x1c], edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407f38
lea ecx, [ebp - 0x28]
call fcn.00404928
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x80]
call fcn.00409475
mov esi, dword [ebp - 0x64]
cmp dword [esi + 0x2e4], 0
jne 0x407e5a
push str.____Queued_Lines_Start_____r_n
lea ecx, [ebp - 0x58]
call fcn.00403aa0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x2d4]
push eax
call fcn.00409227
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404340
cmp dword [ebp - 0x68], 0
jbe 0x407e77
mov esi, dword [ebp - 0x6c]
push esi
call fcn.00403b80
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004051a0
mov esi, dword [ebp - 0x64]
cmp dword [ebp - 0x70], 0
jbe 0x407e8c
push 0xffffffffffffffff
push 0
push dword [ebp - 0x74]
lea ecx, [ebp - 0x28]
call fcn.004052e1
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x407ea7
mov edi, dword [ebp - 0x78]
push edi
call fcn.00403b80
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004051a0
mov edi, 0x5c9bd8
push edi
call fcn.00403b80
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004051a0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x2d4]
call fcn.004091af
lea ecx, [ebp - 0x40]
call fcn.00404928
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00408af5
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Unable_to_open_log_file:_r_n_
call esi
mov ecx, ebx
call fcn.0040af56
push eax
call esi
push 0x5c9c54
call esi
lea ecx, [ebp - 0x40]
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x407f1a
mov eax, dword [eax]
push eax
call esi
push edi
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404340
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404340
call fcn.00552d86
ret 0xc