Function at 0x10322ac
Capabilities:
Get common file path
Manipulate boot configuration

Disassembly:
mov eax, 0x10cd208
call fcn.01077868
sub esp, 0xa2c
mov eax, dword [0x10de03c]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa30], ebx
mov dword [ebp - 0xa20], ebx
mov dword [ebp - 0xa1c], ebx
call fcn.0102150d
cmp word [ebp + 8], 7
je 0x1032845
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, 0x100205c
lea eax, [ebp - 0x218]
push esi
push eax
call edi
lea eax, [ebp - 0x18]
push esi
push eax
call edi
add esp, 0x10
push 0xff
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, ebx
je 0x103235d
lea eax, [ebp - 0x218]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0xc
test eax, eax
jne 0x103235d
mov ax, word [ebp - 0x218]
mov word [ebp - 0x18], ax
mov ax, word [ebp - 0x216]
mov word [ebp - 0x16], ax
mov word [ebp - 0x14], bx
cmp word [ebp + 8], 5
je 0x1032370
cmp word [ebp + 8], 6
mov eax, dword [0x10e25b4]
jne 0x1032375
mov eax, dword [0x10e25b8]
cmp word [ebp + 8], 1
mov dword [ebp - 0xa24], eax
jne 0x10324c1
mov edi, dword [eax + 4]
cmp edi, ebx
je 0x1032552
push edi
call fcn.01083cda
mov dword [ebp - 0xa20], eax
call fcn.0102150d
cmp dword [eax + 0x2ac], 1
jne 0x1032458
call fcn.0102150d
add eax, 0xa2
push eax
lea ecx, [ebp - 0xa28]
call sub.MFC42u.DLL_CString::CString_5
push 0x5c
lea ecx, [ebp - 0xa28]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x1032419
push 0x5c
lea ecx, [ebp - 0xa28]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
push eax
lea eax, [ebp - 0xa34]
push eax
lea ecx, [ebp - 0xa28]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0xa28]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0xa34]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xa28]
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
mov edx, esi
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x1032449
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa28]
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
mov ecx, 0x1005a6c
mov edx, esi
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x1032487
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
mov ecx, 0x1005a54
mov edx, esi
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x10324b6
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x1032391
cmp word [ebp + 8], 5
jne 0x1032552
mov eax, dword [ebp - 0xa24]
mov edi, dword [eax + 4]
jmp 0x103254e
push edi
call fcn.01083cda
lea ecx, [ebp - 0xa1c]
push ecx
push 1
push 1
push eax
mov ecx, 0x1005a28
mov edx, esi
mov dword [ebp - 0xa20], eax
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x103250f
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
mov al, byte [edi + 0xa0]
and al, 7
cmp al, 3
jne 0x103254b
lea eax, [ebp - 0xa1c]
push eax
push 1
push ebx
push dword [ebp - 0xa20]
mov ecx, 0x1005a14
mov edx, esi
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x103254b
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x10324d7
lea eax, [ebp - 0xa30]
push eax
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0xa20]
push eax
mov dword [ebp - 0xa2c], 0x400
call fcn.0102156b
push eax
push dword [0x10e25b0]
call fcn.0108f3c7
test ax, ax
jne 0x103271d
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.0108efdc
mov edi, eax
cmp edi, ebx
je 0x103271d
lea eax, [ebp - 0xa1c]
push eax
push ebx
xor esi, esi
inc esi
push esi
push dword [ebp - 0xa20]
call fcn.0102156b
mov ecx, 0x10059f8
mov edx, eax
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x10325e5
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.0102156b
mov ecx, 0x10059dc
mov edx, eax
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x1032619
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.0102156b
mov ecx, 0x10059c4
mov edx, eax
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x103264d
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.0102156b
mov ecx, 0x10059a8
mov edx, eax
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x1032681
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
call fcn.0102156b
mov ecx, 0x1005994
mov edx, eax
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x10326b5
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.0102156b
mov ecx, 0x1005978
mov edx, eax
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x10326e9
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.0102156b
mov ecx, 0x100595c
mov edx, eax
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x103271d
push dword [ebp - 0xa1c]
push edi
call fcn.0108cabd
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0xa20]
push eax
mov dword [ebp - 0xa2c], 0x400
call fcn.010508a4
push eax
push dword [0x10e25b0]
call fcn.0108f3c7
test ax, ax
jne 0x10327b8
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.0108efdc
mov esi, eax
cmp esi, ebx
je 0x10327b8
lea eax, [ebp - 0xa18]
push eax
call fcn.0105082b
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
call fcn.0105087f
mov ecx, eax
lea edx, [ebp - 0xa18]
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x10327b8
push dword [ebp - 0xa1c]
push esi
call fcn.0108cabd
call fcn.01021518
mov edi, eax
lea eax, [ebp - 0xa30]
push eax
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0xa20]
push eax
push edi
push dword [0x10e25b0]
mov dword [ebp - 0xa2c], 0x400
call fcn.0108f3c7
test ax, ax
jne 0x1032843
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.0108efdc
mov esi, eax
cmp esi, ebx
je 0x1032843
push esi
call fcn.01083cda
cmp eax, ebx
je 0x1032843
lea ecx, [ebp - 0xa1c]
push ecx
push ebx
push 1
push eax
mov ecx, 0x1005950
mov edx, edi
call fcn.01031ff2
cmp dword [ebp - 0xa1c], ebx
je 0x1032843
push dword [ebp - 0xa1c]
push esi
call fcn.0108cabd
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ax, ax
pop ebx
call fcn.01075bbb
leave
ret 4