Function at 0x100077a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100343eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov al, byte [0x1005a078]
push ebx
push ebp
push esi
test al, 1
push edi
mov ebp, ecx
jne 0x100077e1
or al, 1
mov byte [0x1005a078], al
call fcn.100075f0
mov dword [0x1005a074], eax
mov al, byte [ebp + 0x40]
test al, al
je 0x100077f1
push 1
mov ecx, ebp
call sym.EoRezoTools_3.dll_public:_int___thiscall_CCpuUsage::EnablePerformaceCounters_int_
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
mov dword [esp + 0x158], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x1005a074]
sub eax, ebx
je 0x1000786b
dec eax
je 0x10007833
or eax, 0xffffffff
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str._Total
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 0xee
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x24], 6
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1000787b
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], pe_nt_image_headers32
mov al, byte [0x1005a108]
test al, 1
jne 0x100078a7
or al, 1
push 0x19000
mov ecx, 0x1005a110
mov byte [0x1005a108], al
call fcn.10008320
push 0x10008310
call fcn.10033540
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, dword [0x1005a114]
push edx
lea eax, [esp + 0x34]
push 0x100541f4
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x1005a114]
mov edi, dword [0x1005a110]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0xc
and ecx, 3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosb byte es:[edi], al
mov ecx, dword [0x1005a110]
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
lea edx, [esp + 0x3c]
push ebx
push edx
push reloc.WSOCK32.dll_connect
call esi
cmp eax, 0xea
jne 0x10007945
mov eax, dword [esp + 0x14]
mov ecx, 0x1005a110
add eax, 0x2800
push eax
mov dword [esp + 0x18], eax
call fcn.10008340
mov ecx, dword [0x1005a110]
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
lea edx, [esp + 0x3c]
push ebx
push edx
push reloc.WSOCK32.dll_connect
call esi
cmp eax, 0xea
je 0x1000790c
mov esi, dword [0x1005a110]
xor edi, edi
xor edx, edx
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
add eax, esi
test ecx, ecx
jbe 0x10007993
mov ebx, dword [esp + 0x20]
cmp dword [eax + 0xc], ebx
je 0x10007977
mov ebx, dword [eax]
add eax, ebx
inc edx
cmp edx, ecx
jb 0x1000795f
mov ebx, dword [esp + 0x1c]
jmp 0x10007993
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.10007f10
mov ebx, edx
mov edi, eax
mov dword [esp + 0x1c], ebx
mov al, byte [ebp + 0x40]
mov ecx, dword [esi + 0x48]
mov esi, dword [esi + 0x4c]
test al, al
je 0x100079db
mov eax, dword [ebp + 8]
mov dword [ebp + 0x48], edi
inc eax
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x28], ecx
mov dword [ebp + 8], eax
mov byte [ebp + 0x40], 0
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x54], esi
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x2c], esi
xor eax, eax
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ebx, 3
cdq
idiv ebx
mov eax, dword [esp + 0x1c]
mov dword [ebp + 8], edx
mov dword [ebp + edx*8 + 0x10], edi
mov dword [ebp + edx*8 + 0x14], eax
mov edx, dword [ebp + 8]
xor eax, eax
lea edi, [esp + 0x30]
mov dword [ebp + edx*8 + 0x28], ecx
mov ecx, 6
rep stosd dword es:[edi], eax
lea ecx, [ebp + 0x10]
mov dword [ebp + edx*8 + 0x2c], esi
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, 2
mov edi, dword [eax + 8]
mov ebx, dword [eax]
sub edi, ebx
mov ebx, dword [eax + 0xc]
sbb ebx, dword [eax + 4]
mov dword [esp + 0x18], edi
mov edi, dword [eax + 0x20]
mov dword [esp + 0x1c], ebx
mov ebx, dword [eax + 0x18]
fild qword [esp + 0x18]
sub edi, ebx
mov ebx, dword [eax + 0x24]
sbb ebx, dword [eax + 0x1c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
add eax, 8
fild qword [esp + 0x28]
add edx, 8
dec esi
fdivp st(1)
fstp qword [edx - 8]
jne 0x10007a1b
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x20]
mov edi, dword [ecx]
sub eax, edx
mov edx, dword [ebp + 0x3c]
sbb edx, ebx
mov ebx, dword [ecx + 4]
sub esi, edi
mov edi, dword [ebp + 0x24]
sbb edi, ebx
push edx
push eax
push edi
push esi
call fcn.10033560
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
fild qword [esp + 0x18]
lea eax, [esp + 0x30]
mov ecx, 3
fstp qword [esp + 0x40]
fld qword [0x1003afc8]
fadd qword [eax]
add eax, 8
dec ecx
jne 0x10007aa3
fmul qword [0x1003afc0]
fsubr qword [0x1003afb8]
fmul qword [0x1003afb0]
fadd qword [0x1003afc0]
call sub.MSVCRT.dll__ftol
test eax, eax
jge 0x10007ae4
xor eax, eax
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
pop edi
inc ecx
pop esi
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret