Function at 0x407dac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e7c0
push 0x409198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffd7c
push ebx
push esi
push edi
push 0x4114cc
push 0x4114dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0x4114ec
mov dword [ebp - 0x34], 0x4114f8
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 0x34]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
lea edx, [esi + eax + 1]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x16c], 0x411500
mov dword [ebp - 0x140], 0x41150c
mov dword [ebp - 0x168], 0
mov edx, dword [ebp - 0x16c]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x140]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
lea ecx, [esi + eax + 1]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x168]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x170], 0
push 0x20
push 0
lea ecx, [ebp - 0x160]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x13c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x274]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x38]
test eax, eax
je 0x407f60
mov dword [ebp - 0x24], 0xffffffff
jmp case.default.0x407f7c
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x284], ecx
cmp dword [ebp - 0x284], 3
ja case.default.0x407f7c
mov edx, dword [ebp - 0x284]
jmp dword [edx*4 + 0x4083f9]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
sub ecx, 1
mov dword [ebp - 0x288], ecx
cmp dword [ebp - 0x288], 6
ja case.0x407fae.4
mov edx, dword [ebp - 0x288]
jmp dword [edx*4 + 0x408409]
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408008
lea edx, [ebp - 0x13c]
push edx
mov ecx, dword [0x42aa54]
call fcn.0040728d
push eax
mov eax, dword [ebp + 0x18]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x407fae.4
mov dword [ebp - 0x1c], 0x104
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x278]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4080b3
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x30], eax
jmp 0x40805a
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
add eax, 1
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
movsx eax, byte [edx]
test eax, eax
je 0x408099
push 0x104
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
push 0x104
push 0x411514
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
jmp 0x408045
lea ecx, [ebp - 0x274]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x407fae.4
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408102
mov edx, dword [ebp - 0x164]
push edx
push 0x411518
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x24], 1
jmp case.0x407fae.4
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x407fae.4
mov dword [ebp - 0x24], 1
jmp case.default.0x407f7c
mov ecx, 1
test ecx, ecx
je 0x4081e6
push 0x104
push 0
lea edx, [ebp - 0x13c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x28c]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
mov edx, dword [ebp - 0x170]
add edx, 1
mov dword [ebp - 0x170], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4081ab
jmp 0x4081e6
lea eax, [ebp - 0x13c]
push eax
push 0x41151c
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x274]
push edx
mov eax, dword [ebp + 0x18]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x407f7c.1
jmp case.default.0x407f7c
mov ecx, 1
test ecx, ecx
je 0x4083b6
push 0x20
push 0
lea edx, [ebp - 0x160]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x13c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x274]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x290], ecx
mov edx, dword [ebp - 0x290]
push edx
mov eax, dword [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x170]
add ecx, 1
mov dword [ebp - 0x170], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x408299
jmp 0x4083b6
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x294], edx
mov eax, dword [ebp - 0x294]
sub eax, 1
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 6
ja case.0x4082c4.4
mov ecx, dword [ebp - 0x294]
jmp dword [ecx*4 + 0x408425]
lea edx, [ebp - 0x13c]
push edx
push 0x411524
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp case.0x4082c4.4
lea eax, [ebp - 0x13c]
push eax
push 0x41152c
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp case.0x4082c4.4
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x13c]
push edx
push 0x41153c
lea eax, [ebp - 0x160]
push eax
push 0x411548
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp case.0x4082c4.4
push 0x4115b0
lea edx, [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x168]
push eax
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp case.0x4082c4.4
push 0x4115c0
lea edx, [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x168]
push eax
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x274]
push edx
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
jmp case.0x407f7c.2
jmp case.default.0x407f7c
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004083cd
jmp 0x4083e5
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret