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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004164d0
mov eax, dword [0x4280b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1018], eax
sub ebx, ebx
sub eax, eax
mov esi, 0x7fe
mov dword [ebp - 0x101c], ebx
push esi
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push ebx
push eax
push ecx
pop edi
call fcn.0040e690
sub eax, eax
push esi
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push ebx
push eax
call fcn.0040e690
add esp, 0x18
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x1006]
push eax
movzx eax, word [ebp - 0x1008]
push eax
movzx eax, word [ebp - 0x100a]
push eax
movzx eax, word [ebp - 0x100c]
push eax
movzx eax, word [ebp - 0x1014]
push eax
movzx eax, word [ebp - 0x100e]
push eax
movzx eax, word [ebp - 0x1012]
push eax
push str._d__d__d__2.2hd:_2.2hd:_2.2hd._3.3hd__04d__04d_:
mov esi, 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0040bdcb
push dword [ebp - 0x1018]
lea eax, [ebp - 0x1004]
push edi
push esi
push eax
call 0x40bf79
add esp, 0x40
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push 0x3fe
push eax
call fcn.0040c086
lea eax, [ebp - 0x804]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x401552
sbb eax, ecx
sar eax, 1
shl eax, 1
push 0xd
lea ecx, [ebp + eax - 0x804]
cmp word [ecx - 2], 0xa
pop edx
push 0xa
jne 0x40158a
mov word [ecx - 2], dx
pop edx
mov word [ecx], dx
sub ecx, ecx
mov word [ebp + eax - 0x802], cx
jmp 0x4015a0
mov word [ecx], dx
pop ecx
mov word [ebp + eax - 0x802], cx
sub ecx, ecx
mov word [ebp + eax - 0x800], cx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x42abb8], bl
je 0x40167b
mov eax, dword [0x42927c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
or edi, 0xffffffff
cmp eax, ebx
je 0x4015cf
cmp eax, edi
jne 0x401625
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push dword [0x42abd4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x42927c], eax
cmp eax, edi
jne 0x401602
mov dword [0x42927c], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401620
push ebx
lea ecx, [ebp - 0x101c]
push ecx
push 4
lea ecx, [ebp - 0x1018]
push ecx
push eax
mov dword [ebp - 0x1018], 0xfeff
call esi
mov eax, dword [0x42927c]
cmp eax, ebx
je 0x40167b
cmp eax, edi
je 0x40167b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
or eax, eax
je 0x40167b
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401652
sbb eax, edx
push ebx
sar eax, 1
lea ecx, [ebp - 0x101c]
push ecx
shl eax, 1
push eax
lea eax, [ebp - 0x804]
push eax
push dword [0x42927c]
call esi
push dword [ebp - 0x1020]
lea edi, [ebp - 0x804]
call fcn.00402d3a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b965
leave
ret