Function at 0x402630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d881
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5d2fec]
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 edi, ecx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x224]
push 0x5af8f0
mov dword [ebp - 0x224], 0
call fcn.00406840
mov byte [ebp - 4], 2
mov ecx, edi
push 0x5af8f0
mov dword [edi], 0
call fcn.00406840
lea eax, [ebp + 8]
mov dword [ebp - 0x238], 1
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
push str.SYSTEMCurrentControlSet_services_
push eax
call fcn.00406490
push str.Parameters
push eax
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 3
push eax
call fcn.00406a20
add esp, 0x18
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x23c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402713
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x230]
push eax
push 1
push 0
push dword [ebp - 0x22c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4027e7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x20a
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 2
push eax
push 0
push str.Application
push dword [ebp - 0x230]
call ebx
test eax, eax
jne 0x40278e
lea eax, [ebp - 0x21c]
push eax
push 0x5af300
push edi
call fcn.00406ff0
add esp, 0xc
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.AppParameters
push dword [ebp - 0x230]
call ebx
test eax, eax
jne 0x4027db
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push 0x5af300
push eax
call fcn.00406ff0
add esp, 0xc
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5af33c
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.00406a20
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00405ab0
add esp, 0x18
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40286f
cmp dword [ebx + 0xc], 0
jl 0x402864
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x402864
push edx
call fcn.00406c80
mov dword [ebp - 0x228], eax
lea ecx, [ebx + 0xc]
add esp, 4
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402857
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x228]
add eax, 0x10
mov dword [edi], eax
jmp 0x40286f
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00406bd0
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402890
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4028b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4028d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4028f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40290f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0054e73a
mov esp, ebp
pop ebp
ret