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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov dword [ebp - 4], 0
cmp dword [0x348dcb94], 0
jne 0x34893059
mov dword [ebp - 0x10], 0x348dcb98
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x34892d65
mov eax, 0xfffffbfa
jmp 0x34893064
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
push 0
push 0
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 1
push eax
call dword [sym.imp.msvcr80.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x34892d9d
mov eax, 0xfffffc0d
jmp 0x34893064
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [ebp - 8], eax
push 0x18
call fcn.348b7bce
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x34892dd1
mov ecx, dword [ebp - 0x20]
call fcn.348963d9
mov dword [ebp - 0x280], eax
jmp 0x34892ddb
mov dword [ebp - 0x280], 0
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [0x348dcb8c], ecx
cmp dword [0x348dcb8c], 0
jne 0x34892e13
cmp dword [ebp - 4], 0
je 0x34892e09
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.msvcr80.dll_free]
add esp, 4
mov eax, 0xfffffc0d
jmp 0x34893064
mov eax, dword [0x348dcb8c]
mov edx, dword [eax]
mov ecx, dword [0x348dcb8c]
mov eax, dword [edx]
call eax
test eax, eax
jne 0x34892e7a
mov ecx, dword [0x348dcb8c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x34892e66
mov ecx, dword [ebp - 0x24]
call fcn.348963d9
mov eax, 1
and eax, 1
je 0x34892e5b
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.348b7bda
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x284], edx
jmp 0x34892e70
mov dword [ebp - 0x284], 0
mov dword [0x348dcb8c], 0
push 0x38
call fcn.348b7bce
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x34892e9d
mov ecx, dword [ebp - 0x30]
call fcn.348963d9
mov dword [ebp - 0x288], eax
jmp 0x34892ea7
mov dword [ebp - 0x288], 0
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [0x348dcb88], ecx
cmp dword [0x348dcb88], 0
jne 0x34892f31
mov edx, dword [0x348dcb8c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x34892f00
mov ecx, dword [ebp - 0x34]
call fcn.348963d9
mov ecx, 1
and ecx, 1
je 0x34892ef5
mov edx, dword [ebp - 0x34]
push edx
call fcn.348b7bda
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28c], eax
jmp 0x34892f0a
mov dword [ebp - 0x28c], 0
mov dword [0x348dcb8c], 0
cmp dword [ebp - 4], 0
je 0x34892f27
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.msvcr80.dll_free]
add esp, 4
mov eax, 0xfffffc0d
jmp 0x34893064
mov edx, dword [0x348dcb88]
mov eax, dword [edx]
mov ecx, dword [0x348dcb88]
mov edx, dword [eax]
call edx
test eax, eax
jne 0x34892f9d
mov eax, dword [0x348dcb88]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x34892f84
mov ecx, dword [ebp - 0x3c]
call fcn.348963d9
mov edx, 1
and edx, 1
je 0x34892f79
mov eax, dword [ebp - 0x3c]
push eax
call fcn.348b7bda
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x290], ecx
jmp 0x34892f8e
mov dword [ebp - 0x290], 0
mov dword [0x348dcb88], 0
jmp 0x34893042
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov edx, dword [0x348dcb88]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
cmp dword [eax + 0x10], 0
je 0x34892fd7
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0xc], eax
jmp 0x34892fde
mov dword [ebp - 0xc], 0x80040605
cmp dword [ebp - 0xc], 0
jge 0x34893038
mov ecx, dword [0x348dcb88]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x34893022
mov ecx, dword [ebp - 0x44]
call fcn.348963d9
mov eax, 1
and eax, 1
je 0x34893017
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.348b7bda
add esp, 4
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x294], edx
jmp 0x3489302c
mov dword [ebp - 0x294], 0
mov dword [0x348dcb88], 0
jmp 0x34893042
mov eax, dword [0x348dcb88]
mov dword [0x348dcb84], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.msvcr80.dll_free]
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x348d9048
xor eax, eax
mov esp, ebp
pop ebp
ret 8