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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fe57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push edi
mov dword [ebp - 0x230], ecx
mov eax, dword [0x43d130]
mov dword [ebp - 0x110], eax
mov ecx, dword [0x43d134]
mov dword [ebp - 0x10c], ecx
mov edx, dword [0x43d138]
mov dword [ebp - 0x108], edx
mov al, byte [0x43d13c]
mov byte [ebp - 0x104], al
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0x230]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x1c]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x43d140
call fcn.00401fe0
add esp, 0xc
mov eax, dword [ebp - 0x230]
cmp dword [eax + 0x1c], 0
jne 0x401d61
lea ecx, [ebp - 0x114]
call fcn.00401fc0
mov dword [ebp - 4], 0
push 0xff
push 0x100
lea ecx, [ebp - 0x114]
call fcn.0042637e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x114]
call fcn.004263cd
push 0x5c
lea ecx, [ebp - 0x114]
call fcn.00423651
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
push ecx
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x114]
call fcn.004235d9
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x114]
call fcn.00426087
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.00425f4e
push 0x43d170
mov edx, dword [ebp - 0x114]
push edx
push 0x43d180
lea eax, [ebp - 0x110]
push eax
call fcn.00415a4a
add esp, 0x10
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0x230]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 0x1c]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x43d19c
call fcn.00401fe0
add esp, 0xc
mov eax, dword [ebp - 0x230]
cmp dword [eax + 0x1c], 0
jne 0x401d4f
push 0x43d1cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x11c], eax
push 0xff
push 0x100
lea ecx, [ebp - 0x114]
call fcn.0042637e
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x114]
call fcn.004263cd
push 0x5c
lea ecx, [ebp - 0x114]
call fcn.00423651
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
add edx, 1
push edx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x114]
call fcn.004235d9
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x240]
push edx
lea ecx, [ebp - 0x114]
call fcn.00426087
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00425f4e
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x114]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x43d1d4
mov ecx, dword [ebp - 0x114]
push ecx
push 0x43d1e4
lea edx, [ebp - 0x110]
push edx
call fcn.00415a4a
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x230]
mov dword [ecx + 0x1c], eax
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x230]
cmp dword [eax + 0x1c], 0
jne 0x401d4f
mov dword [ebp - 0x22c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00425f4e
mov eax, dword [ebp - 0x22c]
jmp 0x401db0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00425f4e
push 0x43d1ec
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
push 0x43d1f8
mov edx, dword [ebp - 0x230]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x230]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x230]
cmp dword [edx], 0
jne 0x401dab
xor eax, eax
jmp 0x401db0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret