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

Disassembly:
push ebp
lea ebp, [esp - 0x470]
sub esp, 0x4f0
mov eax, dword [0x40d3f8]
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.00409560
pop ecx
pop ecx
lea eax, [ebp + 4]
push eax
push 0x20019
push esi
push 0x401c90
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, dword [ebp + 0x478]
jne 0x409946
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 0x401c78
push dword [ebp + 4]
mov dword [ebp + 8], 4
call edi
test eax, eax
jne 0x40986e
cmp dword [ebp + 0xc], 4
jne 0x40986e
cmp dword [ebp + 0x10], esi
jne 0x409830
push 0x401c5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40981e
push 0x401c40
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409817
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 0x409830
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.00409573
add esp, 0xc
cmp eax, 1
je 0x40986e
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.004095a9
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x409b00
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 0x401c20
push dword [ebp + 4]
mov dword [ebp + 8], esi
call edi
test eax, eax
jne 0x4098e1
cmp dword [ebp + 0xc], esi
jne 0x4098e1
cmp dword [ebp + 0x10], eax
jne 0x4098a3
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.00409573
add esp, 0xc
cmp eax, 1
je 0x4098e1
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.004095a9
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x409b00
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 0x401c08
push dword [ebp + 4]
mov dword [ebp + 8], esi
call edi
test eax, eax
jne 0x409946
cmp dword [ebp + 0xc], esi
jne 0x409946
push 0x20
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x10]
call fcn.00409573
add esp, 0xc
cmp eax, 1
je 0x409946
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.004095a9
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x409b00
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x20
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp + 0x10], eax
call fcn.00409573
add esp, 0xc
cmp eax, 1
je 0x40998b
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.004095a9
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x409b00
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push 0x20
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp + 0x10], eax
call fcn.00409573
add esp, 0xc
cmp eax, 1
je 0x4099d0
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.004095a9
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x409b00
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.004094c0
add esp, 0xc
test eax, eax
mov edi, 0x409
jne 0x409aaa
push 0x401c00
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004094c0
add esp, 0xc
test eax, eax
jne 0x409aaa
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 0x409aaa
test byte [ebp + 0x21c], 0x10
je 0x409a96
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x248]
push eax
call fcn.00409487
test eax, eax
pop ecx
pop ecx
jne 0x409a96
cmp dword [ebp + 0x10], edi
je 0x409a96
push 0x20
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x10]
call fcn.00409573
add esp, 0xc
cmp eax, 1
je 0x409a96
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push dword [ebp + 0x10]
push ebx
call fcn.004095a9
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x409b00
lea eax, [ebp + 0x21c]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409a38
push 0x20
lea eax, [ebp - 0x80]
push eax
push edi
mov dword [ebp + 0x10], edi
call fcn.00409573
add esp, 0xc
cmp eax, 1
je 0x409ae3
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push edi
push ebx
call fcn.004095a9
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x409b00
push dword [ebp + 0x484]
push dword [ebp + 0x480]
push dword [ebp + 0x47c]
push ebx
call fcn.0040969b
add esp, 0x10
mov esi, eax
cmp dword [ebp + 4], 0
je 0x409b0f
push dword [ebp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp], 0
je 0x409b1e
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.0040505a
add ebp, 0x470
leave
ret