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

Disassembly:
push 0x84
mov eax, 0x533994
call fcn.0050a549
mov eax, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x7c], eax
cmp esi, edi
je 0x406234
mov eax, esi
call fcn.00408eda
push eax
call fcn.0050ac49
pop ecx
test eax, eax
je 0x406234
mov eax, dword [esi + 0x14]
cmp eax, edi
je 0x405ed7
mov eax, dword [eax + 0x20]
jmp 0x405ed9
xor eax, eax
movzx ecx, word [esi + 0x10]
shl ecx, 0xa
mov dword [ebp - 0x78], ecx
cmp ecx, edi
je 0x405eef
cmp eax, ecx
jae 0x406234
mov eax, esi
call fcn.00408eda
push eax
call fcn.00405d23
mov ecx, ebx
mov dword [ebp - 0x70], eax
call fcn.004059c9
mov esi, eax
mov dword [ebp - 0x90], esi
cmp dword [ebp - 0x80], edi
jne 0x405f1b
mov dword [ebp - 0x84], edi
jmp 0x405f2a
push dword [ebp - 0x80]
call fcn.0050ac49
pop ecx
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0x10]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
and esi, eax
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x7c], edi
jne 0x405f42
mov dword [ebp - 0x74], edi
jmp 0x405f4e
push dword [ebp - 0x7c]
call fcn.0050ac49
pop ecx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x84]
add eax, esi
cmp dword [ebp - 0x70], 0xffffffff
lea eax, [eax + ecx + 3]
je 0x406103
push 2
push edi
push edi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x78], 0
mov edi, eax
je 0x405f85
cmp edi, dword [ebp - 0x78]
jae 0x4060f5
mov ecx, dword [ebp - 0x70]
mov edx, ebx
call fcn.00405d8f
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x68], edi
test eax, eax
je 0x405fbf
push 0
lea ecx, [ebp - 0x6c]
push ecx
add eax, eax
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call ebx
test eax, eax
je 0x405fbf
add edi, dword [ebp - 0x6c]
mov dword [ebp - 0x68], edi
test esi, esi
je 0x405feb
mov eax, dword [ebp - 0x90]
cmp dword [eax + 0x14], 8
jb 0x405fd1
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push dword [ebp - 0x70]
call ebx
test eax, eax
je 0x405feb
add edi, dword [ebp - 0x6c]
mov dword [ebp - 0x68], edi
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x406029
push 0
lea ecx, [ebp - 0x6c]
push ecx
add eax, eax
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x70]
call ebx
test eax, eax
je 0x40600d
add edi, dword [ebp - 0x6c]
mov dword [ebp - 0x68], edi
push 0
lea eax, [ebp - 0x6c]
push eax
push 4
push 0x563bb4
push dword [ebp - 0x70]
call ebx
test eax, eax
je 0x406029
add edi, dword [ebp - 0x6c]
mov dword [ebp - 0x68], edi
cmp dword [ebp - 0x78], 0
je 0x4060e3
cmp edi, dword [ebp - 0x78]
jb 0x4060e3
mov edi, 0x80
lea esi, [ebp - 0x2c]
call fcn.004074b2
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x8c]
lea eax, [ecx + 8]
cmp dword [eax + 0x14], 8
jb 0x40605f
mov eax, dword [eax]
push eax
push str._FILE_SIZE_LIMIT_REACHED__LOGGING_DISABLED_FOR__s_MODULE_
lea esi, [ecx + 0xd4]
push 0x104
push esi
call fcn.0050a032
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00403110
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x6c], eax
jae 0x406098
lea ecx, [ebp - 0x2c]
push edi
lea edx, [ebp - 0x6c]
push edx
push eax
push ecx
push dword [ebp - 0x70]
call ebx
test eax, eax
je 0x4060ae
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 0x10]
test ecx, 0x10000
je 0x4060d4
test ecx, 0x20000
je 0x4060d4
mov eax, dword [eax + 0x14]
cmp eax, edi
je 0x4060d4
mov byte [eax], 1
mov dword [ebp - 0x68], edi
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00402b60
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x14], 0
je 0x4060f5
mov eax, dword [eax + 0x14]
mov dword [eax + 0x20], edi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406234
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00407554
cmp dword [ebx + 0x2fc], edi
jne 0x40615f
mov eax, str.____Queued_Lines_Start_____r_n
lea ecx, [ebp - 0x64]
call fcn.00403140
mov byte [ebp - 4], 2
lea edi, [ebx + 0x2ec]
mov ebx, eax
call fcn.0040774e
mov byte [ebp - 4], 1
lea esi, [ebp - 0x64]
call fcn.00402b60
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x8c]
xor edi, edi
cmp dword [ebp - 0x84], edi
jbe 0x406173
push dword [ebp - 0x80]
lea eax, [ebp - 0x48]
push eax
call fcn.00403d3a
cmp esi, edi
jbe 0x406189
push edi
push dword [ebp - 0x90]
or eax, 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00403ec8
cmp dword [ebp - 0x74], edi
jbe 0x40619a
push dword [ebp - 0x7c]
lea eax, [ebp - 0x48]
push eax
call fcn.00403d3a
push 0x563bb4
lea eax, [ebp - 0x48]
push eax
call fcn.00403d3a
lea eax, [ebp - 0x48]
push eax
lea edi, [ebx + 0x2ec]
call fcn.004077b5
and dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x8c]
call fcn.00406e12
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Unable_to_open_log_file:_r_n_
call esi
mov eax, dword [ebp - 0x88]
call fcn.00408eda
push eax
call esi
push 0x563c30
call esi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406212
lea eax, [ebp - 0x2c]
push eax
call esi
push 0x563bb4
call esi
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
call fcn.00402b60
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x48]
call fcn.00402b60
call fcn.0050a5cc
ret 8