Function at 0x4c0350
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x528a66
push eax
mov eax, 0x2010
mov dword fs:[0], esp
call fcn.0042c7e0
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
mov esi, ecx
mov ecx, dword [0x582ddc]
cmp dword [ecx - 0xc], ebx
jne 0x4c054b
cmp dword [esi + 8], ebx
je 0x4c0392
cmp dword [esi + 0xc], ebx
jne 0x4c03cf
call fcn.00517ba7
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x4c03aa
mov ecx, dword [eax + 0x50]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0x64]
mov dword [esi + 0xc], edx
cmp dword [esi + 8], ebx
je 0x4c03b4
cmp dword [esi + 0xc], ebx
jne 0x4c03cf
mov eax, dword [esp + 0x2034]
mov esi, dword [esp + 0x2028]
push eax
mov ecx, esi
call fcn.00402aa0
jmp 0x4c0495
mov eax, dword [esp + 0x202c]
mov edx, dword [esi]
push edi
push 0x20019
push eax
mov ecx, esi
call dword [edx + 8]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebx
mov dword [esp + 0x2024], ebx
jne 0x4c0410
mov ecx, dword [esp + 0x2038]
mov esi, dword [esp + 0x202c]
push ecx
mov ecx, esi
call fcn.00402aa0
jmp 0x4c0494
push ebp
call fcn.005011a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x2038]
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebp
push edi
mov byte [esp + 0x2040], 1
call ebx
test eax, eax
mov dword [esi + 0x10], eax
je 0x4c04b0
mov edx, dword [esp + 0x203c]
mov esi, dword [esp + 0x2030]
push edx
mov ecx, esi
call fcn.00402aa0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2028], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c048c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
mov ecx, dword [esp + 0x2018]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x201c
ret 0x10
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
shr ecx, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402f10
push eax
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
push edi
call ebx
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esi + 0x10], eax
jne 0x4c04e0
xor eax, eax
jmp 0x4c04ed
push ebp
call fcn.0042c3dd
add esp, 4
test eax, eax
jl 0x4c0541
cmp eax, dword [ebp - 8]
jg 0x4c0541
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2], 0
mov eax, dword [esi + 0x10]
test eax, eax
mov esi, dword [esp + 0x2030]
je 0x4c0527
mov eax, dword [esp + 0x203c]
push eax
mov ecx, esi
call fcn.00402aa0
lea ecx, [esp + 0x10]
call fcn.00402b10
jmp 0x4c048c
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00402c90
lea ecx, [esp + 0x10]
call fcn.00402b10
jmp 0x4c048c
push 0x80070057
call fcn.00403070
mov eax, dword [esp + 0x2034]
cmp eax, ebx
mov dword [esp + 8], ebx
jne 0x4c055e
lea eax, [esp + 8]
push ecx
mov ecx, dword [esp + 0x2030]
push 0x1000
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x2040]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esp + 0x2028]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00402aa0
jmp 0x4c0495