Function at 0x4061e0
Capabilities:
Check mutex on windows
Create directory
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aeaa0
mov eax, dword fs:[0]
push eax
sub esp, 0xaa0
mov eax, dword [0x625e6c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400
push 0
lea eax, [ebp - 0x618]
push eax
call fcn.00586690
add esp, 0xc
push 0x400
push 0
lea ecx, [ebp - 0xa18]
push ecx
call fcn.00586690
add esp, 0xc
push 0
call fcn.00402290
add esp, 4
mov dword [ebp - 0xa90], eax
mov dword [ebp - 0xa8c], edx
lea edx, [ebp - 0xa90]
push edx
lea eax, [ebp - 0xa4c]
push eax
call fcn.004022b0
add esp, 8
lea ecx, [ebp - 0xa5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xa4e]
push edx
mov eax, dword [ebp - 0xa4c]
push eax
mov ecx, dword [ebp - 0xa48]
push ecx
mov edx, dword [ebp - 0xa44]
push edx
mov eax, dword [ebp - 0xa40]
push eax
mov ecx, dword [ebp - 0xa3c]
push ecx
mov edx, dword [ebp - 0xa38]
add edx, 0x76c
push edx
push str._d__02d__02d__02d:_02d:_02d:_3d
lea eax, [ebp - 0x618]
push eax
call fcn.00402210
add esp, 0x24
lea ecx, [ebp + 0xc]
mov dword [ebp - 0xa78], ecx
mov edx, dword [ebp - 0xa78]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x400
lea ecx, [ebp - 0xa18]
push ecx
call fcn.00407e40
add esp, 0x10
lea edx, [ebp - 0xa18]
mov dword [ebp - 0xa64], edx
mov eax, dword [ebp - 0xa64]
mov dword [ebp - 0xa74], eax
mov ecx, dword [ebp - 0xa64]
mov dl, byte [ecx]
mov byte [ebp - 0xa5d], dl
add dword [ebp - 0xa64], 1
cmp byte [ebp - 0xa5d], 0
jne 0x4062fe
mov eax, dword [ebp - 0xa64]
sub eax, dword [ebp - 0xa74]
mov ecx, dword [ebp - 0xa74]
mov dword [ebp - 0xa7c], ecx
mov dword [ebp - 0xa80], eax
lea edx, [ebp - 0x618]
add edx, 0xffffffff
mov dword [ebp - 0xa6c], edx
mov eax, dword [ebp - 0xa6c]
mov cl, byte [eax + 1]
mov byte [ebp - 0xa5e], cl
add dword [ebp - 0xa6c], 1
cmp byte [ebp - 0xa5e], 0
jne 0x406349
mov edi, dword [ebp - 0xa6c]
mov esi, dword [ebp - 0xa7c]
mov edx, dword [ebp - 0xa80]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0xa78], 0
mov dword [ebp - 0xa70], 0
push 0x104
push 0
lea ecx, [ebp - 0x114]
push ecx
call fcn.00586690
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.00586690
add esp, 0xc
lea ecx, [ebp - 0xaac]
call fcn.004392f4
mov dword [ebp - 4], 0
cmp dword [0x62fce8], 0
jne 0x406426
push 0x5fb1ac
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x62fce8], eax
cmp dword [0x62fce8], 0
jne 0x406424
push str.DebugAcess
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x62fce8], eax
jmp 0x406434
push 0xffffffffffffffff
mov eax, dword [0x62fce8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0xa28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0x218]
push edx
call fcn.0040a290
add esp, 4
lea eax, [ebp - 0x218]
push eax
push 0x5fb1c4
lea ecx, [ebp - 0x114]
push ecx
call fcn.00402210
add esp, 0xc
push 0
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0xaac]
call fcn.0043959a
test eax, eax
jne 0x406492
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx ecx, word [ebp - 0xa22]
push ecx
movzx edx, word [ebp - 0xa26]
push edx
movzx eax, word [ebp - 0xa28]
push eax
lea ecx, [ebp - 0x114]
push ecx
push str._s_d_.2d_.2d_DebugMsg.txt
lea edx, [ebp - 0x114]
push edx
call fcn.00402210
add esp, 0x18
push 0x5fb1e8
lea eax, [ebp - 0x114]
push eax
call fcn.00588e5a
add esp, 8
mov dword [ebp - 0xa70], eax
cmp dword [ebp - 0xa70], 0
je 0x406561
lea ecx, [ebp - 0x618]
mov dword [ebp - 0xa68], ecx
mov edx, dword [ebp - 0xa68]
add edx, 1
mov dword [ebp - 0xa84], edx
mov eax, dword [ebp - 0xa68]
mov cl, byte [eax]
mov byte [ebp - 0xa5f], cl
add dword [ebp - 0xa68], 1
cmp byte [ebp - 0xa5f], 0
jne 0x406503
mov edx, dword [ebp - 0xa68]
sub edx, dword [ebp - 0xa84]
mov dword [ebp - 0xa88], edx
mov eax, dword [ebp - 0xa70]
push eax
mov ecx, dword [ebp - 0xa88]
push ecx
push 1
lea edx, [ebp - 0x618]
push edx
call fcn.0058c4d7
add esp, 0x10
mov eax, dword [ebp - 0xa70]
push eax
call fcn.0058964a
add esp, 4
mov ecx, dword [0x62fce8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xaac]
call fcn.00439497
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00582196
mov esp, ebp
pop ebp
ret