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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x515584]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x52265c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x34], esi
je 0x4090c2
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x22]
add esi, 4
push eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push eax
push str._d:_d:_d:_d
push 0x20
push esi
call fcn.00408e30
add esp, 0x1c
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], 7
mov byte [ebp - 8], al
lea ecx, [ebp - 0x20]
mov word [ebp - 0x20], ax
push dword [ebp - 8]
push 0x200
call fcn.00403ec0
mov ecx, esi
mov dword [ebp - 0x10], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408ef0
mov eax, dword [ebp - 0xc]
sub ecx, edx
sar ecx, 1
push edi
cmp ecx, eax
ja 0x408f30
cmp eax, 8
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x34]
lea edi, [ebp - 0x20]
cmovae edi, dword [ebp - 0x20]
lea esi, [ecx + ecx]
push esi
add eax, 4
push eax
push edi
call fcn.00490510
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x408f42
push ecx
push esi
mov byte [ebp - 8], 0
push dword [ebp - 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00404400
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [ebp - 0x10]
sub eax, ecx
cmp eax, 1
jb 0x408f7c
cmp edx, 8
lea esi, [ebp - 0x20]
push 2
cmovae esi, dword [ebp - 0x20]
lea edi, [ecx + 1]
push 0x4d83bc
mov dword [ebp - 0x10], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00490510
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408f94
push 1
push 0x4d83bc
mov byte [ebp - 8], 0
lea ecx, [ebp - 0x20]
push dword [ebp - 8]
push 1
call fcn.00404400
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408fa0
mov eax, dword [ebp - 0xc]
sub ecx, edx
mov edx, dword [ebp - 0x10]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x408fe5
cmp dword [ebp - 0xc], 8
lea esi, [ebp - 0x20]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x20]
lea edi, [edx + ecx]
push eax
push ebx
mov dword [ebp - 0x10], edi
lea eax, [esi + edx*2]
push eax
call fcn.00490510
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x408ff7
push ecx
push ebx
mov byte [ebp - 8], 0
push dword [ebp - 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00404400
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [ebp - 0x10]
sub eax, ecx
cmp eax, 2
jb 0x409031
cmp edx, 8
lea esi, [ebp - 0x20]
push 4
cmovae esi, dword [ebp - 0x20]
lea edi, [ecx + 2]
push 0x4d83c0
mov dword [ebp - 0x10], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00490510
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x409049
push 2
push 0x4d83c0
mov byte [ebp - 8], 0
lea ecx, [ebp - 0x20]
push dword [ebp - 8]
push 2
call fcn.00404400
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x34]
pop edi
mov edx, dword [eax]
cmp edx, 0xffffffff
je 0x40908c
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x4090c2
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4090b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4090d4
push edx
push ecx
call fcn.0048da03
add esp, 8
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d7c2
mov esp, ebp
pop ebp
ret 4
call fcn.0049c1b3
int3