Function at 0x402650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414cd8
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x41d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test dword [ebx + 0x228], eax
je 0x40287e
lea esi, [ebx + 0x210]
push esi
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [ebx], 0xffffffff
jne 0x4026fc
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x402873
push 2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str.___________Start___________
push 0xff
push ebx
call fcn.00402650
add esp, 0xc
mov eax, dword [ebx + 0x238]
mov edx, 0x50000
mov edi, dword [ebx + 0x234]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x14]
push eax
push ecx
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00401d90
add esp, 0xc
lea eax, [ebp - 0xcc]
push 0x84
push 0
push eax
call fcn.00404f90
add esp, 8
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], eax
push edi
call fcn.004028e0
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
dec eax
movups xmmword [ebp - 0x24], xmm0
cmp eax, 0x1f
ja case.0x402767.3
movzx eax, byte [eax + 0x4028b8]
jmp dword [eax*4 + 0x40289c]
push str._DEBUG_
jmp 0x402796
push str._INFO_
jmp 0x402796
push str._WARNING_
jmp 0x402796
push str._ERROR_
jmp 0x402796
push str._FATAL_
jmp 0x402796
push str._PERF_
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.004089d5
add esp, 0xc
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x38], ax
mov dword [ebp - 0x2e], eax
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x38]
push eax
movq qword [ebp - 0x36], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [ebx + 0x230], 0
lea eax, [ebp - 0x24]
push dword [ebp - 0xcc]
push eax
je 0x4027ee
mov edi, dword [ebp - 0x28]
push str._s__s_r_n
push 0x50100
push edi
call fcn.004023b0
add esp, 0x14
jmp 0x402829
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x36]
push eax
push str.__.2d__.2d__.2d:_.2d:_.2d__.3d___.4X___s__s_r_n
push 0x50100
push edi
call fcn.004023b0
add esp, 0x30
mov ecx, edi
mov dword [ebp - 0x3c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402835
push 0
lea eax, [ebp - 0x3c]
sub ecx, edx
push eax
push ecx
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40285a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xc8]
cmp eax, ecx
je 0x402873
push eax
call fcn.00408a2f
add esp, 4
test esi, esi
je 0x40287e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00402b73
mov esp, ebp
pop ebp
ret