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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582a94
mov eax, dword fs:[0]
push eax
mov eax, 0x10ed8
call fcn.0055d880
mov eax, dword [0x5eb770]
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
mov dword [ebp - 0x10ecc], ebx
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.0055ca80
push 0xfffe
lea ecx, [ebp - 0x10a18]
push 0
push ecx
call fcn.0055ca80
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.0055ca80
push 0x250
lea eax, [ebp - 0x10c68]
push 0
push eax
call fcn.0055ca80
push 0x250
lea ecx, [ebp - 0x10eb8]
push 0
push ecx
call fcn.0055ca80
add esp, 0x3c
lea ecx, [ebp - 0x10ee0]
call fcn.0046c431
push 0x104
lea edx, [ebp - 0x218]
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [ebx + 4]
mov ecx, edi
mov dword [ebp - 0x10ebc], edi
call fcn.00403910
lea ecx, [ebx + 8]
mov dword [ebp - 0x10ec0], ecx
call fcn.00403910
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x41039e
push 0x5b7ddc
lea ecx, [ebp - 0x218]
push ecx
call esi
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x410463
push 0x5b84bc
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x10c68]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x410433
mov ecx, ebx
call fcn.00403910
lea ecx, [ebp - 0x10ee0]
mov dword [ebx + 0x10], 2
mov byte [ebp - 4], 0
call fcn.0046c766
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410415
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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.0055649d
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410443
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, ebx
call fcn.004039c0
jmp 0x4104b9
lea edx, [ebp - 0x10eb8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4104b2
mov ecx, ebx
call fcn.00403910
mov dword [ebx + 0x10], 2
lea ecx, [ebp - 0x10ee0]
mov byte [ebp - 4], 0
call fcn.0046c766
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x410409
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], 0
je 0x41075e
push 0xfffe
lea ecx, [ebp - 0x10a18]
push 0
push ecx
call fcn.0055ca80
mov eax, dword [ebx]
add esp, 0xc
push eax
push 0x7fff
lea edx, [ebp - 0x10a18]
push edx
push 0x5b69a4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x41051b
mov ecx, edi
call fcn.00403910
mov ecx, dword [ebp - 0x10ec0]
call fcn.00403910
mov dword [ebx + 0x10], 3
jmp 0x410484
call fcn.00461e32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410535
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10ec8], edi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10a18]
cmp word [eax], 0
jne 0x410566
cmp word [eax + 2], 0
je 0x41056b
mov ecx, 9
mov word [eax], cx
add eax, 2
jmp 0x410551
lea edx, [ebp - 0x10ec4]
push edx
lea eax, [ebp - 0x10a18]
push 0x5b80a4
push eax
mov dword [ebp - 0x10ec4], 0
call fcn.00558baa
add esp, 0xc
test eax, eax
je 0x410608
mov bl, 3
jmp 0x4105a0
push eax
lea ecx, [ebp - 0x10ee4]
call fcn.00403340
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10ed8]
push eax
push ecx
lea ecx, [ebp - 0x10ee0]
call fcn.0046c900
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10ee4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4105e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10ec4]
push ecx
push 0x5b80a4
push 0
call fcn.00558baa
add esp, 0xc
test eax, eax
jne 0x4105a0
mov ebx, dword [ebp - 0x10ecc]
mov eax, dword [ebp - 0x10ed8]
xor esi, esi
test eax, eax
jle 0x41073e
mov ecx, dword [ebx]
test esi, esi
js 0x410778
cmp esi, eax
jge 0x410778
mov edx, dword [ebp - 0x10edc]
mov eax, dword [edx + esi*4]
mov edx, dword [ebp + 8]
push ecx
push 0x400
lea ecx, [ebp - 0xa18]
push ecx
push 0x5b69a4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410660
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa18]
push eax
lea ecx, [ebp - 0x10ec8]
call fcn.004039c0
mov edi, dword [ebp - 0x10ec8]
cmp dword [edi - 0xc], 1
jl 0x41072f
mov ecx, dword [ebp + 8]
push str.Delete_Printer_Name
push ecx
call fcn.00556d01
add esp, 8
test eax, eax
jne 0x4106da
lea eax, [ebp - 0xa18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4106b0
mov ecx, dword [ebp - 0x10ebc]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0xa18]
push edx
call fcn.0040fb30
mov ecx, dword [ebp - 0x10ebc]
jmp 0x410728
mov eax, dword [ebp + 8]
push str.Delete_Driver_Name
push eax
call fcn.00556d01
add esp, 8
test eax, eax
jne 0x41072f
lea eax, [ebp - 0xa18]
lea edx, [eax + 2]
jmp 0x410700
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410700
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xa18]
push ecx
mov ecx, dword [ebp - 0x10ec0]
call fcn.0040fb30
mov ecx, dword [ebp - 0x10ec0]
push 9
call fcn.00410850
mov eax, dword [ebp - 0x10ed8]
inc esi
cmp esi, eax
jl 0x410618
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41075e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00461e32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41077d
push 0x80004005
call fcn.004025a0
call fcn.004624e2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10ebc], esi
mov byte [ebp - 4], 4
mov eax, dword [esi - 8]
mov edi, dword [ebx]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4107bf
push 0x104
lea ecx, [ebp - 0x10ebc]
call fcn.00403a70
mov esi, dword [ebp - 0x10ebc]
push edi
push 0x104
push esi
push 0x5b8528
push str.UninstDriverPackage
push str.Uninstaller_Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00558a2b
add esp, 8
test eax, eax
js 0x410839
cmp eax, dword [esi - 8]
jg 0x410839
xor ecx, ecx
push 0x5b8528
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.00558b1f
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0xc], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410484
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410484
push 0x80070057
call fcn.004025a0
int3