Function at 0x477e04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x41
push 0
push 0
dec ecx
jne 0x477e0c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x54], eax
xor eax, eax
push ebp
push 0x478a57
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4788a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x17c]
mov edx, dword [ebp - 0x54]
add edx, 0x20
mov ecx, pe_nt_image_headers32
call fcn.00404578
mov eax, dword [ebp - 0x17c]
push eax
lea eax, [ebp - 0x180]
mov edx, dword [ebp - 0x54]
add edx, 0x220
mov ecx, pe_nt_image_headers32
call fcn.00404578
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x54]
pop ecx
call fcn.00479bc8
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0xa38], 0
ja 0x477eea
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa64]
mov dword [eax + 0xc], 0x3e9
lea ecx, [ebp - 0x184]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa4c]
mov edx, 0x478a74
call fcn.0045c6d0
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x54]
add eax, 0xa58
call fcn.00404344
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0xa58]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa64]
add eax, 0x10
call fcn.0040915c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478927
mov eax, dword [ebp - 0x54]
call fcn.0047a22c
mov eax, dword [ebp - 0x54]
call fcn.0047abd4
mov eax, dword [ebp - 0x54]
call fcn.0047746c
lea eax, [ebp - 0x188]
call fcn.00405f80
push eax
lea eax, [ebp - 0x18c]
call fcn.00405f80
push eax
push 0
push 0x30
push 0x478a84
push 0x478a90
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
call fcn.00406090
mov eax, dword [ebp - 0x18c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406090
mov edx, dword [ebp - 0x188]
lea eax, [ebp - 0x50]
mov ecx, 0x478ad8
call fcn.00405fc4
lea eax, [ebp - 0x190]
call fcn.00405f80
push eax
lea eax, [ebp - 0x194]
call fcn.00405f80
push eax
push 0
push 0x30
push 0x478a84
push 0x478aec
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
call fcn.00406090
mov eax, dword [ebp - 0x194]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406090
mov edx, dword [ebp - 0x190]
lea eax, [ebp - 0x4c]
mov ecx, 0x478ad8
call fcn.00405fc4
jmp 0x478870
lea eax, [ebp - 4]
call fcn.00405f80
push eax
mov ecx, 0x478b4c
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x54]
call fcn.0047659c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x478b64
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x478b78
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa64]
inc dword [eax + 4]
lea edx, [ebp - 0x198]
mov eax, dword [ebp - 0x10]
call fcn.00408434
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x54]
call fcn.0047aacc
test al, al
je 0x478870
mov eax, dword [ebp - 0x54]
call fcn.00477b10
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0xa28], 0
je 0x47804f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478927
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x478b8c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x478b64
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x478ba0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x478bb4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x478bc8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x478bdc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x478bf0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x478c04
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x478c24
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
mov eax, dword [ebp - 0x18]
call fcn.004045cc
mov edx, 4
sub edx, eax
lea ecx, [ebp - 0x19c]
mov eax, 0x478c40
call fcn.00430468
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.00404618
lea eax, [ebp - 0x1a0]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 0x1a4], 0xb
lea edx, [ebp - 0x1a8]
xor ecx, ecx
mov eax, 0x478c4c
call fcn.0040974c
mov edx, dword [ebp - 0x1a0]
lea eax, [ebp - 0x1c]
call fcn.00404388
mov dword [ebp - 0x60], 0xffffffff
lea eax, [ebp - 0x1b0]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x478ca8
call fcn.00404618
mov edx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x1ac]
call fcn.00404bac
mov edx, dword [ebp - 0x1ac]
mov al, 2
call fcn.0045d194
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0xa38], 0
jbe 0x478638
mov edx, 0x478cd0
mov al, 2
call fcn.0045d194
mov eax, dword [ebp - 0x54]
call fcn.00477b10
mov edx, 0x478d0c
mov al, 2
call fcn.0045d194
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0xa28], 0
je 0x4781eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478927
mov edx, 0x478d20
mov al, 2
call fcn.0045d194
lea eax, [ebp - 0x5c]
push eax
push 1
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004047cc
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa38]
push eax
call sub.advapi32.dll_RegOpenKeyExA_2
test eax, eax
jne 0x478623
mov edx, 0x478d34
mov al, 2
call fcn.0045d194
mov dword [ebp - 0x6c], 4
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0x478d44
mov eax, dword [ebp - 0x5c]
push eax
call sub.advapi32.dll_RegQueryValueExA_2
mov ebx, eax
mov edx, 0x478d58
mov al, 2
call fcn.0045d194
test ebx, ebx
jne 0x478292
cmp dword [ebp - 0x68], 4
jne 0x478292
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 0x1a4], 0
lea edx, [ebp - 0x1a8]
xor ecx, ecx
mov eax, 0x478d70
call fcn.0040974c
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov edx, 0x478d84
mov al, 2
call fcn.0045d194
cmp dword [ebp - 0x60], 0xffffffff
je 0x4782a6
test ebx, ebx
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa48]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x47835a
inc eax
mov dword [ebp - 0x78], eax
xor esi, esi
mov dword [ebp - 0x6c], 0xff
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
lea ecx, [ebp - 0x1b4]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa48]
mov edx, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1b4]
call fcn.004047cc
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.advapi32.dll_RegQueryValueExA_2
mov ebx, eax
test ebx, ebx
jne 0x478350
cmp dword [ebp - 0x68], 1
jne 0x478350
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 0x1a4], 6
lea edx, [ebp - 0x1a8]
xor ecx, ecx
mov eax, 0x478d9c
call fcn.0040974c
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x178]
mov ecx, pe_nt_image_headers32
call fcn.00404560
jmp 0x47835a
inc esi
dec dword [ebp - 0x78]
jne 0x4782c3
mov edx, 0x478dac
mov al, 2
call fcn.0045d194
cmp dword [ebp - 0x60], 0xffffffff
je 0x47836e
test ebx, ebx
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa44]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x47861b
inc eax
mov dword [ebp - 0x78], eax
xor esi, esi
mov edx, 0x478dc0
mov al, 2
call fcn.0045d194
mov dword [ebp - 0x6c], 0xff
lea ecx, [ebp - 0x1c0]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa44]
mov edx, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x1c0]
lea eax, [ebp - 0x1bc]
mov edx, 0x478dd8
call fcn.00404618
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b8]
call fcn.00404bac
mov edx, dword [ebp - 0x1b8]
mov al, 2
call fcn.0045d194
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
lea ecx, [ebp - 0x1c4]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa44]
mov edx, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c4]
call fcn.004047cc
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.advapi32.dll_RegQueryValueExA_2
mov ebx, eax
test ebx, ebx
jne 0x478611
cmp dword [ebp - 0x68], 1
jne 0x478611
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 0x1a4], 6
lea edx, [ebp - 0x1a8]
xor ecx, ecx
mov eax, 0x478df4
call fcn.0040974c
lea eax, [ebp - 0x1c8]
mov edx, dword [ebp - 0x1c]
call fcn.00404bac
mov edx, dword [ebp - 0x1c8]
mov al, 2
call fcn.0045d194
mov eax, dword [ebp - 0x18]
call fcn.004045cc
mov edx, 4
sub edx, eax
lea ecx, [ebp - 0x1cc]
mov eax, 0x478c40
call fcn.00430468
mov edx, dword [ebp - 0x1cc]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.00404618
lea eax, [ebp - 0x1d0]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x1dc], 0xb
lea ecx, [ebp - 0x1e4]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa44]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 0x1d4], 0xb
lea edx, [ebp - 0x1e0]
mov ecx, 1
mov eax, 0x478e04
call fcn.0040974c
mov edx, dword [ebp - 0x1d0]
lea eax, [ebp - 0x1c]
call fcn.00404388
lea eax, [ebp - 0x1ec]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x478e74
call fcn.00404618
mov edx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x1e8]
call fcn.00404bac
mov edx, dword [ebp - 0x1e8]
mov al, 2
call fcn.0045d194
lea eax, [ebp - 0x64]
push eax
push 1
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004047cc
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa38]
push eax
call sub.advapi32.dll_RegOpenKeyExA_2
test eax, eax
jne 0x4785f0
mov dword [ebp - 0x6c], 0xff
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.advapi32.dll_RegQueryValueExA_2
mov ebx, eax
lea edx, [ebp - 0x1f8]
mov eax, ebx
call fcn.004089a0
mov ecx, dword [ebp - 0x1f8]
lea eax, [ebp - 0x1f4]
mov edx, 0x478e94
call fcn.00404618
mov edx, dword [ebp - 0x1f4]
lea eax, [ebp - 0x1f0]
call fcn.00404bac
mov edx, dword [ebp - 0x1f0]
mov al, 2
call fcn.0045d194
test ebx, ebx
jne 0x4785e5
cmp dword [ebp - 0x68], 1
jne 0x4785e5
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
call fcn.00404388
mov eax, dword [ebp - 0x64]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47861b
mov edx, 0x478eb4
mov al, 2
call fcn.0045d194
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x178]
mov ecx, pe_nt_image_headers32
call fcn.00404560
jmp 0x47861b
inc esi
dec dword [ebp - 0x78]
jne 0x47838b
cmp dword [ebp - 0x60], 0xffffffff
je 0x478623
test ebx, ebx
mov edx, 0x478ee4
mov al, 2
call fcn.0045d194
mov eax, dword [ebp - 0x5c]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, 0x478ef8
mov al, 2
call fcn.0045d194
mov eax, dword [ebp - 0x70]
and eax, 4
test eax, eax
je 0x478728
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa4c]
mov edx, 0x478f10
call fcn.0045c6d0
lea eax, [ebp - 0x200]
push eax
mov ecx, 0x478f28
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
call fcn.00478fe4
mov eax, dword [ebp - 0x200]
lea edx, [ebp - 0x1fc]
call fcn.00408434
mov edx, dword [ebp - 0x1fc]
mov eax, 0x478f3c
call fcn.00404910
test eax, eax
jle 0x4786bc
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa4c]
mov edx, 0x478f48
call fcn.0045c6d0
jmp 0x478728
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa5c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4786e6
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa4c]
mov edx, 0x478f5c
call fcn.0045c6d0
jmp 0x478728
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa5c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x478712
mov edx, 0x478f10
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa4c]
call fcn.0045c6d0
jmp 0x478728
mov edx, 0x478f48
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa4c]
call fcn.0045c6d0
mov edx, 0x478f70
mov al, 2
call fcn.0045d194
test byte [ebp - 0x70], 1
je 0x478762
mov dword [ebp - 0x74], 2
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0xa50], 0
jne 0x478814
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa64]
dec dword [eax + 4]
jmp 0x478870
test byte [ebp - 0x70], 2
je 0x478790
mov dword [ebp - 0x74], 3
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0xa51], 0
jne 0x478814
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa64]
dec dword [eax + 4]
jmp 0x478870
mov eax, dword [ebp - 0x70]
and eax, 4
test eax, eax
je 0x47880d
lea edx, [ebp - 0x204]
mov eax, dword [ebp - 0x20]
call fcn.00408434
mov edx, dword [ebp - 0x204]
mov eax, 0x478f88
call fcn.00404910
test eax, eax
jg 0x4787c8
cmp dword [ebp - 0x40], 0
jne 0x4787c8
cmp dword [ebp - 0x44], 0
je 0x4787ec
mov dword [ebp - 0x74], 4
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0xa52], 0
jne 0x478814
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa64]
dec dword [eax + 4]
jmp 0x478870
mov dword [ebp - 0x74], 1
mov eax, dword [ebp - 0x54]
cmp byte [eax + 0xa53], 0
jne 0x478814
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0xa64]
dec dword [eax + 4]
jmp 0x478870
mov dword [ebp - 0x74], 5
mov edx, 0x478f98
mov al, 2
call fcn.0045d194
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00408bc0
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x54]
call fcn.004798a0
lea eax, [ebp - 8]
call fcn.00405f80
push eax
mov ecx, 0x478b4c
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
call fcn.0047659c
test al, al
je 0x478897
cmp dword [ebp - 8], 0
jne 0x477fbd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478927
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478a61
lea eax, [ebp - 0x20c]
call fcn.004042f0
lea eax, [ebp - 0x208]
call fcn.00404a18
lea eax, [ebp - 0x204]
mov edx, 5
call fcn.00404314
lea eax, [ebp - 0x1f0]
call fcn.00404a18
lea eax, [ebp - 0x1ec]
call fcn.004042f0
lea eax, [ebp - 0x1e8]
call fcn.00404a18
lea eax, [ebp - 0x1e4]
call fcn.004042f0
lea eax, [ebp - 0x1d0]
mov edx, 2
call fcn.00404314
lea eax, [ebp - 0x1c8]
call fcn.00404a18
lea eax, [ebp - 0x1c4]
mov edx, 3
call fcn.00404314
lea eax, [ebp - 0x1b8]
call fcn.00404a18
lea eax, [ebp - 0x1b4]
mov edx, 2
call fcn.00404314
lea eax, [ebp - 0x1ac]
call fcn.00404a18
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.00404314
lea eax, [ebp - 0x194]
call fcn.00405f80
lea eax, [ebp - 0x190]
call fcn.00405f80
lea eax, [ebp - 0x18c]
call fcn.00405f80
lea eax, [ebp - 0x188]
call fcn.00405f80
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.00404314
lea eax, [ebp - 0x50]
mov edx, dword [0x418f18]
mov ecx, 2
call fcn.00405014
lea eax, [ebp - 0x48]
mov edx, 0x10
call fcn.00404314
lea eax, [ebp - 8]
mov edx, dword [0x45a540]
mov ecx, 2
call fcn.00405014
ret