Function at 0x4129c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x494]
sub esp, 0x494
push 0xffffffffffffffff
push 0x491d4a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4bb0c4]
xor eax, ebp
mov dword [ebp + 0x490], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x4a0]
xor ebx, ebx
mov eax, dword [ebp + 0x4a8]
inc ebx
mov edi, dword [ebp + 0x4a4]
mov edx, esi
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x20], 0x400
mov dword [ebp - 0x18], ebx
jb 0x412a27
mov edx, dword [esi]
lea ecx, [ebp + 0x78]
call fcn.00404d1d
cmp dword [ebp + 0x8c], 8
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
lea eax, [ebp + 0x78]
cmovae eax, dword [ebp + 0x78]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp + 0x78]
mov dword [ebp - 0x14], eax
call fcn.00402da2
cmp dword [ebp - 0x14], 0
je 0x412b30
push edi
mov edx, str.Failure_opening_registry_key_
lea ecx, [ebp + 0x60]
call fcn.00402f8e
and dword [ebp - 4], 0
lea ecx, [ebp + 0x30]
mov edx, eax
mov dword [esp], str._at_
call fcn.00403020
pop ecx
push esi
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.00402cbf
xor ecx, ecx
mov byte [ebp - 0x18], cl
push dword [ebp - 0x18]
mov dword [ebp + 0x88], ecx
mov dword [ebp + 0x8c], ecx
lea ecx, [ebp + 0x78]
push eax
call fcn.00402f6b
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x10], esp
lea edx, [ebp + 0x78]
push 0x4ae78c
call fcn.00403020
pop ecx
mov byte [ebp - 4], 3
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040d682
lea ecx, [ebp + 0x78]
call fcn.00402dd0
lea ecx, [ebp + 0x30]
call fcn.00402dd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x60]
call fcn.00402dd0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
call fcn.0040353f
mov dword [ebp - 4], 4
call fcn.0040d33a
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0040d682
xor al, al
jmp 0x412d36
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x412b3a
mov edx, dword [edi]
lea ecx, [ebp + 0x78]
call fcn.00404d1d
cmp dword [ebp + 0x8c], 8
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp + 0x90]
push ecx
push 0
lea eax, [ebp + 0x78]
cmovae eax, dword [ebp + 0x78]
push 0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0x78]
mov ebx, eax
call fcn.00402da2
test ebx, ebx
je 0x412c44
push edi
mov edx, str.Failed_to_read_the_registry_key_
lea ecx, [ebp + 0x30]
call fcn.00402f8e
mov dword [ebp - 4], 5
lea ecx, [ebp + 0x60]
mov edx, eax
mov dword [esp], str._at_
call fcn.00403020
pop ecx
push esi
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00402cbf
xor ecx, ecx
mov byte [ebp - 0x14], cl
push dword [ebp - 0x14]
mov dword [ebp + 0x88], ecx
mov dword [ebp + 0x8c], ecx
lea ecx, [ebp + 0x78]
push eax
call fcn.00402f6b
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x10], esp
lea edx, [ebp + 0x78]
push 0x4ae78c
call fcn.00403020
pop ecx
mov byte [ebp - 4], 8
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040d682
lea ecx, [ebp + 0x78]
call fcn.00402dd0
lea ecx, [ebp + 0x60]
call fcn.00402dd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00402dd0
sub esp, 0x18
mov edx, ebx
mov ecx, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
call fcn.0040353f
mov dword [ebp - 4], 9
call fcn.0040d33a
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0040d682
mov byte [ebp - 0x18], 0
jmp 0x412c63
lea edx, [ebp + 0x90]
lea ecx, [ebp + 0x60]
call fcn.00404cab
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00402d04
lea ecx, [ebp + 0x60]
call fcn.00402dd0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
test ebx, ebx
je 0x412d33
push edi
mov edx, str.Failed_to_close_the_registry_key_
lea ecx, [ebp]
call fcn.00402f8e
mov dword [ebp - 4], 0xa
lea ecx, [ebp + 0x18]
mov edx, eax
mov dword [esp], str._at_
call fcn.00403020
pop ecx
push esi
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00402cbf
xor ecx, ecx
mov byte [ebp - 0x10], cl
push dword [ebp - 0x10]
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x5c], ecx
lea ecx, [ebp + 0x48]
push eax
call fcn.00402f6b
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x10], esp
lea edx, [ebp + 0x48]
push 0x4ae78c
call fcn.00403020
pop ecx
mov byte [ebp - 4], 0xd
call fcn.0040d33a
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0040d682
lea ecx, [ebp + 0x48]
call fcn.00402dd0
lea ecx, [ebp + 0x18]
call fcn.00402dd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00402dd0
sub esp, 0x18
mov edx, ebx
mov ecx, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
call fcn.0040353f
mov dword [ebp - 4], 0xe
call fcn.0040d33a
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0040d682
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x490]
xor ecx, ebp
call fcn.00453227
add ebp, 0x494
leave
ret 0x10