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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b8048
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x629960]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x629960]
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.0046e010
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 0x4654c9
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.00437370
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.004374f0
mov edx, ebx
lea ecx, [esp + 0x68]
call fcn.00464e30
add esp, 0x18
mov byte [esp + 0x70], 1
cmp dword [esp + 0x30], 0x10
jb 0x4654c9
push dword [esp + 0x1c]
call fcn.0048c32c
add esp, 4
cmp byte [edi], 0
jne 0x4654d2
xor ecx, ecx
jmp 0x4654e0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4654d7
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x40]
call fcn.004406b0
cmp dword [esi + 0x34], 0
mov ecx, dword [esp + 0x48]
mov ebx, ecx
je 0x46556a
cmp ecx, 2
jle 0x46556a
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 0x46552a
cmp esi, 0x10
lea eax, [esp + 0x38]
cmovae eax, edi
cmp byte [eax + ecx - 1], 0xd
jne 0x465552
lea edx, [ecx - 1]
cmp ecx, edx
jb 0x465638
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 0x465552
mov ecx, dword [esp + 0x48]
jmp 0x465500
push 2
push 0x60fcb8
lea ecx, [esp + 0x40]
call fcn.004406b0
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x24], 0
je 0x465589
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 0x4655af
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
push 0x60f31c
call fcn.004bb1ff
mov ecx, dword [esp + 0x50]
add esp, 8
cmp dword [esi + 0x2c], 0
je 0x4655df
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x4655df
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
push edx
cmovae eax, dword [esp + 0x3c]
push ecx
push 1
push eax
call fcn.004a2a2c
push dword [esi + 0x1c]
call fcn.004a30f4
add esp, 0x14
cmp dword [esp + 0x4c], 0x10
jb 0x4655f2
push dword [esp + 0x38]
call fcn.0048c32c
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.004a16e5
mov esp, ebp
pop ebp
ret 4
push str.invalid_string_position
call fcn.004c20d4
int3