Function at 0x41a24a
Capabilities:
Write file on windows

Disassembly:
push 0x78
mov eax, 0x6555bd
call fcn.005bea6f
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 - 0x74], eax
test ebx, ebx
je 0x41a5f7
mov ecx, ebx
call fcn.00420b56
push eax
call fcn.005e9fb0
pop ecx
test eax, eax
jne 0x41a290
cmp dword [esi + 0x2e8], eax
je 0x41a5f7
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41a29c
mov eax, dword [eax + 0x1c]
jmp 0x41a29e
xor eax, eax
movzx esi, word [ebx + 0x10]
shl esi, 0xa
mov dword [ebp - 0x80], esi
test esi, esi
je 0x41a2b4
cmp eax, esi
jae 0x41a5f7
push ecx
mov ecx, ebx
call fcn.00420b56
push eax
call fcn.0041a0f5
mov ecx, dword [ebp - 0x64]
mov edi, eax
mov dword [ebp - 0x60], edi
call fcn.00419daf
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x41a2de
and dword [ebp - 0x68], eax
jmp 0x41a2e8
push eax
call fcn.005e9fb0
pop ecx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x70]
call fcn.004174d0
mov edx, dword [ebp - 0x74]
mov ecx, dword [eax]
xor eax, eax
cmp eax, ecx
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x78], eax
test edx, edx
jne 0x41a308
xor eax, eax
jmp 0x41a312
push edx
call fcn.005e9fb0
mov edx, dword [ebp - 0x74]
pop ecx
mov ecx, dword [ebp - 0x78]
add ecx, eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x68]
add eax, 3
add eax, ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x2e8]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x41a34f
mov ecx, dword [ebp - 0x70]
mov esi, dword [eax]
push edx
call fcn.0041743a
mov ecx, dword [ebp - 0x5c]
push eax
push dword [ebp - 0x6c]
call dword [esi]
mov esi, dword [ebp - 0x80]
cmp edi, 0xffffffff
je 0x41a4d2
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test esi, esi
je 0x41a373
cmp edi, esi
jae 0x41a4c4
push ecx
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
call fcn.0041a162
add edi, eax
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41a3a4
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 0x41a3a4
add edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x41a3cd
push 0
lea ecx, [ebp - 0x5c]
add eax, eax
push ecx
mov ecx, dword [ebp - 0x70]
push eax
call fcn.0041743a
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a3cd
add edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x41a40d
push 0
lea ecx, [ebp - 0x5c]
add eax, eax
push ecx
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a3f0
add edi, dword [ebp - 0x5c]
push 0
lea eax, [ebp - 0x5c]
push eax
push 4
push 0x72923c
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a40d
add edi, dword [ebp - 0x5c]
test esi, esi
je 0x41a4ba
cmp edi, esi
jb 0x41a4ba
push 0
push 0x80
lea ecx, [ebp - 0x28]
call fcn.0041bc9f
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x64]
lea ecx, [eax + 8]
lea esi, [eax + 0xbc]
call fcn.0041743a
push eax
push str._FILE_SIZE_LIMIT_REACHED__LOGGING_DISABLED_FOR__s_MODULE_
push 0x104
push esi
call fcn.0041791f
push esi
call fcn.004169f0
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0041c91b
lea ecx, [ebp - 0x28]
call fcn.004174d0
push 0
lea ecx, [ebp - 0x5c]
push ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
add eax, eax
push eax
mov dword [ebp - 0x5c], eax
call fcn.0041743a
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a494
add edi, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x10]
mov ecx, 0x30000
and eax, ecx
cmp eax, ecx
jne 0x41a4ae
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41a4ae
mov byte [eax], 1
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00416f5c
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41a4c4
mov dword [eax + 0x1c], edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a5f7
lea ecx, [ebp - 0x28]
call fcn.00417457
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x84]
call fcn.0041bb9b
mov esi, dword [ebp - 0x64]
cmp dword [esi + 0x2e4], 0
jne 0x41a524
push str.____Queued_Lines_Start_____r_n
lea ecx, [ebp - 0x58]
call fcn.0041bcf1
mov byte [ebp - 4], 2
lea ecx, [esi + 0x2d4]
push eax
call fcn.0041b8d1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00416f5c
cmp dword [ebp - 0x68], 0
jbe 0x41a53e
mov edi, dword [ebp - 0x6c]
push edi
call fcn.004169f0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0041dcf4
cmp dword [ebp - 0x78], 0
jbe 0x41a553
push 0xffffffffffffffff
push 0
push dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.0041ddb9
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x41a56e
mov edi, dword [ebp - 0x74]
push edi
call fcn.004169f0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0041dcf4
mov edi, 0x72923c
push edi
call fcn.004169f0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0041dcf4
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x2d4]
call fcn.0041b872
lea ecx, [ebp - 0x40]
call fcn.00417457
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.0041b1b3
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Unable_to_open_log_file:_r_n_
call esi
mov ecx, ebx
call fcn.00420b56
push eax
call esi
push 0x7292b8
call esi
lea ecx, [ebp - 0x40]
call fcn.0041743a
push eax
call esi
push edi
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00416f5c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00416f5c
call fcn.005bea19
ret 0xc