Function at 0x40bdd0
Capabilities:
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bf9f
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4c7084]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0xe4], edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe0], eax
cmp ebx, dword [edi + 8]
jg 0x40c081
mov eax, dword [edi + 0x18]
cmp dword [eax - 0xc], 0
jne 0x40be40
sub esp, 0x18
call fcn.0040bb40
mov ecx, eax
call fcn.0040bbd0
mov eax, dword [edi + 0x18]
cmp dword [eax - 0xc], 0
je 0x40c081
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40be5d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.0040c800
lea ecx, [ebp - 0xd8]
call fcn.00408d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00408d30
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x28], ax
xorps xmm0, xmm0
movq qword [ebp - 0x26], xmm0
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebx
lea eax, [ebp - 0xdc]
push eax
call fcn.0040c930
mov esi, eax
mov byte [ebp - 4], 3
push dword [ebp - 0xd4]
push dword [ebp + 0x18]
push dword [ebp - 0xe0]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [esi]
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x26]
push eax
push str._.2d__.2d__.2d:_.2d:_.2d:_.3d_:__s__s__d___s_n
lea eax, [ebp - 0xd8]
push eax
call fcn.0040a450
add esp, 0x30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xdc]
call fcn.00408c20
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00408df0
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408b50
cmp dword [edi + 4], 0
je 0x40bf42
lea eax, [ebp - 0xd0]
push eax
push ebx
call fcn.0040c850
mov dword [ebp - 0xd4], 0xffffffff
push 0
push 0
push 4
push 0
push 3
push 0x40000000
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xd4], esi
cmp esi, 0xffffffff
je 0x40c03e
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x40c037
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xcc]
call fcn.00408e90
mov byte [ebp - 4], 4
push dword [eax]
lea ecx, [ebp - 0x40]
call fcn.004088d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xc8]
mov eax, dword [ebp - 0xcc]
cmp eax, ecx
je 0x40bfd3
push eax
call fcn.004671f7
add esp, 4
cmp dword [edi + 0x48], 0
je 0x40bfeb
lea ecx, [ebp - 0xd0]
call fcn.00408df0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.0040c4d0
cmp dword [edi + 0x2c], 0
je 0x40c02b
cmp ebx, 1
jne 0x40c02b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xdc], esp
lea eax, [ebp - 0x40]
push eax
call fcn.00408950
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
mov ecx, edi
call fcn.0040c5d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00408790
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd0]
call fcn.00408c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.00408c20
mov dword [ebp - 4], 0xffffffff
jmp 0x40c078
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0044b43a
mov esp, ebp
pop ebp
ret