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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e32e2
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebp
push esi
push edi
mov edi, dword [esp + 0x86c]
mov esi, ecx
push edi
xor ebp, ebp
call fcn.10034750
test eax, eax
jne 0x100358be
lea ecx, [esp + 0x10]
call fcn.1003bbb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x864], ebp
call fcn.10077860
lea ecx, [esp + 0x1c]
mov byte [esp + 0x864], 1
call fcn.10077860
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 2
call fcn.10077860
lea ecx, [esp + 0x24]
mov byte [esp + 0x864], 3
call fcn.10077860
lea ecx, [esp + 0x28]
mov byte [esp + 0x864], 4
call fcn.10077860
lea ecx, [esp + 0x2c]
mov byte [esp + 0x864], 5
call fcn.10077860
lea ecx, [esp + 0x4c]
mov byte [esp + 0x864], 6
call fcn.10077860
lea ecx, [esp + 0x50]
mov byte [esp + 0x864], 7
call fcn.10077860
lea ecx, [esp + 0x54]
mov byte [esp + 0x864], 8
call fcn.10077860
lea eax, [esp + 0xc]
lea ecx, [esi + 4]
push eax
push edi
mov dword [esp + 0x86c], 9
call fcn.1003a410
cmp eax, ebp
je 0x100356de
add eax, 0x10
lea ecx, [esp + 0x10]
push eax
call fcn.10004a10
push edi
mov ecx, esi
call fcn.10039220
test eax, eax
je 0x10035776
push edi
mov ecx, esi
call fcn.10035350
test eax, eax
jne 0x1003580e
mov ecx, dword [esp + 0x58]
cmp ecx, ebp
je 0x1003563c
mov edx, dword [ecx]
call dword [edx]
mov esi, eax
cmp esi, ebp
je 0x100356c3
cmp dword [esp + 0x38], 2
jne 0x100356be
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x5c]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ecx
call esi
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push edx
call fcn.10072110
mov eax, dword [eax]
mov byte [esp + 0x864], 0x25
push eax
call fcn.10045af0
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x864], 9
call fcn.10072920
mov eax, dword [esp + 0x870]
cmp eax, ebp
je 0x100356b7
mov dword [eax], 1
lea eax, [esp + 0x5c]
push eax
call esi
mov esi, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x864], 0xffffffff
call fcn.10001a10
mov eax, esi
jmp 0x100358c0
lea ecx, [esp + 0x54]
mov dword [esp + 0x864], 0x12
call fcn.10078300
lea ecx, [esp + 0x50]
mov byte [esp + 0x864], 0x11
call fcn.10078300
lea ecx, [esp + 0x4c]
mov byte [esp + 0x864], 0x10
call fcn.10078300
lea ecx, [esp + 0x2c]
mov byte [esp + 0x864], 0xf
call fcn.10078300
lea ecx, [esp + 0x28]
mov byte [esp + 0x864], 0xe
call fcn.10078300
lea ecx, [esp + 0x24]
mov byte [esp + 0x864], 0xd
call fcn.10078300
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 0xc
call fcn.10078300
lea ecx, [esp + 0x1c]
mov byte [esp + 0x864], 0xb
call fcn.10078300
mov byte [esp + 0x864], 0xa
jmp 0x100358a1
lea ecx, [esp + 0x54]
mov dword [esp + 0x864], 0x1b
call fcn.10078300
lea ecx, [esp + 0x50]
mov byte [esp + 0x864], 0x1a
call fcn.10078300
lea ecx, [esp + 0x4c]
mov byte [esp + 0x864], 0x19
call fcn.10078300
lea ecx, [esp + 0x2c]
mov byte [esp + 0x864], 0x18
call fcn.10078300
lea ecx, [esp + 0x28]
mov byte [esp + 0x864], 0x17
call fcn.10078300
lea ecx, [esp + 0x24]
mov byte [esp + 0x864], 0x16
call fcn.10078300
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 0x15
call fcn.10078300
lea ecx, [esp + 0x1c]
mov byte [esp + 0x864], 0x14
call fcn.10078300
mov byte [esp + 0x864], 0x13
jmp 0x100358a1
lea ecx, [esp + 0x54]
mov dword [esp + 0x864], 0x24
call fcn.10078300
lea ecx, [esp + 0x50]
mov byte [esp + 0x864], 0x23
call fcn.10078300
lea ecx, [esp + 0x4c]
mov byte [esp + 0x864], 0x22
call fcn.10078300
lea ecx, [esp + 0x2c]
mov byte [esp + 0x864], 0x21
call fcn.10078300
lea ecx, [esp + 0x28]
mov byte [esp + 0x864], 0x20
call fcn.10078300
lea ecx, [esp + 0x24]
mov byte [esp + 0x864], 0x1f
call fcn.10078300
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 0x1e
call fcn.10078300
lea ecx, [esp + 0x1c]
mov byte [esp + 0x864], 0x1d
call fcn.10078300
mov byte [esp + 0x864], 0x1c
lea ecx, [esp + 0x18]
call fcn.10078300
lea ecx, [esp + 0x10]
mov dword [esp + 0x864], 0xffffffff
call fcn.1003bbd0
mov eax, ebp
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x85c
ret 8