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

Disassembly:
mov eax, 0x10d3df1
call fcn.0107a498
sub esp, 0xa2c
mov eax, dword [0x10e607c]
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.01022d6e
cmp word [ebp + 8], 7
je 0x10344b9
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, 0x100210c
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 0x1033fd1
lea eax, [ebp - 0x218]
push 0x1003824
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 0x1033fd1
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 0x1033fe4
cmp word [ebp + 8], 6
mov eax, dword [0x10eae7c]
jne 0x1033fe9
mov eax, dword [0x10eae80]
cmp word [ebp + 8], 1
mov dword [ebp - 0xa24], eax
jne 0x1034135
mov edi, dword [eax + 4]
cmp edi, ebx
je 0x10341c6
push edi
call fcn.01086d2c
mov dword [ebp - 0xa20], eax
call fcn.01022d6e
cmp dword [eax + 0x2ac], 1
jne 0x10340cc
call fcn.01022d6e
add eax, 0xa2
push eax
lea ecx, [ebp - 0xa28]
call sub.MFC42u.dll_CString::CString_3
push 0x5c
lea ecx, [ebp - 0xa28]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::ReverseFind
cmp eax, 0xffffffff
je 0x103408d
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 fcn.01078b5e
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.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x10340bd
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
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, 0x1005bb4
mov edx, esi
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x10340fb
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
mov ecx, 0x1005b9c
mov edx, esi
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x103412a
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x1034005
cmp word [ebp + 8], 5
jne 0x10341c6
mov eax, dword [ebp - 0xa24]
mov edi, dword [eax + 4]
jmp 0x10341c2
push edi
call fcn.01086d2c
lea ecx, [ebp - 0xa1c]
push ecx
push 1
push 1
push eax
mov ecx, 0x1005b70
mov edx, esi
mov dword [ebp - 0xa20], eax
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x1034183
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
mov al, byte [edi + 0xa0]
and al, 7
cmp al, 3
jne 0x10341bf
lea eax, [ebp - 0xa1c]
push eax
push 1
push ebx
push dword [ebp - 0xa20]
mov ecx, 0x1005b5c
mov edx, esi
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x10341bf
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x103414b
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.01022dd7
push eax
push dword [0x10eae78]
call fcn.010955b9
test ax, ax
jne 0x1034391
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.010951ce
mov edi, eax
cmp edi, ebx
je 0x1034391
lea eax, [ebp - 0xa1c]
push eax
push ebx
xor esi, esi
inc esi
push esi
push dword [ebp - 0xa20]
call fcn.01022dd7
mov ecx, 0x1005b40
mov edx, eax
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x1034259
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.01022dd7
mov ecx, 0x1005b24
mov edx, eax
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x103428d
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.01022dd7
mov ecx, 0x1005b0c
mov edx, eax
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x10342c1
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.01022dd7
mov ecx, 0x1005af0
mov edx, eax
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x10342f5
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
call fcn.01022dd7
mov ecx, 0x1005adc
mov edx, eax
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x1034329
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.01022dd7
mov ecx, 0x1005ac0
mov edx, eax
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x103435d
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
lea eax, [ebp - 0xa1c]
push eax
push ebx
push esi
push dword [ebp - 0xa20]
call fcn.01022dd7
mov ecx, 0x1005aa4
mov edx, eax
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x1034391
push dword [ebp - 0xa1c]
push edi
call fcn.01092c9d
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.01052ae7
push eax
push dword [0x10eae78]
call fcn.010955b9
test ax, ax
jne 0x103442c
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.010951ce
mov esi, eax
cmp esi, ebx
je 0x103442c
lea eax, [ebp - 0xa18]
push eax
call fcn.01052a6e
lea eax, [ebp - 0xa1c]
push eax
push ebx
push ebx
push dword [ebp - 0xa20]
call fcn.01052ac2
mov ecx, eax
lea edx, [ebp - 0xa18]
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x103442c
push dword [ebp - 0xa1c]
push esi
call fcn.01092c9d
call fcn.01022d84
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 [0x10eae78]
mov dword [ebp - 0xa2c], 0x400
call fcn.010955b9
test ax, ax
jne 0x10344b7
push dword [ebp - 0xa20]
push dword [ebp - 0xa24]
call fcn.010951ce
mov esi, eax
cmp esi, ebx
je 0x10344b7
push esi
call fcn.01086d2c
cmp eax, ebx
je 0x10344b7
lea ecx, [ebp - 0xa1c]
push ecx
push ebx
push 1
push eax
mov ecx, 0x1005a98
mov edx, edi
call fcn.01033c66
cmp dword [ebp - 0xa1c], ebx
je 0x10344b7
push dword [ebp - 0xa1c]
push esi
call fcn.01092c9d
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.01078836
leave
ret 4