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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55d8b4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4c5c
call fcn.00539330
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0x4c58], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, esp
push eax
lea eax, [esp + 0x4c70]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [esp + 0x34]
push str.Tool_DeleteINF
push eax
call fcn.0040ac70
add esp, 0xc
lea ecx, [esp + 0x256c]
push ecx
mov dword [esp + 0x4c7c], edi
mov dword [esp + 0x30], 1
call fcn.0043d920
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.00441da6
lea ecx, [esp + 0x68]
mov byte [esp + 0x4c78], 2
call fcn.00441da6
push 0x58a8c8
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c7c], 3
call fcn.00401210
push 0x58a8c8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c7c], 4
call fcn.00401210
push 0x58a8c8
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c7c], 5
call fcn.00401210
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x4c7c], 6
call fcn.0043d920
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4c78], 7
call fcn.00441da6
mov byte [esp + 0x4c78], 8
mov dword [esp + 0x20], edi
call fcn.00442c4d
mov esi, dword [eax + 4]
call fcn.0040bea0
mov eax, dword [esi + 0xbc]
sub eax, 0x10
push eax
call fcn.004017c0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], ebx
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x44]
mov byte [esp + 0x4c80], 9
call fcn.00441e85
xor esi, esi
mov eax, dword [ebx - 0xc]
test esi, esi
js 0x41d111
cmp esi, eax
jge 0x41d111
lea eax, [ebx + esi*2]
push 9
push eax
call fcn.00534181
add esp, 8
test eax, eax
je 0x41d111
sub eax, ebx
sar eax, 1
mov edi, eax
js 0x41d111
cmp edi, esi
jle 0x41d109
mov ecx, edi
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
call fcn.00404fc0
lea eax, [esp + 0x18]
mov byte [esp + 0x4c78], 0xb
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00442275
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 0x41d109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [edi + 1]
jmp 0x41d085
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00413950
lea edx, [esp + 0x18]
mov byte [esp + 0x4c78], 0xa
mov eax, dword [esp + 0x44]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.00442275
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 0x41d163
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 0x41d2a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push str.return___08x
lea edx, [esp + 0x38]
push 2
push edx
call fcn.0040aed0
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 0x41d1be
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.004420db
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4c78], 6
call fcn.0043dae0
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 0x41d208
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 0x41d230
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 0x41d258
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.004420db
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.004420db
lea ecx, [esp + 0x256c]
mov byte [esp + 0x4c78], 0
call fcn.0043dae0
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c78], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x41d836
lea eax, [esp + 0x4a5c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d2b3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a60]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004016b0
push 0xb
push str.infother_
lea ecx, [esp + 0x1c]
call fcn.004058b0
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 0x41d30e
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401760
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.0043f430
test eax, eax
jle 0x41d414
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 + 0x28], 1
mov dword [esp + 0x40], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x41d35d
cmp eax, dword [esi - 0x10]
jne 0x41d35d
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41d396
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 0x41d376
call fcn.00401830
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.005339f7
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
add edi, 0x10
lea ecx, [esp + 0x88]
mov dword [ebx], edi
call fcn.0041d860
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 0x41d414
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x41d3ee
cmp dword [ecx - 8], 0
jge 0x41d3dc
push 0x80070057
call fcn.004010a0
mov dword [ecx - 0xc], 0
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [eax], dx
jmp 0x41d414
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d404
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]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d420
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x4a60]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004016b0
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.004058b0
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 0x41d47b
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401760
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.0043f430
test eax, eax
jle 0x41d580
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 + 0x28], 1
mov dword [esp + 0x40], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x41d4ca
cmp eax, dword [esi - 0x10]
jne 0x41d4ca
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x41d503
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 0x41d4e3
call fcn.00401830
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.005339f7
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
add edi, 0x10
lea ecx, [esp + 0x88]
mov dword [ebx], edi
call fcn.0041d860
add esp, 0xc
test eax, eax
je 0x41d580
cmp dword [esp + 0x2c], 0
jne 0x41d580
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005343a3
add esp, 8
test eax, eax
js 0x41d3d2
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x41d3d2
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.0040aed0
mov byte [esp + 0x4c88], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
jmp 0x41d1a2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005343a3
add esp, 8
test eax, eax
js 0x41d3d2
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x41d3d2
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
cmp dword [esp + 0x20], ecx
jne 0x41d70f
lea eax, [esp + 0x18]
push eax
push 0x20019
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x4c], 1
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d61b
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
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 + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call fcn.00401600
lea eax, [esp + 0x4a5c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d630
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x4a60]
push eax
lea ecx, [esp + 0x1c]
call fcn.004016b0
push 5
push str.inf_
lea ecx, [esp + 0x1c]
call fcn.004058b0
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 0x41d68b
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401760
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x80]
call fcn.0043f430
test eax, eax
jle 0x41d6dc
push eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x6c], esp
mov esi, esp
push eax
call fcn.004017c0
lea ecx, [esp + 0x48]
add esp, 4
add eax, 0x10
push ecx
lea ecx, [esp + 0x88]
mov dword [esi], eax
call fcn.0041d860
add esp, 0xc
test eax, eax
je 0x41d6dc
cmp dword [esp + 0x2c], 0
je 0x41d527
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.005343a3
add esp, 8
test eax, eax
js 0x41d3d2
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x41d3d2
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.0040aed0
mov byte [esp + 0x4c88], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d750
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.004420db
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4c78], 6
call fcn.0043dae0
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 0x41d79a
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 0x41d7c2
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 0x41d7ea
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.004420db
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c78], 1
call fcn.004420db
lea ecx, [esp + 0x256c]
mov byte [esp + 0x4c78], 0
call fcn.0043dae0
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c78], 0xffffffff
call fcn.0040ae50
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.005337cb
mov esp, ebp
pop ebp
ret