Function at 0x4226d0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5880e4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4c5c
call fcn.0055d880
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0x4c58], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0x4c70]
mov dword fs:[0], eax
xor esi, esi
push esi
push str.Tool_DeleteINF
push esi
lea ecx, [esp + 0x3c]
call fcn.0044ca70
add esp, 0xc
push 0x208
lea eax, [esp + 0x4a60]
push esi
push eax
mov dword [esp + 0x4c84], esi
call fcn.0055ca80
add esp, 0xc
lea ecx, [esp + 0x256c]
push ecx
mov dword [esp + 0x30], 1
call fcn.0044a090
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.0046c431
lea ecx, [esp + 0x68]
mov byte [esp + 0x4c78], 2
call fcn.0046c431
push 0x5b69a4
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c7c], 3
call fcn.00403340
push 0x5b69a4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c7c], 4
call fcn.00403340
push 0x5b69a4
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c7c], 5
call fcn.00403340
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x4c7c], 6
call fcn.0044a090
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c78], 7
call fcn.0046c431
mov byte [esp + 0x4c78], 8
mov dword [esp + 0x1c], esi
call fcn.0046d2d8
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xb8]
sub eax, 0x10
push eax
call fcn.00404900
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x20], ebx
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c80], 9
call fcn.0046c510
mov eax, dword [ebx - 0xc]
test esi, esi
js 0x4228b0
cmp esi, eax
jge 0x4228b0
lea eax, [ebx + esi*2]
push 9
push eax
call fcn.005571b9
add esp, 8
test eax, eax
je 0x4228b0
sub eax, ebx
sar eax, 1
mov edi, eax
js 0x4228b0
cmp edi, esi
jle 0x4228a8
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
call fcn.0040a110
lea eax, [esp + 0x18]
mov byte [esp + 0x4c78], 0xb
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0046c900
mov byte [esp + 0x4c78], 9
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4228a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [edi + 1]
jmp 0x422824
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040a0e0
lea edx, [esp + 0x18]
mov byte [esp + 0x4c78], 0xa
mov eax, dword [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0046c900
mov byte [esp + 0x4c78], 9
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422902
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [esp + 0x4a60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x422a48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push str.return___08x
lea edx, [esp + 0x38]
push 2
push edx
call fcn.0044cd10
mov byte [esp + 0x4c88], 8
lea eax, [ebx - 0x10]
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42295d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c78], 7
call fcn.0046c766
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4c78], 6
call fcn.0044a280
mov byte [esp + 0x4c78], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4229a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c78], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4229cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c78], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4229f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x4c78], 2
call fcn.0046c766
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.0046c766
lea ecx, [esp + 0x256c]
mov byte [esp + 0x4c78], 0
call fcn.0044a280
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c78], 0xffffffff
call fcn.0044cc70
xor eax, eax
jmp 0x422fd8
lea eax, [esp + 0x4a5c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422a52
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a60]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004039c0
push 0xb
push str.infother_
lea ecx, [esp + 0x1c]
call fcn.0040fb30
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x422aad
push 0x104
lea ecx, [esp + 0x18]
call fcn.00403a70
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.0044bbe0
test eax, eax
jle 0x422bb3
mov esi, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x24], 1
mov dword [esp + 0x40], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x422afc
cmp eax, dword [esi - 0x10]
jne 0x422afc
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x422b35
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x422b15
call fcn.00403b90
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0055701e
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
add edi, 0x10
lea ecx, [esp + 0x88]
mov dword [ebx], edi
call fcn.00423000
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx - 0x10]
mov dword [esp + 0x38], eax
lea eax, [ecx - 0x10]
add esp, 0xc
cmp dword [eax + 4], 0
je 0x422bb3
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x422b8d
cmp dword [ecx - 8], 0
jge 0x422b7b
push 0x80070057
call fcn.004025a0
mov dword [ecx - 0xc], 0
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [eax], dx
jmp 0x422bb3
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4a5c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422bc0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a60]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004039c0
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.0040fb30
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x422c1b
push 0x104
lea ecx, [esp + 0x18]
call fcn.00403a70
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.0044bbe0
test eax, eax
jle 0x422d20
mov esi, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x24], 1
mov dword [esp + 0x40], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x422c6a
cmp eax, dword [esi - 0x10]
jne 0x422c6a
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x422ca3
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x422c83
call fcn.00403b90
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0055701e
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
add edi, 0x10
lea ecx, [esp + 0x88]
mov dword [ebx], edi
call fcn.00423000
add esp, 0xc
test eax, eax
je 0x422d20
cmp dword [esp + 0x2c], 0
jne 0x422d20
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00558a2b
add esp, 8
test eax, eax
js 0x422b71
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x422b71
xor edx, edx
push edx
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
push str.return___08x
mov word [ecx + eax*2], dx
lea edx, [esp + 0x38]
push 2
push edx
call fcn.0044cd10
mov byte [esp + 0x4c88], 8
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
jmp 0x422941
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00558a2b
add esp, 8
test eax, eax
js 0x422b71
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x422b71
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp dword [esp + 0x1c], ecx
jne 0x422eb1
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422dbf
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x4a60]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push str.SystemRoot
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call fcn.00403910
lea eax, [esp + 0x4a5c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422dd2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4a60]
push eax
lea ecx, [esp + 0x1c]
call fcn.004039c0
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.0040fb30
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x422e2d
push 0x104
lea ecx, [esp + 0x18]
call fcn.00403a70
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.0044bbe0
test eax, eax
jle 0x422e7e
push eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x6c], esp
mov esi, esp
push eax
call fcn.00404900
lea ecx, [esp + 0x48]
add esp, 4
add eax, 0x10
push ecx
lea ecx, [esp + 0x88]
mov dword [esi], eax
call fcn.00423000
add esp, 0xc
test eax, eax
je 0x422e7e
cmp dword [esp + 0x2c], 0
je 0x422cc7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00558a2b
add esp, 8
test eax, eax
js 0x422b71
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x422b71
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
mov esi, dword [esp + 0x2c]
push esi
push str.return___08x
lea eax, [esp + 0x38]
push 2
push eax
call fcn.0044cd10
mov byte [esp + 0x4c88], 8
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422ef2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c78], 7
call fcn.0046c766
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4c78], 6
call fcn.0044a280
mov byte [esp + 0x4c78], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422f3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c78], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422f64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c78], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422f8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x4c78], 2
call fcn.0046c766
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.0046c766
lea ecx, [esp + 0x256c]
mov byte [esp + 0x4c78], 0
call fcn.0044a280
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c78], 0xffffffff
call fcn.0044cc70
mov eax, esi
mov ecx, dword [esp + 0x4c70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c58]
xor ecx, esp
call fcn.0055649d
mov esp, ebp
pop ebp
ret