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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035d49
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x1003f0bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.1000af60
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 1
push eax
mov dword [ebp - 4], 0
call fcn.10017380
mov edi, eax
add esp, 0x14
mov dword [ebp - 0xc8], edi
test edi, edi
mov byte [ebp - 4], 1
xorps xmm0, xmm0
sete bl
movlpd qword [ebp - 0xd0], xmm0
test edi, edi
je 0x1000a5b5
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push 2
call dword [eax + 0x20]
mov eax, dword [edi]
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
test bl, bl
jne 0x1000aa68
push edi
call sym.ModInstaller.dll_unsigned_int___cdecl_GetPEOverlayOffset_class_IAssetsReader__
mov edi, eax
add esp, 4
test edi, edi
je 0x1000aa68
cmp dword [ebp - 0xcc], 0
jb 0x1000aa68
ja 0x1000a5eb
cmp dword [ebp - 0xd0], edi
jbe 0x1000aa68
push esi
call fcn.10002f80
mov esi, eax
add esp, 4
mov dword [ebp - 0xec], esi
mov byte [ebp - 4], 2
push 0
test esi, esi
jne 0x1000a61c
push str.UABE_Mod_installer
push str.Unable_to_create_the_installer_window._I_have_no_idea_why_this_happened.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1000aa50
push 0x1003f744
push 0x1003f6d8
lea ebx, [esi + 0x1c]
push 0
push dword [ebx]
call fcn.10035781
add esp, 0x14
mov dword [ebp - 0xb8], eax
mov ecx, eax
push 1
push 0
call fcn.100039e0
mov edx, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xcc]
sub edx, edi
push 1
sbb ecx, 0
push ecx
push edx
push 0
push edi
push dword [ebp - 0xc8]
call fcn.100175b0
mov edi, eax
add esp, 0x18
mov dword [ebp - 0xd4], edi
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call sym.ModInstaller.dll_public:_void___thiscall_InstallerPackageFile::constructor_void_
push 0
push edi
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
lea ecx, [ebp - 0xb4]
push eax
movlpd qword [ebp - 0xf4], xmm0
call sym.ModInstaller.dll_public:_bool___thiscall_InstallerPackageFile::Read_unsigned_long_long_unsigned___int64____class_IAssetsReader___bool_
test al, al
jne 0x1000a6d3
mov ecx, dword [ebp - 0xb8]
push 3
push 0
call fcn.100039e0
push 0
push str.UABE_Mod_installer
push str.Unable_to_load_the_installer_data._Either_the_installer_is_invalid__or_the_system_is_out_of_memory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1000aa30
lea eax, [ebp - 0xb4]
push eax
call sym.ModInstaller.dll_void___cdecl_SanitizePackageFile_class_InstallerPackageFile__
mov ecx, dword [ebp - 0xb8]
add esp, 4
push 2
push 0
call fcn.100039e0
push 1
push esi
call fcn.10003b80
add esp, 8
test al, al
je 0x1000aa30
mov edi, 6
nop dword [eax]
push 0
push 0x1003f71c
push 0x1003f6d8
push 0
push dword [ebx]
call fcn.10035781
add esp, 0x14
test eax, eax
je 0x1000a748
cmp dword [ebp - 0x9c], 0x10
lea ecx, [ebp - 0xb0]
cmovae ecx, dword [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.10003890
add ebx, 4
sub edi, 1
jne 0x1000a710
push edi
push 0x1003f798
push 0x1003f6d8
push edi
push dword [esi + 0x24]
call fcn.10035781
add esp, 0x14
lea ecx, [ebp - 0x98]
cmp dword [ebp - 0x84], 0x10
mov ebx, eax
cmovae ecx, dword [ebp - 0x98]
push ecx
mov ecx, ebx
call fcn.100036f0
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
mov ecx, ebx
cmovae eax, dword [ebp - 0x80]
push eax
call fcn.100037f0
push edi
push 0x1003f7c4
push 0x1003f6d8
push edi
push dword [esi + 0x28]
call fcn.10035781
push 0
push 0x1003f7f0
push 0x1003f6d8
push 0
push dword [esi + 0x2c]
mov edi, eax
mov dword [ebp - 0xdc], edi
call fcn.10035781
push 0
push 0x1003f818
push 0x1003f6d8
push 0
push dword [esi + 0x30]
mov dword [ebp - 0xe8], eax
call fcn.10035781
add esp, 0x3c
mov dword [ebp - 0xe4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0xb8], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100348e1
add esp, 4
mov ebx, eax
push ebx
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
mov ecx, edi
call fcn.100037d0
push ebx
call fcn.100348ea
add esp, 4
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.100024f0
mov edi, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], 0
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
nop dword [eax]
push 0xffffffffffffffff
push esi
call fcn.10003bd0
add esp, 8
cmp eax, 0xffffffff
je 0x1000aa30
cmp eax, 4
jne 0x1000a870
mov ecx, dword [ebp - 0xdc]
lea eax, [ebp - 0xd8]
push eax
call fcn.10002f00
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x1000a8c8
push 0x31
push str.UABE_Mod_Installer
push str.Unable_to_switch_to_the_path_entered__most_likely_its_invalid._nPress_OK_to_ignore_and_continue__press_Cancel_to_retry.
push dword [esi]
call ebx
cmp eax, 2
jne 0x1000a8c8
push 3
push esi
call fcn.10003b80
add esp, 8
jmp 0x1000a870
mov dword [ebp - 0xbc], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x30]
mov eax, 0x66666667
sub ecx, dword [ebp - 0x34]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xbc], eax
jae 0x1000a9ff
mov eax, dword [ebp - 0x34]
add eax, 4
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x1000a907
mov eax, dword [eax]
lea ecx, [ebp - 0xc0]
push ecx
push eax
call fcn.10034720
push 0x10038800
push eax
mov dword [ebp - 0xb8], eax
call dword [0x10037214]
add esp, 0x10
test eax, eax
jne 0x1000a9be
mov eax, dword [ebp - 0xc0]
xor ecx, ecx
mov edx, 2
lea eax, [eax + 0xa4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100348e1
push dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc0]
push str.Unable_to_open__s__Likely_its_not_in_the_path_entered_or_its_locked.Press_abort_to_select_another_path__retry_to_retry_or_ignore_to_continue.
add ecx, 0xa4
mov dword [ebp - 0xc4], eax
push ecx
push eax
call fcn.1000b220
add esp, 0x14
push 0x32
push str.UABE_Mod_Installer
push dword [ebp - 0xc4]
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xc4]
mov dword [ebp - 0xe0], eax
call fcn.100348ea
mov eax, dword [ebp - 0xe0]
add esp, 4
cmp eax, 3
je 0x1000a9e4
cmp eax, 4
jne 0x1000a9c8
dec dword [ebp - 0xbc]
sub ebx, 0x28
jmp 0x1000a9c8
push eax
call dword [0x10037234]
add esp, 4
push dword [ebp - 0xb8]
call fcn.10034700
inc dword [ebp - 0xbc]
add esp, 4
add ebx, 0x28
jmp 0x1000a8d4
push dword [ebp - 0xb8]
call fcn.10034700
push 3
push esi
call fcn.10003b80
add esp, 0xc
jmp 0x1000a863
push dword [ebp - 0xe4]
lea eax, [ebp - 0xb4]
push dword [ebp - 0xe8]
push 0
push eax
call fcn.10008190
add esp, 0x10
nop dword [eax]
push 0xffffffffffffffff
push esi
call fcn.10003bd0
add esp, 8
cmp eax, 0xffffffff
jne 0x1000aa20
push esi
call fcn.10002460
add esp, 4
lea ecx, [ebp - 0xb4]
call sym.ModInstaller.dll_public:_void___thiscall_InstallerPackageFile::destructor_void_
test edi, edi
je 0x1000aa50
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
test esi, esi
je 0x1000aa7c
mov ecx, esi
call fcn.10002160
push 0x48
push esi
call fcn.100348d3
add esp, 8
jmp 0x1000aa7c
push 0
push str.UABE_Mod_installer
push str.Unable_to_locate_the_installer_data._Make_sure_the_installer_executable_is_readable__or_try_moving_the_installer_to_another_directory.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0xc8]
test ecx, ecx
je 0x1000aa8c
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1000aac2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000aab8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000aab8
call dword [0x100371f8]
push ecx
push edx
call fcn.100348d3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100348ef
mov esp, ebp
pop ebp
ret