Function at 0x1000f730
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c58
call fcn.1001eab0
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 0x10], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.1.__08X.__08X.__08X.
push str.SetSharedResourcesNT
push 3
call fcn.1000eed0
add esp, 0x18
push str.NetApi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000f7d0
push str.NetShareAdd
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1000f803
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.2.__08X.
push str.SetSharedResourcesNT
push 1
call fcn.1000eed0
add esp, 0x10
cmp dword [ebp - 0x1c], 0
je 0x1000f7fb
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
jmp 0x1000faa5
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
push 2
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.1001e4a0
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
and edx, 0xffff
push edx
push str.3.__08X.__08X.
push str.SetSharedResourcesNT
push 3
call fcn.1000eed0
add esp, 0x14
mov dword [ebp - 4], 1
mov word [ebp - 0x14], 0
jmp 0x1000f86a
mov ax, word [ebp - 0x14]
add ax, 1
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
and edx, 0xffff
cmp ecx, edx
jge 0x1000fa8a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x28
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xc], 0
je 0x1000f8f3
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
je 0x1000f8e8
cmp dword [ebp - 0xc], 0x2800
jae 0x1000f8da
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2828]
push ecx
call fcn.1001e4a0
add esp, 0xc
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x2828]
mov dword [edx + 0x24], eax
jmp 0x1000f8f1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x24], edx
jmp 0x1000f8fd
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
call fcn.1001fc94
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
lea eax, [edx + eax*2 + 2]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
push eax
call fcn.1001fc94
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 8]
lea eax, [edx + eax*2 + 2]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x18]
push eax
call fcn.1001fc94
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x18]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x20], 0
movsx edx, byte [ebp + 8]
add edx, 0x41
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov byte [ecx], dl
mov dword [ebp - 0x2c14], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x18]
push eax
push str.4.__s.
push 0x1002a338
push 3
call fcn.1000f1d0
add esp, 0x10
lea ecx, [ebp - 0x2c10]
push ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x2c10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.5.__08X.__s.
push str.SetSharedResourcesNT
push 3
call fcn.1000eed0
add esp, 0x14
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1000fa00
mov dword [ebp - 0x2c14], 1
lea edx, [ebp - 0x2c10]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x2c14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.6.__08X.__08X.
push str.SetSharedResourcesNT
push 3
call fcn.1000eed0
add esp, 0x14
mov dword [ebp - 0x2c18], 0
cmp dword [ebp - 0x2c14], 0
je 0x1000fa4d
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x1f6
push 0
call dword [ebp - 0x20]
mov dword [ebp - 0x2c18], eax
mov eax, dword [ebp - 0x2c18]
push eax
push str.7.__08X.
push str.SetSharedResourcesNT
push 3
call fcn.1000eed0
add esp, 0x10
cmp dword [ebp - 0x2c18], 0
je 0x1000fa85
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000f85e
mov edx, dword [ebp - 4]
push edx
push str.8.__08X.
push str.SetSharedResourcesNT
push 3
call fcn.1000eed0
add esp, 0x10
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret