Function at 0x477b70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcc78
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x4780fe
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x477bca
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push 0x20019
push dword [0x53ed60]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043b290
or ebx, 0xffffffff
test eax, eax
jne 0x477f2d
mov dword [ebp - 0x20], eax
jmp 0x477c20
mov dword [ebp - 0x18], 0x104
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x477bc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x477bc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test ebx, ebx
js 0x478008
mov eax, dword [ebp - 0x14]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
jge 0x477c98
push ebx
lea ecx, [ebp - 0x14]
call fcn.0043b5a0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], ebx
push dword [eax - 8]
push eax
call fcn.004d9e5f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x478008
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x478008
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov word [eax + ecx*2], dx
test ebx, ebx
jne 0x477fb3
mov edx, dword [str.SoftwareGoogleChromeExtensions]
test edx, edx
jne 0x477cff
xor ecx, ecx
jmp 0x477d13
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477d04
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.0043b750
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push 0x509c8c
push eax
call fcn.004593d0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
push dword [eax - 0xc]
push eax
call fcn.00452320
mov edx, dword [ebp - 0x2c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477d65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push 0x20019
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 5
call fcn.0043b290
test eax, eax
jne 0x477f97
mov dword [ebp - 0x18], 0x104
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x477bc0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 6
test ebx, ebx
js 0x478008
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
jge 0x477df0
push ebx
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x50d700
lea ecx, [ebp - 0x44]
call fcn.0043d750
test eax, eax
mov eax, dword [ebp - 0x10]
sete bl
push dword [eax - 8]
push eax
call fcn.004d9e5f
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x478008
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x478008
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
test bl, bl
je 0x477f57
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x477f57
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edx
jl 0x477f5a
push ecx
push eax
call fcn.004d9e7e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x477f57
mov eax, dword [ebp - 0x10]
sub ecx, eax
sar ecx, 1
test ecx, ecx
jle 0x477f5a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.0043a620
mov edi, dword [ebp - 0x44]
test edi, edi
je 0x477e9b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x44], edi
mov edx, dword [ebp - 0x10]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 5
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477ec5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x477ed0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477eed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477f0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x477f23
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x50], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4c], 0
cmp dword [edi - 0xc], 0
jle 0x4780d2
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x478012
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x477f70
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
lea edx, [eax - 0x10]
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477f9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x477f9a
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x477fac
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
inc dword [ebp - 0x20]
add esi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 2
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477fd6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x477ff6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0x103
jne 0x477c20
jmp 0x477f10
push 0x80070057
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push dword [esi]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
push dword [0x53e788]
push 0x509980
push eax
call fcn.0043ad30
add esp, 0x10
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x478056
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push edi
lea eax, [ebp + 8]
mov byte [ebp - 4], 8
push str._s:0
push eax
call fcn.0043ad30
mov esi, dword [ebp - 0x20]
lea eax, [ebp + 8]
push eax
push str.gc_inst_ext_id
push esi
push reloc.WS2_32.dll_accept
call fcn.004b6cd0
mov ebx, dword [ebp + 8]
add esp, 0x1c
add ebx, 0xfffffff0
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 7
or edx, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4780b2
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4780d2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4780e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4780fe
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4