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

Disassembly:
push 0xffffffffffffffff
push 0x88d6c6
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], 0x8af61c
mov dword [esp + 0x24], ebp
je 0x6e717c
push 0x7530
call fcn.006e9440
cmp ebp, esi
mov dword [esp + 0xac], esi
je 0x6e718c
cmp dword [ebp + 0x48], esi
jne 0x6e71bc
push 0x12345678
push str.result_lock_EnumKeyEx_fail___lock_failed_
mov ecx, ebp
call fcn.006eacc0
cmp ebp, esi
mov dword [ebp + 4], 0x8005
je 0x6e73dd
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x6e73da
jmp 0x6e73d3
mov ecx, dword [ebp + 0x24]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], esi
call fcn.00740a40
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.006eacc0
cmp edi, esi
jne 0x6e73cc
mov eax, dword [esp + 0xc]
cmp eax, esi
jle 0x6e73cc
mov ecx, dword [esp + 0xb8]
cmp ecx, esi
jne 0x6e721d
mov edi, eax
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x6e7213
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp + 0x48], esi
mov eax, edi
jmp 0x6e73df
mov edx, dword [ecx]
lea eax, [eax + eax*2]
shl eax, 4
cmp eax, edx
jle 0x6e7244
mov dword [ecx], eax
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x6e7239
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp + 0x48], esi
or eax, 0xffffffff
jmp 0x6e73df
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.006e6ce0
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.006e8aa0
mov eax, dword [esp + 0xc]
xor edx, edx
cmp eax, esi
jle 0x6e739d
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.00740b90
cmp eax, esi
jne 0x6e7384
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x6e7384
push ecx
push edi
lea ecx, [esp + 0x34]
call fcn.006e9770
test eax, eax
je 0x6e7362
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 0x6e733d
mov edx, dword [esp + 0x54]
push 0x11
lea eax, [esp + 0x80]
push edx
push eax
call fcn.005fdaf0
mov eax, dword [esp + 0x7c]
add esp, 0xc
cmp eax, esi
je 0x6e733d
mov ecx, dword [esp + 0x58]
push 0x10
lea edx, [esp + 0x94]
push ecx
push edx
call fcn.005fdaf0
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 0x6e7370
cmp dword [esp + 0x14], esi
jne 0x6e7370
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x6e737e
push eax
call fcn.00741630
mov dword [esp + 0x70], esi
jmp 0x6e738e
cmp dword [esp + 0x14], esi
jne 0x6e738e
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, ebx
cmp edx, eax
jl 0x6e728c
pop ebx
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xac], 0
mov dword [ebp + 4], ecx
lea ecx, [esp + 0x28]
call fcn.006e6de0
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x6e73c3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x48], esi
jmp 0x6e73df
mov eax, dword [ebp + 0x40]
cmp eax, esi
je 0x6e73da
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