Function at 0x42b140
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558253
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5d7b20]
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, ecx
mov dword [esi], vtable.CUninstallActions.0
xor edi, edi
push 0x14
mov dword [ebp - 0x244], esi
mov dword [esi + 0xc], edi
call fcn.00449b42
add esp, 4
cmp eax, edi
je 0x42b522
mov dword [esi + 8], eax
mov dword [eax], eax
mov eax, dword [esi + 8]
mov dword [eax + 4], eax
mov eax, dword [esi + 8]
mov dword [eax + 8], eax
mov eax, dword [esi + 8]
mov bl, 1
mov byte [eax + 0x10], bl
mov ecx, dword [esi + 8]
mov byte [ecx + 0x11], bl
push 0x30
mov dword [ebp - 4], edi
mov dword [esi + 0x1c], edi
call fcn.00449b42
add esp, 4
cmp eax, edi
je 0x42b4ef
mov dword [esi + 0x18], eax
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
mov edx, dword [esi + 0x18]
mov byte [edx + 0x2c], bl
mov eax, dword [esi + 0x18]
mov byte [eax + 0x2d], bl
push 0x30
mov byte [ebp - 4], bl
mov dword [esi + 0x2c], edi
call fcn.00449b42
add esp, 4
cmp eax, edi
je 0x42b4bc
mov dword [esi + 0x28], eax
mov dword [eax], eax
mov eax, dword [esi + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x28]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x28]
mov byte [ecx + 0x2c], bl
mov edx, dword [esi + 0x28]
mov byte [edx + 0x2d], bl
push 0x48
mov byte [ebp - 4], 2
mov dword [esi + 0x3c], edi
call fcn.00449b42
add esp, 4
cmp eax, edi
je 0x42b489
mov dword [esi + 0x38], eax
mov dword [eax], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x38]
mov byte [eax + 0x44], bl
mov ecx, dword [esi + 0x38]
mov byte [ecx + 0x45], bl
mov byte [ebp - 4], 3
call fcn.0044c104
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42b270
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp + 8]
push str.deldrv.debug.ini
push edi
push str.AlwaysReboot
push str.Setup
mov byte [ebp - 4], 4
mov dword [esi + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
test eax, eax
je 0x42b2b6
push str.SET_VARSIGNED_0x00000000_REBOOT_DIRECT___1
jmp 0x42b2bb
push str.SET_VARSIGNED_0x00000000_REBOOT_DIRECT___0
call fcn.00406430
mov ecx, esi
call fcn.00426c30
push 0x105
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x2e
push str.SET_VARSTRING_0x00000000_FLD_WINDOWS_DIRECT___
lea ecx, [ebp - 0x220]
call fcn.00404df0
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x42b2f4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405330
mov eax, dword [ebp - 0x220]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x224], esp
mov ebx, esp
push eax
call fcn.00404610
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.00426c30
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x2d
push str.SET_VARSTRING_0x00000000_FLD_SYSTEM_DIRECT___
lea ecx, [ebp - 0x220]
call fcn.00404df0
lea eax, [ebp - 0x21c]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x42b370
sub eax, ecx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x220]
call fcn.00405330
mov eax, dword [ebp - 0x220]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x224], esp
mov ebx, esp
push eax
call fcn.00404610
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.00426c30
push 0x105
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x21c]
push 0x105
push ecx
mov edx, ecx
push edx
call fcn.0053e704
add esp, 0x24
push 0x31
push str.SET_VARSTRING_0x00000000_FLD_SYSTEMROOT_DIRECT___
lea ecx, [ebp - 0x220]
call fcn.00404df0
lea eax, [ebp - 0x21c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x42b403
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00405330
mov edi, dword [ebp - 0x220]
push ecx
add edi, 0xfffffff0
mov dword [ebp - 0x224], esp
mov ebx, esp
push edi
call fcn.00404610
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebx], eax
call fcn.00426c30
mov byte [ebp - 4], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b469
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, esi
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.0053e1ad
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x228], edi
call fcn.0053d3bb
push 0x5bd610
lea ecx, [ebp - 0x234]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0053e34a
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x220], edi
call fcn.0053d3bb
push 0x5bd610
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0053e34a
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x228], edi
call fcn.0053d3bb
push 0x5bd610
lea edx, [ebp - 0x234]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0053e34a
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x220], edi
call fcn.0053d3bb
push 0x5bd610
lea ecx, [ebp - 0x240]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0053e34a
int3