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

Disassembly:
push 0x78
mov eax, 0x424a36
call fcn.0040db21
mov edi, ecx
mov dword [ebp - 0x74], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x404a14
mov ecx, ebx
call fcn.004081f9
push eax
call fcn.0040c3c4
pop ecx
test eax, eax
jne 0x404666
cmp dword [edi + 0x2e8], eax
je 0x404a14
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x404672
mov eax, dword [eax + 0x1c]
jmp 0x404674
xor eax, eax
movzx esi, word [ebx + 0x10]
shl esi, 0xa
test esi, esi
je 0x404687
cmp eax, esi
jae 0x404a14
push ecx
mov ecx, ebx
call fcn.004081f9
push eax
call fcn.004044d7
mov ecx, edi
mov dword [ebp - 0x64], eax
call fcn.0040415a
mov edi, eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x80], edi
test eax, eax
jne 0x4046b0
and dword [ebp - 0x6c], eax
jmp 0x4046ba
push eax
call fcn.0040c3c4
pop ecx
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x70]
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 0x4046d2
xor ecx, ecx
jmp 0x4046e1
push edx
call fcn.0040c3c4
mov edx, dword [ebp - 0x70]
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
add ecx, eax
mov eax, dword [ebp - 0x6c]
add eax, 3
add eax, ecx
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x84], eax
mov ecx, dword [ecx + 0x2e8]
test ecx, ecx
je 0x40471c
cmp dword [edi + 0x14], 8
jb 0x40470e
mov eax, dword [edi]
mov dword [ebp - 0x60], eax
jmp 0x404711
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 0x4048c3
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test esi, esi
je 0x404743
cmp edi, esi
jae 0x4048b5
push ecx
push dword [ebp - 0x64]
mov ecx, dword [ebp - 0x74]
call fcn.00404544
add edi, eax
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x404774
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 0x404774
add edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x4047a0
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x14], 8
jb 0x404786
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 0x4047a0
add edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4047e0
push 0
lea ecx, [ebp - 0x60]
add eax, eax
push ecx
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4047c3
add edi, dword [ebp - 0x60]
push 0
lea eax, [ebp - 0x60]
push eax
push 4
push 0x42d6bc
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4047e0
add edi, dword [ebp - 0x60]
test esi, esi
je 0x4048ab
cmp edi, esi
jb 0x4048ab
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.004064c8
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x74]
lea eax, [ecx + 8]
cmp dword [eax + 0x14], 8
jb 0x404827
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.0040c500
push esi
call fcn.00401d41
add esp, 0x14
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.00401cc8
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 0x40487d
add edi, dword [ebp - 0x60]
test dword [ebx + 0x10], 0x10000
je 0x40489b
test dword [ebx + 0x10], 0x20000
je 0x40489b
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40489b
mov byte [eax], 1
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.00401bf8
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4048b5
mov dword [eax + 0x1c], edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404a14
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.00405eb6
mov esi, dword [ebp - 0x74]
cmp dword [esi + 0x2e4], 0
jne 0x404927
push str.____Queued_Lines_Start_____r_n
lea ecx, [ebp - 0x5c]
call fcn.00401d68
mov byte [ebp - 4], 2
lea ecx, [esi + 0x2d4]
push eax
call fcn.004060dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
push 0
push 1
call fcn.00401bf8
cmp dword [ebp - 0x6c], 0
jbe 0x404942
push dword [ebp - 0x68]
call fcn.00401d41
pop ecx
push eax
push dword [ebp - 0x68]
lea ecx, [ebp - 0x2c]
call fcn.004066de
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x404956
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.00406638
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x404971
mov edi, dword [ebp - 0x70]
push edi
call fcn.00401d41
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004066de
mov edi, 0x42d6bc
push edi
call fcn.00401d41
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004066de
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x2d4]
call fcn.00406155
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.0040575d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Unable_to_open_log_file:_r_n_
call esi
mov ecx, ebx
call fcn.004081f9
push eax
call esi
push 0x42d738
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.00401bf8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.00401bf8
call fcn.0040dad0
ret 0xc