Function at 0x40f2e0
Capabilities:
Copy file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4703fb
mov eax, dword fs:[0]
push eax
mov eax, 0x10418
call fcn.0044b8a0
mov eax, dword [0x496534]
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 ebx, ecx
push 0xfffe
lea eax, [ebp - 0x10420]
push 0
push eax
call fcn.0044f210
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044f210
lea eax, [ebx + 0x3b8]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00451ea9
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0044f210
add esp, 0x30
mov ecx, ebx
call fcn.00410100
push 0x104
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0044f210
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x420]
add esp, 0xc
push dword [ebx + 0x108]
push eax
call edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.UNINSTAL.ini
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
je 0x40f3ff
push 0x30
push 3
push 0x1e
mov ecx, ebx
call fcn.0040f8f0
xor eax, eax
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.0044ae75
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call esi
lea eax, [ebp - 0x218]
push eax
push 0x7fff
lea eax, [ebp - 0x10420]
push eax
push 0x4869c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40f487
cmp word [ebp - 0x10420], 0
lea esi, [ebp - 0x10420]
je 0x40f487
cmp word [esi], 0x3b
je 0x40f478
lea ecx, [ebx + 0x128]
push esi
push dword [ecx + 8]
call fcn.0043e07b
push esi
call edi
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x40f463
mov eax, dword [ebx + 0x10c]
lea esi, [ebx + 0x10c]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, ecx
jge 0x40f4b3
push 0x800
mov ecx, esi
call fcn.00401cb0
lea eax, [ebp - 0x218]
push eax
push 0x800
push dword [esi]
push str.item_not_found__
push str.ShowMsgDlg
push str.Debug_Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
test eax, eax
jne 0x40f4e0
xor ecx, ecx
jmp 0x40f4f6
push dword [eax - 8]
push eax
call fcn.00451f0d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40f86e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40f86e
mov dword [eax - 0xc], ecx
lea edi, [ebx + 0xd0]
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [edi]
cmp dword [eax - 0xc], edx
jne 0x40f533
sub esp, 8
push 0x486a38
push 0x486a38
push ecx
mov ecx, ebx
call fcn.0040fa40
jmp 0x40f3e1
add eax, 0xfffffff0
push eax
call fcn.004029e0
lea esi, [eax + 0x10]
mov dword [ebp - 0x10424], esi
push 0x486a40
push edi
mov dword [ebp - 4], 0
call fcn.00402910
add esp, 0xc
test al, al
je 0x40f576
push 5
push str.PCL5e
lea ecx, [ebp - 0x10424]
call fcn.00401eb0
mov esi, dword [ebp - 0x10424]
mov eax, dword [ebx + 0x388]
lea edi, [ebx + 0x388]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x800
or eax, ecx
jge 0x40f5a2
push 0x800
mov ecx, edi
call fcn.00401cb0
lea eax, [ebp - 0x218]
push eax
push 0x800
push dword [edi]
push 0x486438
push str.PDL_TYPE
push 0x486a38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.LIPS4
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f64f
push 0x486a40
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f64f
push 0x486a74
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f64f
push 0x486a7c
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f64f
push str.UFRII
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f64f
push str.CAPT
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f64f
push 0x486a9c
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f64f
push 0x486438
mov ecx, edi
call fcn.00401fa0
mov eax, dword [edi]
test eax, eax
jne 0x40f659
xor ecx, ecx
jmp 0x40f66f
push dword [eax - 8]
push eax
call fcn.00451f0d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40f86e
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x40f86e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
mov eax, dword [ebx + 0xd4]
cmp dword [eax - 0xc], edx
jne 0x40f6aa
sub esp, 8
push str.PDL_NAME
push 0x486a38
push ecx
mov ecx, ebx
call fcn.0040fa40
jmp 0x40f8bb
lea eax, [ebp - 0x218]
push eax
push 0x800
lea edi, [ebx + 0xd8]
push 0x800
mov ecx, edi
call fcn.00401d10
push eax
push str.item_not_found__
push str.UninstallLevel
push str.Profiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.item_not_found__
push edi
call fcn.00402910
add esp, 8
test al, al
jne 0x40f878
push 0x486ad8
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f72e
push 0x486568
push edi
call fcn.0040d060
add esp, 8
test al, al
je 0x40f72e
push 0x4869bc
push edi
call fcn.0040d060
add esp, 8
test al, al
jne 0x40f878
mov eax, dword [edi]
test eax, eax
jne 0x40f738
xor ecx, ecx
jmp 0x40f74e
push dword [eax - 8]
push eax
call fcn.00451f0d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40f86e
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x40f86e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
lea edi, [ebx + 0xe0]
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x218]
push eax
push 0x800
push 0x800
mov ecx, edi
call fcn.00401d10
push eax
push str.item_not_found__
push 0x486adc
push str.Profiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.item_not_found__
push edi
call fcn.00402910
add esp, 8
test al, al
je 0x40f7b6
push 0x4868d4
mov ecx, edi
call fcn.00401fa0
mov eax, dword [edi]
test eax, eax
jne 0x40f7c0
xor ecx, ecx
jmp 0x40f7d6
push dword [eax - 8]
push eax
call fcn.00451f0d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40f86e
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x40f86e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x218]
push eax
push 0x7fff
lea eax, [ebp - 0x10420]
push eax
push str.DriverStoreInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x40f848
cmp word [ebp - 0x10420], 0
lea edi, [ebp - 0x10420]
je 0x40f848
nop
cmp word [edi], 0x3b
je 0x40f835
lea ecx, [ebx + 0x15c]
push edi
push dword [ecx + 8]
call fcn.0043e07b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], 0
jne 0x40f820
lea eax, [ebp - 0x218]
push eax
push 0xa
push str.WaitDeleteDriverPackage
push str.UninstallDriverStore
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebx + 0x170], eax
mov edi, 1
jmp 0x40f8bd
push 0x80070057
call fcn.00401e60
sub esp, 8
push str.UninstallLevel
push str.Profiles
push ecx
mov ecx, ebx
call fcn.0040fa40
mov eax, dword [edi]
test eax, eax
jne 0x40f897
xor ecx, ecx
jmp 0x40f8a9
push dword [eax - 8]
push eax
call fcn.00451f0d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40f86e
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x40f86e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f8dc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x40f3e3