Function at 0x10005780
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020de8
push 0x1001dd3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100057e6
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
jmp 0x100059d6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x1000589b
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax + 1]
cmp ecx, 0x5c
jne 0x1000589b
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
test edx, edx
je 0x1000584f
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x1000584f
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x20], eax
jmp 0x1000582b
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10005862
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10005886
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x10005886
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x20], eax
jmp 0x10005862
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
test eax, eax
je 0x10005899
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x100058d7
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx + 1]
cmp eax, 0x3a
jne 0x100058d7
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100058d7
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x100058d7
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
test eax, eax
je 0x10005992
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x10005980
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x1000594f
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000594d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000594d
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
jmp 0x100059d6
jmp 0x1000597a
mov ecx, dword [ebp - 0x28]
and ecx, 0x10
cmp ecx, 0x10
je 0x1000597a
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x100059d6
mov eax, dword [ebp - 0x20]
mov byte [eax], 0x5c
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x20], eax
jmp 0x100058d7
mov dword [ebp - 4], 0xffffffff
jmp 0x100059c4
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4