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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x54c384]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [0x558a34], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
je 0x41f6fe
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x3a]
add esi, 4
push eax
movzx eax, word [esp + 0x3c]
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
push str._d:_d:_d:_d
push 0x20
push esi
call fcn.0041f420
add esp, 0x1c
mov dword [esp + 0x24], 0
xor eax, eax
mov dword [esp + 0x28], 7
mov byte [esp + 0x10], al
lea ecx, [esp + 0x14]
mov word [esp + 0x14], ax
push dword [esp + 0x10]
push 0x200
call fcn.00404ba0
mov ecx, esi
mov dword [esp + 0x24], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f500
mov eax, dword [esp + 0x28]
sub ecx, edx
sar ecx, 1
cmp ecx, eax
ja 0x41f544
cmp eax, 8
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x14]
cmovae edi, dword [esp + 0x14]
lea esi, [ecx + ecx]
push esi
add eax, 4
push eax
push edi
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x41f559
push ecx
push esi
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404fc0
mov edx, dword [esp + 0x28]
mov eax, edx
mov ecx, dword [esp + 0x24]
sub eax, ecx
cmp eax, 1
jb 0x41f598
cmp edx, 8
lea esi, [esp + 0x14]
push 2
cmovae esi, dword [esp + 0x18]
lea edi, [ecx + 1]
push 0x50774c
mov dword [esp + 0x2c], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41f5b3
push 1
push 0x50774c
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x1c]
push dword [esp + 0x18]
push 1
call fcn.00404fc0
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f5c0
mov eax, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x24]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x41f60b
cmp dword [esp + 0x28], 8
lea esi, [esp + 0x14]
lea eax, [ecx + ecx]
cmovae esi, dword [esp + 0x14]
lea edi, [edx + ecx]
push eax
push ebx
mov dword [esp + 0x2c], edi
lea eax, [esi + edx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41f620
push ecx
push ebx
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404fc0
mov edx, dword [esp + 0x28]
mov eax, edx
mov ecx, dword [esp + 0x24]
sub eax, ecx
cmp eax, 2
jb 0x41f65f
cmp edx, 8
lea esi, [esp + 0x14]
push 4
cmovae esi, dword [esp + 0x18]
lea edi, [ecx + 2]
push 0x507750
mov dword [esp + 0x2c], edi
lea eax, [esi + ecx*2]
push eax
call fcn.004c0040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x41f67a
push 2
push 0x507750
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x1c]
push dword [esp + 0x18]
push 2
call fcn.00404fc0
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
cmp edx, 0xffffffff
je 0x41f6c6
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, eax
push eax
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x28]
cmp edx, 8
jb 0x41f6fe
mov ecx, dword [esp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f6f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f712
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret 4
call fcn.004c8da3
int3