Function at 0x422150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5577fd
mov eax, dword fs:[0]
push eax
sub esp, 0x6e4
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, dword [ebp + 8]
lea ecx, [ebp - 0x6d4]
call fcn.004489d0
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0044c104
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4221ab
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 - 0x6e0], eax
mov byte [ebp - 4], 1
call fcn.0044c104
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4221db
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 - 0x6ec], eax
mov byte [ebp - 4], 2
call fcn.0044c104
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42220b
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 - 0x6dc], eax
mov byte [ebp - 4], 3
call fcn.0044c104
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42223b
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 - 0x6e4], eax
push str.DeleteAddDriverInf_________________________________IN_n
push 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x6e8], ebx
call fcn.00403ab0
push 0x208
lea ecx, [ebp - 0x420]
push ebx
push ecx
call fcn.0053e550
push 0x208
lea edx, [ebp - 0x218]
push ebx
push edx
call fcn.0053e550
add esp, 0x20
cmp esi, ebx
jne 0x422292
xor eax, eax
jmp 0x4222a6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422297
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x6dc]
call fcn.00404df0
lea ecx, [ebp - 0x6e0]
cmp dword [ebp - 0x640], ebx
je 0x4222d6
push 0xe
push str.Windows_NT_x86
call fcn.00404df0
push 4
push str..x86
jmp 0x4222e9
push 0xb
push str.Windows_x64
call fcn.00404df0
push 4
push str..x64
lea ecx, [ebp - 0x6dc]
call fcn.00405330
mov edx, dword [ebp - 0x6e0]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x42231b
push ebx
lea ecx, [ebp - 0x6e0]
call fcn.004045b0
mov edx, dword [ebp - 0x6e0]
push edx
push str.DeleteAddDriverInf___szEnv___1_s__n
push 4
call fcn.00403ab0
mov edi, dword [ebp - 0x6dc]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0xc
or ecx, eax
jge 0x422352
push ebx
lea ecx, [ebp - 0x6dc]
call fcn.004045b0
mov edi, dword [ebp - 0x6dc]
push edi
push str.DeleteAddDriverInf___szTemp___1_s__n
push 4
call fcn.00403ab0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x6d8]
call fcn.00406430
mov ecx, dword [ebp - 0x6d8]
mov esi, dword [ecx - 0xc]
mov bl, 5
mov byte [ebp - 4], bl
test esi, esi
jns 0x4223a3
push 0x80070057
call fcn.00403e70
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x4223c6
push esi
lea ecx, [ebp - 0x6d8]
call fcn.004045b0
mov ecx, dword [ebp - 0x6d8]
lea edx, [esi + 1]
push edx
push ecx
call fcn.0053fdae
mov eax, dword [ebp - 0x6d8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x422399
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x6d8]
xor eax, eax
mov word [ecx + esi*2], ax
mov edx, dword [ebp - 0x6d8]
push 0x5c
push edx
call fcn.0053dd9b
add esp, 8
test eax, eax
jne 0x422407
or eax, 0xffffffff
jmp 0x42240f
sub eax, dword [ebp - 0x6d8]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x6f0]
push eax
lea ecx, [ebp - 0x6d8]
call fcn.00405240
push eax
lea ecx, [ebp - 0x6d8]
mov byte [ebp - 4], 6
call fcn.00405460
mov eax, dword [ebp - 0x6f0]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422458
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
push str.deldrv.ini
lea ecx, [ebp - 0x6d8]
call fcn.00405330
mov edx, dword [ebp - 0x6d8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x422492
push 0
lea ecx, [ebp - 0x6d8]
call fcn.004045b0
mov edx, dword [ebp - 0x6d8]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
mov esi, edx
or ecx, eax
jge 0x4224b6
push 0
lea ecx, [ebp - 0x6dc]
call fcn.004045b0
mov edi, dword [ebp - 0x6dc]
push esi
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x568928
push edi
push str.DeletePrinterInf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.0053e550
push 0x104
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.004202b0
lea eax, [ebp - 0x218]
add esp, 0x18
lea edx, [eax + 2]
jmp 0x422510
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422510
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x6e4]
call fcn.00404df0
push str.winspool.drv
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42265f
push str.DeletePrinterDriverPackageW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x422659
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x6e4]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x42258e
push 0
lea ecx, [ebp - 0x6e4]
call fcn.004045b0
mov esi, dword [ebp - 0x6e4]
push esi
push str.DELETE_before_szInf___1_s__n
push 4
call fcn.00403ab0
mov ebx, dword [ebp - 0x6e0]
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, dword [ebx - 4]
add esp, 0xc
or ecx, eax
jge 0x4225c6
push 0
lea ecx, [ebp - 0x6e0]
call fcn.004045b0
mov ebx, dword [ebp - 0x6e0]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x4225e8
push 0
lea ecx, [ebp - 0x6e4]
call fcn.004045b0
mov esi, dword [ebp - 0x6e4]
push ebx
push esi
push 0
call edi
mov edi, eax
push edi
push str.__hResult_:_d_n
push 2
call fcn.00403ab0
add esp, 0xc
test edi, edi
jne 0x422641
mov edi, 1
cmp dword [esi - 4], edi
jle 0x422623
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x6e4]
call fcn.00404320
mov esi, dword [ebp - 0x6e4]
push esi
push str.DELETE_OK_szInf___1_s__n
push 4
call fcn.00403ab0
mov dword [ebp - 0x6e8], edi
mov edi, dword [ebp - 0x6dc]
add esp, 0xc
jmp 0x422665
push edi
push str.__hResult_:_d_n
push 2
call fcn.00403ab0
mov edi, dword [ebp - 0x6dc]
add esp, 0xc
jmp 0x422665
mov edi, dword [ebp - 0x6dc]
mov esi, dword [ebp - 0x6e4]
push str.DeleteAddDriverInf___________________________________OUT_IN_n
push 4
call fcn.00403ab0
mov eax, dword [ebp - 0x6d8]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42269a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4226ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4226da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6ec]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422700
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x6e0]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 4], 0xffffffff
call fcn.004488b0
mov eax, dword [ebp - 0x6e8]
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