Function at 0x4149d9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41608a
call fcn.004147c5
sub esp, 0x694
mov eax, dword [0x41d000]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
xor ebx, ebx
mov edx, 0x81
mov word [ebp - 0x248], bx
mov ecx, edx
lea edi, [ebp - 0x246]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xb
pop ecx
xor eax, eax
mov word [ebp - 0x40], bx
lea edi, [ebp - 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x450], bx
mov ecx, edx
lea edi, [ebp - 0x44e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x450]
mov esi, 0x104
push esi
push eax
push ebx
mov dword [ebp - 0x698], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jbe 0x414a88
cmp eax, esi
jae 0x414a88
lea eax, [ebp + eax*2 - 0x452]
jmp 0x414a68
cmp word [eax], 0x5c
je 0x414a7e
dec eax
dec eax
lea ecx, [ebp - 0x450]
cmp eax, ecx
mov dword [ebp - 0x698], eax
ja 0x414a60
cmp word [eax], 0x5c
jne 0x414a8f
inc eax
inc eax
mov dword [ebp - 0x698], eax
jmp 0x414a8f
mov word [ebp - 0x450], bx
mov dword [ebp - 0x69c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x69c]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x4029f8
push SysReAllocStringLen
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x414b62
lea eax, [ebp - 0x694]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x694], ebx
push dword [ebp - 0x69c]
call esi
test eax, eax
jne 0x414b4e
lea eax, [ebp - 0x690]
push eax
push edi
push ebx
push 0x402b34
push dword [ebp - 0x694]
mov dword [ebp - 0x690], ebx
call esi
test eax, eax
jne 0x414b3a
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push 0x4019b0
push dword [ebp - 0x690]
mov dword [ebp - 0x6a0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414b33
mov word [ebp - 0x42], bx
jmp 0x414b3a
mov word [ebp - 0x248], bx
cmp dword [ebp - 0x690], ebx
je 0x414b4e
push dword [ebp - 0x690]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x694], ebx
je 0x414b62
push dword [ebp - 0x694]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x248], bx
je 0x414c4e
push 0x402b1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402b04
push eax
mov dword [ebp - 0x690], eax
call esi
lea ecx, [ebp - 0x694]
push ecx
lea ecx, [ebp - 0x248]
push ecx
call eax
cmp eax, ebx
mov dword [ebp - 0x694], eax
jne 0x414bb1
mov word [ebp - 0x40], bx
jmp 0x414c4e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x414c4e
push 0x402af0
push dword [ebp - 0x690]
call esi
push edi
push dword [ebp - 0x694]
lea ecx, [ebp - 0x248]
push ebx
push ecx
call eax
test eax, eax
je 0x414c3f
push 0x402ae0
push dword [ebp - 0x690]
call esi
lea ecx, [ebp - 0x690]
push ecx
lea ecx, [ebp - 0x6a0]
push ecx
push 0x401c64
push edi
call eax
test eax, eax
je 0x414c3f
mov eax, dword [ebp - 0x6a0]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x40]
push 0x402ac8
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x18
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x68c], bx
mov ecx, 0x8e
lea edi, [ebp - 0x68a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x68c]
push 0x402ab4
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
lea eax, [ebp - 0x68c]
push eax
push 0x5330
push 4
push dword [ebp - 0x698]
call fcn.004147f2
cmp dword [ebp - 0x69c], ebx
mov esi, eax
je 0x414cb8
push dword [ebp - 0x69c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041476c
leave
ret 4