Function at 0x52f090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x613016
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebp
push esi
mov ebp, ecx
xor esi, esi
cmp ebp, esi
push edi
mov dword [esp + 0x20], 0x630be4
mov dword [esp + 0x24], ebp
je 0x52f0cc
push 0x7530
call fcn.00531390
cmp ebp, esi
mov dword [esp + 0xac], esi
je 0x52f0dc
cmp dword [ebp + 0x48], esi
jne 0x52f10c
push 0x12345678
push str.result_lock_EnumKeyEx_fail___lock_failed_
mov ecx, ebp
call fcn.00532c10
cmp ebp, esi
mov dword [ebp + 4], 0x8005
je 0x52f32d
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x52f32a
jmp 0x52f323
mov ecx, dword [ebp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], esi
call fcn.005b6010
mov edx, dword [esp + 0xc]
mov edi, eax
push edx
push str.EnumKeyEx_Find_token_count
mov ecx, ebp
mov dword [ebp + 4], edi
call fcn.00532c10
cmp edi, esi
jne 0x52f31c
mov eax, dword [esp + 0xc]
cmp eax, esi
jle 0x52f31c
mov ecx, dword [esp + 0xb8]
cmp ecx, esi
jne 0x52f16d
mov edi, eax
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x52f163
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp + 0x48], esi
mov eax, edi
jmp 0x52f32f
mov edx, dword [ecx]
lea eax, [eax + eax*2]
shl eax, 4
cmp eax, edx
jle 0x52f194
mov dword [ecx], eax
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x52f189
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp + 0x48], esi
or eax, 0xffffffff
jmp 0x52f32f
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
call fcn.0052ec30
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x34]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb8], 1
call fcn.005309f0
mov eax, dword [esp + 0xc]
xor edx, edx
cmp eax, esi
jle 0x52f2ed
push ebx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x7a]
lea ebx, [edx + 1]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x24]
push ebx
stosw word es:[edi], ax
lea edx, [esp + 0x20]
mov edi, 1
push ecx
push edx
mov word [esp + 0x84], 0x30
mov word [esp + 0x86], di
mov dword [esp + 0x28], esi
call fcn.005b6160
cmp eax, esi
jne 0x52f2d4
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x52f2d4
push ecx
push edi
lea ecx, [esp + 0x34]
call fcn.005316c0
test eax, eax
je 0x52f2b2
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
test ecx, ecx
mov word [esp + 0x38], di
mov dword [esp + 0x70], edi
mov dword [esp + 0xa4], eax
je 0x52f28d
mov edx, dword [esp + 0x54]
push 0x11
lea eax, [esp + 0x80]
push edx
push eax
call fcn.00466960
mov eax, dword [esp + 0x7c]
add esp, 0xc
cmp eax, esi
je 0x52f28d
mov ecx, dword [esp + 0x58]
push 0x10
lea edx, [esp + 0x94]
push ecx
push edx
call fcn.00466960
add esp, 0xc
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, 0xc
lea esi, [esp + 0x78]
mov edi, eax
inc edx
rep movsd dword es:[edi], dword [esi]
add eax, 0x30
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
xor esi, esi
jmp 0x52f2c0
cmp dword [esp + 0x14], esi
jne 0x52f2c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x52f2ce
push eax
call fcn.005b6c00
mov dword [esp + 0x70], esi
jmp 0x52f2de
cmp dword [esp + 0x14], esi
jne 0x52f2de
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, ebx
cmp edx, eax
jl 0x52f1dc
pop ebx
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xac], 0
mov dword [ebp + 4], ecx
lea ecx, [esp + 0x28]
call fcn.0052ed30
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x52f313
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x48], esi
jmp 0x52f32f
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x52f32a
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp + 0x48], esi
xor eax, eax
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa4
ret 8