Function at 0x404340
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40eb22
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x41401c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x288]
xor ebx, ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x54], ebx
mov esi, 1
push ebp
mov dword [esp + 0x284], esi
call fcn.00403410
mov dword [esp + 0x54], esi
push str.Installed_effects
lea edi, [ebx + 0x12]
lea esi, [esp + 0x18]
mov dword [esp + 0x18], vtable.NBString.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00407d10
lea eax, [esp + 0x28c]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x284], 2
call fcn.00409990
add esp, 4
mov ecx, esi
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, eax
mov byte [esp + 0x288], 3
call fcn.00407dd0
mov eax, dword [esp + 0x60]
mov esi, vtable.NBString.0
mov dword [esp + 0x58], esi
cmp eax, ebx
je 0x404414
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x280], 6
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404431
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x20]
push eax
push 0x20019
push ebx
push ecx
push 0x80000001
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jne 0x404619
lea esp, [esp]
push 0x103
lea edx, [esp + 0x69]
push ebx
push edx
mov byte [esp + 0x70], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x103
lea eax, [esp + 0x171]
push ebx
mov esi, 0x104
push eax
mov dword [esp + 0x4c], esi
mov byte [esp + 0x178], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x170]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push ebx
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x78]
push edx
push eax
push ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebp, eax
cmp ebp, ebx
jne 0x404604
mov eax, dword [esp + 0x40]
cmp eax, ebx
jbe 0x404604
cmp dword [esp + 0x38], 1
jne 0x404604
mov dword [esp + 0x14], vtable.NBString.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp eax, 0xffffffff
jne 0x404519
lea eax, [esp + 0x64]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404510
sub eax, edx
lea edx, [esp + 0x64]
push edx
mov edi, eax
lea esi, [esp + 0x18]
call fcn.00407d10
mov byte [esp + 0x280], 7
mov eax, dword [esp + 0x44]
cmp eax, ebx
jbe 0x4045db
mov dword [esp + 0x2c], vtable.NBString.0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp eax, 0xffffffff
jne 0x404569
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404560
sub eax, edx
lea ecx, [esp + 0x16c]
push ecx
mov edi, eax
lea esi, [esp + 0x30]
call fcn.00407d10
mov byte [esp + 0x280], 8
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], ebx
je 0x4045be
lea edx, [esp + 0x3c]
push edx
push 0x410374
push esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.MSVCR90.dll_sscanf_s]
add esp, 0xc
test eax, eax
jle 0x4045be
cmp dword [esp + 0x3c], ebx
jle 0x4045be
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.004035e0
mov dword [esp + 0x2c], vtable.NBString.0
cmp esi, ebx
je 0x4045d7
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x280], 6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], vtable.NBString.0
cmp eax, ebx
je 0x404600
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
inc dword [esp + 0x24]
cmp ebp, ebx
je 0x404460
mov ebp, dword [esp + 0x28]
mov esi, vtable.NBString.0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x404628
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], esi
cmp eax, ebx
je 0x404641
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x294]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28c], esi
cmp eax, ebx
je 0x404660
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0040d3eb
add esp, 0x270
ret