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

Disassembly:
mov eax, 0x10cd07a
call fcn.01077798
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.01021462
cmp word [ebp + 8], 7
je 0x10327a7
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 0x10322bf
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 0x10322bf
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 0x10322d2
cmp word [ebp + 8], 6
mov eax, dword [0x10e25b4]
jne 0x10322d7
mov eax, dword [0x10e25b8]
cmp word [ebp + 8], 1
mov dword [ebp - 0xa24], eax
jne 0x1032423
mov edi, dword [eax + 4]
cmp edi, ebx
je 0x10324b4
push edi
call fcn.01083be8
mov dword [ebp - 0xa20], eax
call fcn.01021462
cmp dword [eax + 0x2ac], 1
jne 0x10323ba
call fcn.01021462
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 0x103237b
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.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x10323ab
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
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.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x10323e9
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
mov ecx, 0x1005a54
mov edx, esi
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x1032418
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x10322f3
cmp word [ebp + 8], 5
jne 0x10324b4
mov eax, dword [ebp - 0xa24]
mov edi, dword [eax + 4]
jmp 0x10324b0
push edi
call fcn.01083be8
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.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x1032471
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
mov al, byte [edi + 0xa0]
and al, 7
cmp al, 3
jne 0x10324ad
lea eax, [ebp - 0xa1c]
push eax
push 1
push ebx
push dword [ebp - 0xa20]
mov ecx, 0x1005a14
mov edx, esi
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x10324ad
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x1032439
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.010214cb
push eax
push dword [0x10e25b0]
call fcn.0108f239
test ax, ax
jne 0x103267f
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.0108ee4e
mov edi, eax
cmp edi, ebx
je 0x103267f
lea eax, [ebp - 0xa1c]
push eax
push ebx
xor esi, esi
inc esi
push esi
push dword [ebp - 0xa20]
call fcn.010214cb
mov ecx, 0x10059f8
mov edx, eax
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x1032547
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.010214cb
mov ecx, 0x10059dc
mov edx, eax
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x103257b
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.010214cb
mov ecx, 0x10059c4
mov edx, eax
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x10325af
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.010214cb
mov ecx, 0x10059a8
mov edx, eax
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x10325e3
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
call fcn.010214cb
mov ecx, 0x1005994
mov edx, eax
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x1032617
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.010214cb
mov ecx, 0x1005978
mov edx, eax
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x103264b
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.010214cb
mov ecx, 0x100595c
mov edx, eax
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x103267f
push dword [ebp - 0xa1c]
push edi
call fcn.0108c92f
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.01050891
push eax
push dword [0x10e25b0]
call fcn.0108f239
test ax, ax
jne 0x103271a
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.0108ee4e
mov esi, eax
cmp esi, ebx
je 0x103271a
lea eax, [ebp - 0xa18]
push eax
call fcn.01050818
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
call fcn.0105086c
mov ecx, eax
lea edx, [ebp - 0xa18]
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x103271a
push dword [ebp - 0xa1c]
push esi
call fcn.0108c92f
call fcn.01021478
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.0108f239
test ax, ax
jne 0x10327a5
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.0108ee4e
mov esi, eax
cmp esi, ebx
je 0x10327a5
push esi
call fcn.01083be8
cmp eax, ebx
je 0x10327a5
lea ecx, [ebp - 0xa1c]
push ecx
push ebx
push 1
push eax
mov ecx, 0x1005950
mov edx, edi
call fcn.01031f54
cmp dword [ebp - 0xa1c], ebx
je 0x10327a5
push dword [ebp - 0xa1c]
push esi
call fcn.0108c92f
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.01075aef
leave
ret 4