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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a9c08
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x617960]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x617960]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x14]
push esi
call fcn.0046c210
mov dword [esp + 0x70], 0
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
mov byte [esp + 0x70], 1
cmp dword [esi + 0x30], 0
je 0x465929
push 0x25
push str.__.4d__.2d__.2d__.2d__.2d__.2d__.3d_
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00437730
lea eax, [esp + 0x50]
mov byte [esp + 0x70], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
sub esp, 0x18
lea eax, [esp + 0x34]
mov ecx, esp
lea ebx, [esp + 0x50]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004373c0
mov edx, ebx
lea ecx, [esp + 0x68]
call fcn.00465290
add esp, 0x18
mov byte [esp + 0x70], 1
cmp dword [esp + 0x30], 0x10
jb 0x465929
push dword [esp + 0x1c]
call fcn.0047e2e9
add esp, 4
cmp byte [edi], 0
jne 0x465932
xor ecx, ecx
jmp 0x465940
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x465937
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x40]
call fcn.0043ed80
cmp dword [esi + 0x34], 0
mov ecx, dword [esp + 0x48]
mov ebx, ecx
je 0x4659ca
cmp ecx, 2
jle 0x4659ca
lea esp, [esp]
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x38]
mov edi, dword [esp + 0x38]
cmp esi, 0x10
cmovae eax, edi
cmp byte [eax + ecx - 1], 0xa
je 0x46598a
cmp esi, 0x10
lea eax, [esp + 0x38]
cmovae eax, edi
cmp byte [eax + ecx - 1], 0xd
jne 0x4659b2
lea edx, [ecx - 1]
cmp ecx, edx
jb 0x465a98
cmp esi, 0x10
mov dword [esp + 0x48], edx
lea eax, [esp + 0x38]
cmovae eax, edi
dec ebx
mov byte [eax + edx], 0
test ebx, ebx
jle 0x4659b2
mov ecx, dword [esp + 0x48]
jmp 0x465960
push 2
push 0x6003b8
lea ecx, [esp + 0x40]
call fcn.0043ed80
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x24], 0
je 0x4659e9
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x48]
cmp dword [esi + 0x28], 0
je 0x465a0f
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
push 0x5feea8
call fcn.004adf9c
mov ecx, dword [esp + 0x50]
add esp, 8
cmp dword [esi + 0x2c], 0
je 0x465a3f
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x465a3f
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
push edx
cmovae eax, dword [esp + 0x3c]
push ecx
push 1
push eax
call fcn.00494416
push dword [esi + 0x1c]
call fcn.00494ade
add esp, 0x14
cmp dword [esp + 0x4c], 0x10
jb 0x465a52
push dword [esp + 0x38]
call fcn.0047e2e9
add esp, 4
push 0
push dword [esp + 0x18]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049355b
mov esp, ebp
pop ebp
ret 4
push str.invalid_string_position
call fcn.004b3f06
int3