Function at 0x418f46
Capabilities:
Enumerate files on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x470]
sub esp, 0x4f0
mov eax, dword [0x4560a0]
push ebx
push esi
push edi
mov dword [ebp + 0x46c], eax
xor esi, esi
lea eax, [ebp - 0x80]
push 0x20
push eax
mov dword [ebp + 4], esi
mov dword [ebp + 0x10], esi
mov dword [ebp], esi
call fcn.00418d4f
pop ecx
pop ecx
lea eax, [ebp + 4]
push eax
push 0x20019
push esi
push 0x403600
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, dword [ebp + 0x478]
jne 0x419135
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push 0x4035e8
push dword [ebp + 4]
mov dword [ebp + 8], 4
call edi
test eax, eax
jne 0x41905d
cmp dword [ebp + 0xc], 4
jne 0x41905d
cmp dword [ebp + 0x10], esi
jne 0x41901f
push 0x4035cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41900d
push 0x4035b0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419006
call eax
movzx eax, ax
mov dword [ebp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp + 0x10], 0
jne 0x41901f
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebp + 0x10], eax
push 0x20
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x10]
call fcn.00418d62
add esp, 0xc
cmp eax, 1
je 0x41905d
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.00418d98
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4192ef
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x403590
push dword [ebp + 4]
mov dword [ebp + 8], esi
call edi
test eax, eax
jne 0x4190d0
cmp dword [ebp + 0xc], esi
jne 0x4190d0
cmp dword [ebp + 0x10], eax
jne 0x419092
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp + 0x10], eax
push 0x20
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x10]
call fcn.00418d62
add esp, 0xc
cmp eax, 1
je 0x4190d0
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.00418d98
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4192ef
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x403578
push dword [ebp + 4]
mov dword [ebp + 8], esi
call edi
test eax, eax
jne 0x419135
cmp dword [ebp + 0xc], esi
jne 0x419135
push 0x20
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x10]
call fcn.00418d62
add esp, 0xc
cmp eax, 1
je 0x419135
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.00418d98
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4192ef
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x20
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp + 0x10], eax
call fcn.00418d62
add esp, 0xc
cmp eax, 1
je 0x41917a
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.00418d98
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4192ef
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0x20
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp + 0x10], eax
call fcn.00418d62
add esp, 0xc
cmp eax, 1
je 0x4191bf
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.00418d98
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4192ef
lea eax, [ebp + 0x14]
mov dword [ebp + 0xc], eax
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 8], 0x104
call fcn.00418caf
add esp, 0xc
test eax, eax
mov edi, 0x409
jne 0x419299
push 0x403570
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00418caf
add esp, 0xc
test eax, eax
jne 0x419299
mov eax, dword [ebp + 0xc]
and word [eax], 0
lea eax, [ebp + 0x21c]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp], eax
je 0x419299
test byte [ebp + 0x21c], 0x10
je 0x419285
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x248]
push eax
call fcn.00418c76
test eax, eax
pop ecx
pop ecx
jne 0x419285
cmp dword [ebp + 0x10], edi
je 0x419285
push 0x20
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x10]
call fcn.00418d62
add esp, 0xc
cmp eax, 1
je 0x419285
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.00418d98
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4192ef
lea eax, [ebp + 0x21c]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x419227
push 0x20
lea eax, [ebp - 0x80]
push eax
push edi
mov dword [ebp + 0x10], edi
call fcn.00418d62
add esp, 0xc
cmp eax, 1
je 0x4192d2
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push edi
push ebx
call fcn.00418d98
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4192ef
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push ebx
call fcn.00418e8a
add esp, 0x10
mov esi, eax
cmp dword [ebp + 4], 0
je 0x4192fe
push dword [ebp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp], 0
je 0x41930d
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x46c]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0041519d
add ebp, 0x470
leave
ret