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

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x41d380]
push ebx
xor ebx, ebx
push ebp
mov ebp, 1
mov dword [esp + 0x1e4], eax
mov eax, 3
mov ecx, 0x20000
push esi
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], str.1001
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], str.1004
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], str.1201
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], str.1206
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], str.1209
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], str.1405
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], str.1406
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], str.1407
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], str.1607
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], str.1800
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], str.1804
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], str.1806
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], str.1809
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], str.1a00
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], str.1a04
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], str.1a05
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], str.1c00
mov dword [esp + 0xa4], 0x10000
mov dword [esp + 0xa8], str.1e05
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], str.2101
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], str.2102
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], str.2200
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], str.2201
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], str.2301
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
call fcn.00407bcb
cmp eax, 6
jne 0x408dd5
mov dword [esp + 0x34], ebx
mov ecx, 0x11
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones2_
lea edi, [esp + 0xe8]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push 0x418469
push ebx
lea edx, [esp + 0x104]
push edx
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408eaa
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xe8]
push edx
push ebx
push str.CurrentLevel
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x10], 0x11000
ja 0x408eae
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor esi, esi
nop
mov eax, dword [esp + esi*8 + 0x20]
cmp eax, ebx
je 0x408e88
mov ecx, dword [esp + esi*8 + 0x24]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push ebx
push eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x28], ecx
call edi
inc esi
cmp esi, 0x18
jb 0x408e60
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push ebx
push str.CurrentLevel
push edx
mov dword [esp + 0x28], 0x11000
call edi
test eax, eax
je 0x408eae
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x408ebd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1ec]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
call fcn.0040bfdc
add esp, 0x1e0
ret