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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x18], 0
mov word [ebp - 0x1c], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.SetSharedResources9x._1.__08X.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
and eax, 0xffff
push eax
push str.SetSharedResources9x._2.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x14
push str.Svrapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001085a
push str.NetShareAdd
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1001088d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetSharedResources9x._3.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x10010885
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
jmp 0x100109d5
mov dword [ebp - 4], 1
mov word [ebp - 0x1c], 0
jmp 0x100108a8
mov ax, word [ebp - 0x1c]
add ax, 1
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
mov edx, dword [ebp - 0x18]
and edx, 0xffff
cmp ecx, edx
jge 0x100109b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
push edx
call fcn.1001e830
add esp, 4
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x14]
push eax
call fcn.1001e830
add esp, 4
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0xc], edx
movsx eax, byte [ebp + 8]
add eax, 0x41
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
mov byte [edx], al
mov dword [ebp - 0x408], 0
lea eax, [ebp - 0x404]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10010968
mov dword [ebp - 0x408], 1
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x40c], 0
cmp dword [ebp - 0x408], 0
je 0x1001098e
push 0x2a
mov ecx, dword [ebp - 0x10]
push ecx
push 0x32
push 0
call dword [ebp - 0x14]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
je 0x100109ab
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001089c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
push ecx
push str.SetSharedResources9x._4.__08X.
push 0x100273cc
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