Function at 0x4140ef
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x28]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
mov dword [ebp - 0x3c], ebx
call fcn.0040346a
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push 5
pop eax
xor edi, edi
mov dword [ebx + 0xc], eax
mov ecx, ebx
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
call fcn.00402a72
push 0x1fe
lea eax, [ebp - 0x368]
push edi
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x168]
mov esi, 0x104
push esi
push edi
push eax
call fcn.004012cf
add esp, 0xc
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x414331
mov esi, edi
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x14], edi
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0x368]
mov dword [ebp - 4], edi
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x38], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 8]
call fcn.0040346a
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 8]
call fcn.004034f3
lea eax, [ebp - 4]
push eax
push 0x101
push edi
push dword [ebp - 8]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x30]
push eax
push 0x41a548
lea ecx, [ebp - 0x1c]
call fcn.0040346a
push eax
lea ecx, [ebp - 4]
call fcn.00415f1a
mov ecx, dword [ebp - 0x1c]
mov edi, eax
call fcn.004068b7
and dword [ebp - 0x1c], 0
cmp dword [ebp - 4], 0
je 0x414244
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
test edi, edi
je 0x4142f2
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040346a
push eax
lea ecx, [ebp - 0x14]
call fcn.004035de
mov ecx, dword [ebp - 0x20]
call fcn.004068b7
lea eax, [ebp - 0x24]
xor edi, edi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], edi
call fcn.00403352
push eax
lea ecx, [ebp - 0x10]
call fcn.004035de
mov ecx, dword [ebp - 0x24]
call fcn.004068b7
push ecx
push ecx
mov ebx, esp
mov dword [ebp - 0x24], edi
mov dword [ebx], edi
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4142bf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
push edi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [ebx + 4], 0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4142e8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
push edi
push eax
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [ebp - 0x3c]
mov ecx, ebx
call fcn.00402986
mov ecx, dword [ebp - 8]
call fcn.004068b7
mov ecx, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 8], edi
test ecx, ecx
je 0x41430b
call fcn.00406955
mov dword [ebp - 0x30], edi
cmp dword [ebp - 4], edi
je 0x41431c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.004026fc
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4141a7
mov ecx, dword [ebp - 0x28]
call fcn.004068b7
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret