Function at 0x404830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
mov ebp, esp
mov dword [esp], 1
add ecx, eax
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp + 8], ecx
mov word [esp + 0xc], 0
push ebp
push eax
call fcn.004078f0
add esp, 8
mov eax, dword [esp + 0x70]
mov dword [esp], 1
mov dword [esp + 4], esi
add eax, esi
mov dword [esp + 8], eax
mov word [esp + 0xc], 0
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.004078f0
add esp, 8
mov esi, dword [esp + 0x3c]
mov ecx, ebx
mov edx, esi
call fcn.004047b0
test eax, eax
je 0x404a1a
mov dword [esp + 0x10], 0x800
mov ebx, edx
movzx eax, byte [0x537199]
push 1
push 0x800
call fcn.00403b10
add esp, 8
test eax, eax
je 0x404bbe
mov edi, dword [esp + 0x30]
mov ebp, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x800
mov dword [esp + 0x14], 0
push edi
call fcn.00404e40
add esp, 4
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
push ebp
push ecx
push 0
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x404ad7
mov dword [esp + 0x20], esi
lea esi, [esp + 4]
push eax
call fcn.00415a00
add esp, 4
push eax
call fcn.004152e0
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 1
push esi
nop word cs:[eax + eax]
nop
call fcn.00413fb0
add esp, 4
mov esi, eax
push 0xea
call fcn.00415a00
add esp, 4
cmp esi, eax
jne 0x404a22
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
test edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
jne 0x4049fd
test eax, eax
je 0x4049a0
lea eax, [esp + 0x18]
push eax
call fcn.00414ed0
add esp, 4
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], 0
push edi
call fcn.00404e40
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x404ad3
push eax
call fcn.00415a00
add esp, 4
push eax
call fcn.004152e0
add esp, 4
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov dword [esp + 8], edx
mov dword [esp], 1
push eax
jmp 0x404950
push edx
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0043a730
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x404993
jmp 0x4049a0
mov dword [edi], 0
jmp 0x404a9b
mov edi, dword [esp + 0x5c]
cmp dword [esp], 0
mov dword [edi], 0
je 0x404a46
cmp dword [esp + 8], 0
je 0x404a46
lea eax, [esp + 8]
push eax
call fcn.00414ed0
add esp, 4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
test eax, eax
je 0x404a5e
push 1
push eax
push ebp
call fcn.00403b20
add esp, 0xc
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
je 0x404a9b
push eax
call fcn.00415a00
add esp, 4
push eax
call fcn.004152e0
add esp, 4
test edx, edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 1
je 0x404a9b
lea eax, [esp + 8]
push eax
call fcn.00414ed0
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x404ab4
add eax, eax
push 2
push eax
push dword [esp + 0x38]
call fcn.00403b20
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
je 0x404bb4
add eax, eax
push 2
push eax
push esi
call fcn.00403b20
add esp, 0xc
jmp 0x404bb4
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov word [esp], 0
mov dword [esp + 4], ebp
and eax, 0xfffffffe
add eax, ebp
mov dword [esp + 8], eax
mov eax, esp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004044b0
add esp, 8
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x404b1e
mov edx, dword [esp + 0x14]
nop dword [eax]
cmp byte [edx + ecx - 1], 0
jne 0x404b1c
dec ecx
jne 0x404b10
jmp 0x404b1e
mov eax, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
movsd xmm0, qword [esp + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
movsd qword [ecx], xmm0
test eax, eax
je 0x404b47
push 1
push eax
push ebp
call fcn.00403b20
add esp, 0xc
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
je 0x404b84
push eax
call fcn.00415a00
add esp, 4
push eax
call fcn.004152e0
add esp, 4
test edx, edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 1
je 0x404b84
lea eax, [esp + 8]
push eax
call fcn.00414ed0
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x404b9a
add eax, eax
push 2
push eax
push edi
call fcn.00403b20
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
je 0x404bb0
add eax, eax
push 2
push eax
push esi
call fcn.00403b20
add esp, 0xc
mov edi, dword [esp + 0x5c]
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x800
push 1
call fcn.0043daa0
add esp, 8
ud2