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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x566bd4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4c5c
call fcn.00542ad0
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x4c58], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x4c70]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [esp + 0x34]
push str.Tool_DeleteINF
push eax
call fcn.00401190
add esp, 0xc
push 0x208
lea ecx, [esp + 0x4a60]
push esi
push ecx
mov dword [esp + 0x4c84], esi
call fcn.00541d20
add esp, 0xc
lea edx, [esp + 0x256c]
push edx
mov dword [esp + 0x30], 1
call fcn.004461e0
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.0044a6ce
lea ecx, [esp + 0x68]
mov byte [esp + 0x4c78], 2
call fcn.0044a6ce
push 0x5988ec
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c7c], 3
call fcn.00404f00
push 0x5988ec
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c7c], 4
call fcn.00404f00
push 0x5988ec
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c7c], 5
call fcn.00404f00
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x4c7c], 6
call fcn.004461e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c78], 7
call fcn.0044a6ce
mov byte [esp + 0x4c78], 8
mov dword [esp + 0x1c], esi
call fcn.0044b52d
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xbc]
sub eax, 0x10
push eax
call fcn.00406410
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.0044a765
mov eax, dword [ebx - 0xc]
test esi, esi
js 0x426410
cmp esi, eax
jge 0x426410
lea ecx, [ebx + esi*2]
push 9
push ecx
call fcn.0053d8a3
add esp, 8
test eax, eax
je 0x426410
sub eax, ebx
sar eax, 1
mov edi, eax
js 0x426410
cmp edi, esi
jle 0x426408
mov edx, edi
sub edx, esi
push edx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040a450
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c78], 0xb
mov edx, dword [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.0044ab55
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 0x426408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [edi + 1]
jmp 0x426384
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.004103b0
lea edx, [esp + 0x18]
mov byte [esp + 0x4c78], 0xa
mov eax, dword [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0044ab55
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 0x426462
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 0x4265a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push str.return___08x
lea edx, [esp + 0x38]
push 2
push edx
call fcn.00401410
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 0x4264bd
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.0044a9bb
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4c78], 6
call fcn.004463d0
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 0x426507
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 0x42652f
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 0x426557
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.0044a9bb
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.0044a9bb
lea ecx, [esp + 0x256c]
mov byte [esp + 0x4c78], 0
call fcn.004463d0
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c78], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x426b38
lea eax, [esp + 0x4a5c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4265b2
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a60]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405470
push 0xb
push str.infother_
lea ecx, [esp + 0x1c]
call fcn.0040a930
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 0x42660d
push 0x104
lea ecx, [esp + 0x18]
call fcn.00405520
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.00447d30
test eax, eax
jle 0x426713
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 0x42665c
cmp eax, dword [esi - 0x10]
jne 0x42665c
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x426695
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 0x426675
call fcn.00405640
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.0053d708
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
add edi, 0x10
lea ecx, [esp + 0x88]
mov dword [ebx], edi
call fcn.00426b60
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 0x426713
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x4266ed
cmp dword [ecx - 8], 0
jge 0x4266db
push 0x80070057
call fcn.00404160
mov dword [ecx - 0xc], 0
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [eax], dx
jmp 0x426713
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x426703
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 0x426720
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a60]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405470
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.0040a930
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 0x42677b
push 0x104
lea ecx, [esp + 0x18]
call fcn.00405520
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.00447d30
test eax, eax
jle 0x426880
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 0x4267ca
cmp eax, dword [esi - 0x10]
jne 0x4267ca
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x426803
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 0x4267e3
call fcn.00405640
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.0053d708
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
add edi, 0x10
lea ecx, [esp + 0x88]
mov dword [ebx], edi
call fcn.00426b60
add esp, 0xc
test eax, eax
je 0x426880
cmp dword [esp + 0x2c], 0
jne 0x426880
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0053dae6
add esp, 8
test eax, eax
js 0x4266d1
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x4266d1
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.00401410
mov byte [esp + 0x4c88], 8
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
jmp 0x4264a1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0053dae6
add esp, 8
test eax, eax
js 0x4266d1
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x4266d1
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 0x426a11
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 0x42691f
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.004053c0
lea eax, [esp + 0x4a5c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426932
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4a60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405470
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.0040a930
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 0x42698d
push 0x104
lea ecx, [esp + 0x18]
call fcn.00405520
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.00447d30
test eax, eax
jle 0x4269de
push eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x6c], esp
mov esi, esp
push eax
call fcn.00406410
lea ecx, [esp + 0x48]
add esp, 4
add eax, 0x10
push ecx
lea ecx, [esp + 0x88]
mov dword [esi], eax
call fcn.00426b60
add esp, 0xc
test eax, eax
je 0x4269de
cmp dword [esp + 0x2c], 0
je 0x426827
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0053dae6
add esp, 8
test eax, eax
js 0x4266d1
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x4266d1
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.00401410
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 0x426a52
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.0044a9bb
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4c78], 6
call fcn.004463d0
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 0x426a9c
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 0x426ac4
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 0x426aec
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.0044a9bb
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.0044a9bb
lea ecx, [esp + 0x256c]
mov byte [esp + 0x4c78], 0
call fcn.004463d0
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c78], 0xffffffff
call fcn.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret