Function at 0x4106f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 2
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x26c], ebx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x234], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x21c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x258], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x27c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x284], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x238], eax
mov word [eax], cx
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x24c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x268], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x260], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x240], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x250], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x244], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x248], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x264], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x254], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x280]
push esi
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x274]
push eax
call fcn.00407620
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x13
push ecx
push 1
push ebx
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x244]
push ecx
push esi
push eax
push ebx
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x23c]
call fcn.00403eb0
add esp, 0x6c
mov esi, eax
mov dword [ebp - 0x278], esi
push dword [ebp - 0x274]
call fcn.0048faf7
push dword [ebp - 0x280]
call fcn.0048faf7
push dword [ebp - 0x25c]
call fcn.0048faf7
push dword [ebp - 0x254]
call fcn.0048faf7
push dword [ebp - 0x264]
call fcn.0048faf7
push dword [ebp - 0x248]
call fcn.0048faf7
push dword [ebp - 0x244]
call fcn.0048faf7
push dword [ebp - 0x250]
call fcn.0048faf7
push dword [ebp - 0x240]
call fcn.0048faf7
push dword [ebp - 0x260]
call fcn.0048faf7
push dword [ebp - 0x268]
call fcn.0048faf7
push dword [ebp - 0x24c]
mov byte [ebp - 4], 7
call fcn.0048faf7
lea eax, [ebp - 0x270]
push eax
push 0x20019
push ebx
push edi
push dword [section..data]
call fcn.00406320
add esp, 0x44
test eax, eax
jne 0x4110b7
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x270]
call fcn.00410500
add esp, 0xc
test eax, eax
jne 0x4110ab
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
push dword [ebp - 0x21c]
push dword [ebp - 0x270]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x411080
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 4
push eax
lea eax, [ebp - 0x2b8]
push eax
push 0
push 0
push 0x4b4b24
push dword [ebp - 0x220]
call esi
test eax, eax
jne 0x411074
cmp dword [ebp - 0x2b8], 2
ja 0x411074
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 4
push eax
lea eax, [ebp - 0x2bc]
push eax
push 0
push 0
push 0x4b4b30
push dword [ebp - 0x220]
call esi
test eax, eax
jne 0x411074
cmp dword [ebp - 0x2bc], 4
mov dword [ebp - 0x228], 4
je 0x410a93
mov bh, 1
jmp 0x410abc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x2c4]
push eax
push 0
push 0
push 0x4b4ae4
push dword [ebp - 0x220]
call esi
test eax, eax
jne 0x411074
xor bh, bh
lea eax, [ebp - 0x234]
push eax
push 0
push 0
push 0x4b0f98
push dword [ebp - 0x220]
call fcn.00410620
mov esi, dword [ebp - 0x238]
add esp, 0x14
test eax, eax
je 0x410b59
push dword [ebp - 0x21c]
call fcn.0048faa4
push esi
mov dword [ebp - 0x238], eax
call fcn.0048faf7
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x2a0]
push 0x4b4b48
push eax
call fcn.00417070
push 0x4b4b3c
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.00418660
mov esi, dword [ebp - 0x234]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x234], eax
call fcn.0048faf7
push dword [ebp - 0x2b0]
call fcn.0048faf7
push dword [ebp - 0x2a0]
call fcn.0048faf7
add esp, 0x30
jmp 0x410b73
push dword [ebp - 0x234]
call fcn.0048faa4
push esi
mov dword [ebp - 0x238], eax
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x234]
lea eax, [ebp - 0x2c0]
push dword [ebp - 0x23c]
push eax
call fcn.00404d30
mov esi, dword [ebp - 0x230]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x230], eax
call fcn.0048faf7
push dword [ebp - 0x2c0]
call fcn.0048faf7
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x230]
push dword [ebp - 0x23c]
call fcn.00404ce0
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x4b4b84
push dword [ebp - 0x220]
call fcn.00410620
mov eax, dword [ebp - 0x224]
add esp, 0x3c
cmp word [eax], 0x40
jne 0x410c8f
push 0x4b4b9c
push 0x4b4b08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4dfaa4], eax
test eax, eax
je 0x410c8f
push 0
push 0
lea ecx, [ebp - 0x228]
push ecx
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4b4b84
push dword [ebp - 0x220]
call eax
test eax, eax
jne 0x410c8f
mov eax, dword [ebp - 0x228]
lea esi, [eax*2 + 4]
push esi
push dword [ebp - 0x224]
call fcn.0048fbc1
push esi
push 0
push eax
mov dword [ebp - 0x224], eax
call fcn.004906c0
mov eax, dword [ebp - 0x228]
inc eax
push eax
push dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
call fcn.00404680
add esp, 0x20
push dword [ebp - 0x21c]
mov esi, dword [ebp - 0x258]
call fcn.0048faa4
push esi
mov dword [ebp - 0x258], eax
call fcn.0048faf7
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x260], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x268], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x294]
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x2a8]
push eax
call fcn.00407620
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0x18
push ecx
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x258]
push ecx
push esi
push eax
push dword [ebp - 0x23c]
call fcn.00403c00
add esp, 0x54
mov bl, al
push dword [ebp - 0x2a8]
call fcn.0048faf7
push dword [ebp - 0x294]
call fcn.0048faf7
push dword [ebp - 0x24c]
call fcn.0048faf7
push dword [ebp - 0x268]
call fcn.0048faf7
push dword [ebp - 0x260]
mov byte [ebp - 4], 7
call fcn.0048faf7
add esp, 0x14
test bl, bl
je 0x411068
cmp dword [ebp - 0x278], 0xffffffff
jne 0x410f94
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x288], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x290], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x25c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x254], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x264], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x248], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x244], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x250], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x29c]
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x298]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 0x24
push ecx
movzx ecx, bh
push ecx
push 0
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x290]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x264]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x23c]
call fcn.00403eb0
push dword [ebp - 0x298]
mov dword [ebp - 0x278], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x29c]
call fcn.0048faf7
push dword [ebp - 0x240]
call fcn.0048faf7
push dword [ebp - 0x250]
call fcn.0048faf7
push dword [ebp - 0x244]
call fcn.0048faf7
push dword [ebp - 0x248]
call fcn.0048faf7
push dword [ebp - 0x264]
call fcn.0048faf7
push dword [ebp - 0x254]
call fcn.0048faf7
push dword [ebp - 0x25c]
call fcn.0048faf7
push dword [ebp - 0x290]
call fcn.0048faf7
push dword [ebp - 0x28c]
call fcn.0048faf7
push dword [ebp - 0x288]
call fcn.0048faf7
add esp, 0x2c
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x274], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x22c]
lea eax, [ebp - 0x2b4]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0x27
push ecx
movzx ecx, bh
push ecx
push dword [ebp - 0x2a4]
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x230]
push ecx
push eax
lea eax, [ebp - 0x258]
push eax
push 0xd
push dword [ebp - 0x278]
push dword [ebp - 0x2ac]
push dword [ebp - 0x23c]
call fcn.00403eb0
add esp, 0x5c
push dword [ebp - 0x2b4]
call fcn.0048faf7
push dword [ebp - 0x280]
call fcn.0048faf7
push dword [ebp - 0x274]
mov byte [ebp - 4], 7
call fcn.0048faf7
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [ebp - 0x26c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
inc ebx
push eax
push ebx
push dword [ebp - 0x270]
mov dword [ebp - 0x26c], ebx
call fcn.00410500
add esp, 0xc
test eax, eax
je 0x4109e3
mov esi, dword [ebp - 0x278]
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x238]
call fcn.0048faf7
push dword [ebp - 0x284]
call fcn.0048faf7
push dword [ebp - 0x224]
call fcn.0048faf7
push dword [ebp - 0x27c]
call fcn.0048faf7
push dword [ebp - 0x230]
call fcn.0048faf7
push dword [ebp - 0x258]
call fcn.0048faf7
push dword [ebp - 0x21c]
call fcn.0048faf7
push dword [ebp - 0x234]
call fcn.0048faf7
add esp, 0x20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret