Function at 0x482860
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5b2267
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x8a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8b4]
cmp dword [eax], 0
mov dword [esp + 0x30], eax
jne 0x482e5b
push 0x104
lea eax, [esp + 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x490]
call fcn.00406c20
lea ebx, [esp + 0x18]
mov dword [esp + 0x8ac], 0
call fcn.00431750
mov ebx, eax
call fcn.004317d0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x482926
add eax, 0xfffffff0
mov dword [esp + 0x8ac], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48291f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x482e60
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.00482f30
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x5cb130
mov byte [esp + 0x8b0], 1
call fcn.00482fa0
add esp, 4
test al, al
je 0x482975
lea edx, [esp + 0x24]
push edx
mov ecx, 0x5cc530
call fcn.00482fa0
add esp, 4
test al, al
je 0x482975
mov edx, 0x5cb130
lea edi, [esp + 0x18]
call fcn.0040dcd0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4829d0
mov byte [esp + 0x8ac], 0
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 0x4829ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8ac], 0xffffffff
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
jmp 0x482913
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ebx, str..cpl
call fcn.00406330
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x44], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x482a1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0xffffffff
jne 0x482a3c
lea ecx, [esp + 0x24]
call fcn.004066e0
lea ecx, [esp + 0x18]
call fcn.004066e0
xor eax, eax
jmp 0x482e60
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x26c]
call fcn.00406c20
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0x20]
mov byte [esp + 0x8b4], 2
call fcn.0040ddd0
mov byte [esp + 0x8b4], 3
mov eax, dword [esp + 0x1c]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
call fcn.00406580
add eax, 0x10
mov dword [esi], eax
call fcn.00482710
test eax, eax
jne 0x482d90
push 0x208
push eax
lea ecx, [esp + 0x69c]
push ecx
call fcn.0058e300
add esp, 0xc
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x698]
push eax
lea ecx, [esp + 0x54]
push ecx
push edx
push str.Control_Paneldont_load
push SysReAllocStringLen
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x482d90
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x482b1c
mov byte [esp + 0x8ac], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x482dac
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [esp + 0x34], esi
test esi, esi
jne 0x482b50
lea ecx, [esp + 0x1c]
call fcn.004066e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x8ac], 1
call fcn.004066e0
jmp 0x482de0
push str.CPlApplet
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
jne 0x482b75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x482b31
push 0
push 0
push 1
push 0
call ebx
push 0
push 0
push 2
push 0
call ebx
xor ebp, ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ebp
test eax, eax
jle 0x482d7f
jmp 0x482ba0
push 0x10
call fcn.005851c0
xor edi, edi
add esp, 4
cmp eax, edi
je 0x482bbb
mov esi, eax
call fcn.004815d0
mov esi, eax
jmp 0x482bbd
xor esi, esi
lea edx, [esp + 0x64]
push edx
push ebp
push 8
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
call ebx
mov eax, dword [0x621148]
mov edx, dword [eax + 0xc]
mov ecx, 0x621148
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
cmp ebp, edi
mov byte [esp + 0x8ac], 4
lea edi, [esp + 0x20]
jne 0x482c0e
mov eax, dword [esp + 0x14]
push eax
push 0x5ce658
call fcn.00406280
add esp, 8
jmp 0x482c21
mov ecx, dword [esp + 0x14]
push ebp
push ecx
push str._s___d
call fcn.00406280
add esp, 0xc
mov eax, dword [esp + 0x64]
cmp eax, 0x1d4
jne 0x482ca1
lea edx, [esp + 0xb8]
mov edi, esi
call fcn.00406be0
lea ebx, [esi + 4]
lea edx, [esp + 0x78]
mov edi, ebx
call fcn.00406be0
lea edi, [esi + 8]
lea eax, [esp + 0x20]
call fcn.00406500
mov edx, dword [esp + 0x74]
mov dword [esi + 0xc], edx
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x482d3c
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
je 0x482d3c
test edx, edx
je 0x482d3c
mov edi, dword [esp + 0x30]
add edi, 4
lea ebx, [esp + 0x28]
call fcn.004949a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x8ac], 3
call fcn.004066e0
jmp 0x482d64
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], edx
cmp eax, 0xf4
je 0x482ce4
lea eax, [esp + 0x54]
push eax
push ebp
push 3
push 0
call ebx
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x34]
push 0x20
lea ecx, [esp + 0x7c]
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
movzx eax, word [esp + 0x54]
push eax
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x3c], eax
lea ebx, [esp + 0x98]
mov eax, esi
call fcn.0044de70
lea ebp, [esi + 4]
lea ebx, [esp + 0x78]
mov eax, ebp
call fcn.0044de70
lea edi, [esi + 8]
lea eax, [esp + 0x20]
call fcn.00406500
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov edx, dword [ebp]
cmp dword [edx - 0xc], 0
je 0x482d4f
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x482d4f
test ecx, ecx
je 0x482d4f
mov edi, dword [esp + 0x30]
add edi, 4
lea ebx, [esp + 0x28]
call fcn.004949a0
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x8ac], 3
call fcn.004066e0
jmp 0x482d64
lea ecx, [esp + 0x20]
mov byte [esp + 0x8ac], 3
call fcn.004066e0
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x40]
inc ebp
cmp ebp, dword [esp + 0x38]
mov dword [esp + 0x2c], ebp
jl 0x482ba0
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
push 0
push 0
push 7
push 0
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esp + 0x8ac], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482db8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8ac], 1
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 0x482de0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x23c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x482a3c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x30]
mov byte [esp + 0x8ac], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [edx], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x482e30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8ac], 0xffffffff
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 0x482e5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x8a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.005886fc
add esp, 0x89c
ret 4