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

Disassembly:
push 0x84
mov eax, 0x48331c
call fcn.00468d31
mov eax, dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x74], eax
test edi, edi
je 0x420f47
mov eax, edi
call fcn.00423430
push eax
call fcn.00466491
pop ecx
test eax, eax
je 0x420f47
mov eax, dword [edi + 0x14]
test eax, eax
je 0x420bbe
mov eax, dword [eax + 0x20]
jmp 0x420bc0
xor eax, eax
movzx ebx, word [edi + 0x10]
shl ebx, 0xa
mov dword [ebp - 0x90], ebx
test ebx, ebx
je 0x420bd9
cmp eax, ebx
jae 0x420f47
mov eax, edi
call fcn.00423430
push eax
call fcn.004209f5
mov ecx, esi
mov dword [ebp - 0x70], eax
call fcn.00420698
cmp dword [ebp - 0x80], 0
mov edi, eax
mov dword [ebp - 0x8c], edi
jne 0x420c04
and dword [ebp - 0x78], 0
jmp 0x420c10
push dword [ebp - 0x80]
call fcn.00466491
pop ecx
mov dword [ebp - 0x78], eax
mov eax, dword [edi + 0x10]
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
and edi, eax
cmp dword [ebp - 0x74], ecx
jne 0x420c25
and dword [ebp - 0x7c], ecx
jmp 0x420c31
push dword [ebp - 0x74]
call fcn.00466491
pop ecx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
add eax, edi
cmp dword [ebp - 0x70], 0xffffffff
lea eax, [eax + ecx + 3]
je 0x420e1f
push 2
push 0
push 0
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x68], eax
test ebx, ebx
je 0x420c65
cmp eax, ebx
jae 0x420e11
mov ecx, dword [ebp - 0x70]
mov ebx, esi
call fcn.00420a61
add dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
cmp eax, ebx
jbe 0x420c9b
push ebx
lea ecx, [ebp - 0x6c]
push ecx
add eax, eax
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x420c9b
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x68], eax
cmp edi, ebx
jbe 0x420cc6
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x14], 8
jb 0x420cad
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [edi + edi]
push ecx
push eax
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x420cc6
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
jbe 0x420d02
push ebx
lea ecx, [ebp - 0x6c]
push ecx
add eax, eax
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x420ce7
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x68], eax
push ebx
lea eax, [ebp - 0x6c]
push eax
push 4
push 0x492660
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x420d02
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x90]
cmp eax, ebx
je 0x420dfd
cmp dword [ebp - 0x68], eax
jb 0x420dfd
xor eax, eax
push ebx
mov word [ebp - 0x2c], ax
mov edi, 0x80
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.0040c4a0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x420d45
lea eax, [ebp - 0x2c]
push edi
push ebx
push eax
call fcn.00411dd0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x1c], edi
jae 0x420d5f
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov word [eax + 0x100], cx
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x84]
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x420d7c
mov eax, dword [eax]
push eax
push 0x496928
add edi, 0xd4
push 0x104
push edi
call fcn.004664ac
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, edi
call fcn.00405490
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
add eax, eax
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x6c], eax
jae 0x420db5
lea ecx, [ebp - 0x2c]
push ebx
lea edx, [ebp - 0x6c]
push edx
push eax
push ecx
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x420dcb
mov eax, dword [ebp - 0x6c]
add dword [ebp - 0x68], eax
mov edi, dword [ebp - 0x88]
mov eax, dword [edi + 0x10]
test eax, 0x10000
je 0x420def
test eax, 0x20000
je 0x420def
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x420def
mov byte [eax], 1
mov dword [ebp - 0x68], ebx
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0040c150
jmp 0x420e03
mov edi, dword [ebp - 0x88]
cmp dword [edi + 0x14], ebx
je 0x420e11
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x20], ecx
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420f47
and dword [ebp - 0x1c], 0
push 7
pop ebx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00409810
cmp dword [esi + 0x2fc], 0
jne 0x420e76
mov eax, str.____Queued_Lines_Start_____r_n
lea ecx, [ebp - 0x64]
call fcn.00413200
mov byte [ebp - 4], 2
push eax
lea eax, [esi + 0x2ec]
call fcn.00422376
mov byte [ebp - 4], 1
lea esi, [ebp - 0x64]
call fcn.0040c150
mov esi, dword [ebp - 0x84]
cmp dword [ebp - 0x78], 0
jbe 0x420e88
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x80]
call fcn.004054c0
test edi, edi
je 0x420ea5
push 0
push dword [ebp - 0x8c]
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00407500
mov esi, dword [ebp - 0x84]
cmp dword [ebp - 0x7c], 0
jbe 0x420eb7
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x74]
call fcn.004054c0
lea eax, [ebp - 0x2c]
push eax
mov edi, 0x492660
mov eax, edi
call fcn.004054c0
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 0x2ec]
call fcn.004223eb
and dword [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, esi
call fcn.00421b17
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.00423430
push eax
call esi
push 0x496c84
call esi
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x420f29
lea eax, [ebp - 0x48]
push eax
call esi
push edi
call esi
mov byte [ebp - 4], 1
lea esi, [ebp - 0x48]
call fcn.0040c150
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.0040c150
call fcn.00468db4
ret 8