Function at 0x10005e50
Capabilities:
Get common file path
Get graphical window text
Hide graphical window
Resolve function by parsing pe exports
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001fba1
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x10025018]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x10025018]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov dword [esp + 0x38], edi
xor esi, esi
mov eax, dword [esi + sym.ModInstaller.dll_delayResolveImportRVAs]
cmp eax, 1
jbe 0x10005ebe
add eax, edi
push edi
call fcn.10005850
add esp, 4
test eax, eax
je 0x10005f82
add esi, 4
cmp esi, 8
jb 0x10005ea0
push 0
push 1
push edi
call fcn.1001e832
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
call fcn.10002760
add esp, 4
mov esi, eax
push 0
test esi, esi
je 0x100067df
mov eax, dword [esi + 0x1c]
push 0x10025104
push 0x10025178
push 0
push eax
call fcn.1001f1b8
mov ebx, eax
add esp, 0x14
mov eax, 1
xor edi, edi
mov dword [esp + 0x14], ebx
call fcn.100028c0
mov edi, dword [esp + 0x38]
call fcn.10005a40
xor ebx, ebx
mov dword [esp + 0x3c], eax
cmp eax, ebx
jne 0x10005f9b
lea eax, [ebx + 3]
mov ebx, dword [esp + 0x14]
xor edi, edi
call fcn.100028c0
push 0x10
push str.UABE_Mod_installer
push str.Unable_to_find_the_installer_data._Probably_something_has_gone_wrong_while_creating_the_installer.
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esi + 0x3c]
push ecx
mov byte [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x40]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], edi
jmp 0x100062a6
push 0x10
push str.UABE_Mod_installer
push str.Unable_to_find_the_MSVC_2010_redistributable__nMake_sure_the_SP1_32bit_and_64bit_versions_are_installed.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100062d8
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], vtable.AssetsReaderFromSplitResourceWrapper.0
mov dword [esp + 0x34], ecx
mov dword [esp + 0xb8], ebx
xor eax, eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x8c], ebx
mov word [esp + 0x58], bx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
push ebx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
mov byte [esp + 0xc0], 1
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call sym.ModInstaller.dll_public:_bool___thiscall_InstallerPackageFile::Read_unsigned_long_long_unsigned___int64____class_IAssetsReader___bool_
cmp al, bl
je 0x10006722
lea ecx, [esp + 0x44]
push ecx
call sym.ModInstaller.dll_void___cdecl_SanitizePackageFile_class_InstallerPackageFile__
mov ebx, dword [esp + 0x18]
add esp, 4
mov eax, 2
xor edi, edi
call fcn.100028c0
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000625a
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + eax*4 + 4]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ecx
call edi
mov dword [esi + 0x34], 1
mov edx, dword [esi + 8]
push 5
push edx
call edi
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea edi, [esi + 0x1c]
mov ebx, 6
mov ecx, dword [edi]
push 0
push 0x1002512c
push 0x10025178
push 0
push ecx
call fcn.1001f1b8
add esp, 0x14
test eax, eax
je 0x100060cb
mov edx, dword [esp + 0x4c]
push edx
push eax
call fcn.100029c0
add edi, 4
dec ebx
jne 0x100060a3
mov eax, dword [esi + 0x24]
push ebx
push 0x100250ac
push 0x10025178
push ebx
push eax
call fcn.1001f1b8
mov ecx, dword [esp + 0x64]
add esp, 0x14
mov edi, eax
push ecx
push edi
call fcn.10002a80
mov edx, dword [esp + 0x54]
push edx
push edi
call fcn.10002b50
mov eax, dword [esi + 0x28]
push ebx
push 0x10025080
push 0x10025178
push ebx
push eax
call fcn.1001f1b8
mov ecx, dword [esi + 0x2c]
add esp, 0x14
push ebx
push 0x10025058
push 0x10025178
push ebx
push ecx
mov dword [esp + 0x28], eax
call fcn.1001f1b8
mov edx, dword [esi + 0x30]
add esp, 0x14
push ebx
push 0x10025030
push 0x10025178
push ebx
push edx
mov dword [esp + 0x54], eax
call fcn.1001f1b8
add esp, 0x14
push ebx
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [0x10020128]
add esp, 4
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov word [ebx + edi*2], ax
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x1000619f
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call dword [0x1002011c]
mov edx, dword [esp + 0x18]
add esp, 4
push edx
lea ecx, [esp + 0x48]
call fcn.10002d20
jmp 0x100061c0
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi], 0
je 0x1000652f
mov eax, dword [esi + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000652f
mov ecx, dword [esi + 0x34]
mov ecx, dword [esi + ecx*4 + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp eax, 0xffffffff
je 0x1000652f
cmp eax, 4
jne 0x100061c0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x100062fe
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [0x10020128]
mov edi, eax
add esp, 4
lea eax, [ebx + 1]
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor edx, edx
mov word [edi + ebx*2], dx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x10006300
mov ecx, dword [esi + 0x3c]
push ecx
mov byte [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x40]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [esp + 0x44]
mov dword [esi + 0x40], eax
mov byte [esp + 0xb8], al
call sym.ModInstaller.dll_public:_void___thiscall_InstallerPackageFile::destructor_void_
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0x30], vtable.IAssetsReopenable.0
cmp byte [esi + 0x45], 0
mov byte [esi + 0x44], 1
jne 0x100062c0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call edi
cmp byte [esi + 0x45], 0
je 0x100062b6
push esi
call dword [0x10020110]
mov edi, dword [esp + 0x3c]
add esp, 4
push 0
push 0
push edi
call fcn.1001e832
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.1001e770
mov esp, ebp
pop ebp
ret
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x10006360
mov eax, dword [esi]
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 eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x10006360
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100061c6
mov edx, dword [esi + 0x34]
mov eax, dword [esi + edx*4 + 4]
push 0
push eax
call ebx
mov dword [esi + 0x34], 3
mov ecx, dword [esi + 0x10]
push 5
push ecx
call ebx
mov edx, dword [esi + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100061c6
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jae 0x100065f6
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + edi + 4]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100063b5
mov dword [esp + 0x18], 0x10020b34
jmp 0x10006429
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100063b8
mov edx, dword [esp + 0x18]
push 0
push 0
sub eax, ecx
and eax, 0x7fffffff
push eax
push edx
push 0
push 0xfde9
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [0x1002010c]
mov ecx, dword [esp + 0x1c]
add esp, 4
push edi
mov ebx, eax
mov eax, dword [esp + 0x30]
push ebx
push eax
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov word [ebx + edi*2], dx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
push 0x10020ee0
push eax
call dword [0x1002015c]
mov edi, eax
push edi
call dword [0x10020148]
add esp, 0xc
test edi, edi
jne 0x100064b6
mov ebx, dword [esp + 0x2c]
add ebx, 0xa4
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [0x10020128]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
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.
push ebx
push edi
call dword [0x10020140]
mov ecx, dword [esi]
add esp, 0x10
push 0x32
push str.UABE_Mod_Installer
push edi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
mov ebx, eax
call dword [0x1002011c]
add esp, 4
cmp ebx, 3
je 0x100064d9
cmp ebx, 4
jne 0x100064b6
dec dword [esp + 0x20]
sub dword [esp + 0x1c], 0x18
mov eax, dword [esp + 0x18]
cmp eax, 0x10020b34
je 0x100064cb
push eax
call dword [0x10020110]
add esp, 4
inc dword [esp + 0x20]
add dword [esp + 0x1c], 0x18
jmp 0x10006370
mov eax, dword [esp + 0x18]
cmp eax, 0x10020b34
je 0x100064ee
push eax
call dword [0x10020110]
add esp, 4
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100061c0
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + eax*4 + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
mov dword [esi + 0x34], 3
mov edx, dword [esi + 0x10]
push 5
push edx
call edi
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100061c0
mov ecx, dword [esi + 0x3c]
push ecx
mov byte [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x40]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
xor ebx, ebx
mov byte [esp + 0xb8], 2
cmp byte [esp + 0x44], bl
je 0x1000659a
mov eax, dword [esp + 0x4c]
mov edi, dword [0x100201bc]
cmp eax, ebx
je 0x1000657e
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x1000658c
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x1000659a
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x100065ca
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x94]
push ecx
call fcn.10004aa0
mov edx, dword [esp + 0x94]
add esp, 4
push edx
call dword [0x10020110]
add esp, 4
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov byte [esp + 0xbc], 0
call fcn.1000ad30
jmp 0x10006293
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x2c]
xor ecx, ecx
call fcn.100068b0
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x14]
mov ebx, dword [0x100201bc]
add esp, 8
test eax, eax
je 0x10006625
push eax
call ebx
add esp, 4
mov eax, dword [edi + 0x24]
test eax, eax
je 0x10006632
push eax
call ebx
add esp, 4
push edi
call dword [0x10020110]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 4
cmp dword [esi], 0
je 0x10006666
mov eax, dword [esi + 0x38]
push 0xffffffffffffffff
push eax
call edi
test eax, eax
jne 0x10006666
mov ecx, dword [esi + 0x34]
mov ecx, dword [esi + ecx*4 + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp eax, 0xffffffff
jne 0x10006642
mov ecx, dword [esi + 0x3c]
push ecx
mov byte [esi + 0x44], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x40]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esi + 0x40], edi
mov byte [esp + 0xb8], 3
cmp byte [esp + 0x44], 0
je 0x100066c4
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x100066a8
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x100066b6
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x100066c4
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, edi
je 0x100066f6
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x94]
push ecx
call fcn.10004aa0
mov edx, dword [esp + 0x94]
add esp, 4
push edx
call dword [0x10020110]
add esp, 4
xor edi, edi
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov byte [esp + 0xbc], 0
call fcn.1000ad30
jmp 0x10006293
mov ebx, dword [esp + 0x14]
mov eax, 3
xor edi, edi
call fcn.100028c0
xor ebx, ebx
push ebx
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 ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [esp + 0xb8], 4
cmp byte [esp + 0x44], bl
je 0x10006784
mov eax, dword [esp + 0x4c]
mov edi, dword [0x100201bc]
cmp eax, ebx
je 0x10006768
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x10006776
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x10006784
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x90]
cmp eax, ebx
je 0x100067b4
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x94]
push ecx
call fcn.10004aa0
mov edx, dword [esp + 0x94]
add esp, 4
push edx
call dword [0x10020110]
add esp, 4
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov byte [esp + 0xbc], bl
call fcn.1000ad30
jmp 0x10006293
push str.UABE_Mod_installer
push str.Unable_to_create_the_installer_window._I_have_no_idea_why_this_happened.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x100062ce