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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
cmp dword [0x76666158], esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
je 0x7665f8ce
push dword [ebp + 8]
call fcn.7665f477
cmp eax, 3
je 0x7665f8ce
cmp eax, 2
jne 0x7665f605
push dword [ebp + 8]
push dword [0x76667d44]
call fcn.7665f51f
test eax, eax
je 0x7665f8ce
push 0x1388
push dword [0x766683cc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7665f8ce
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [0x766683c4]
mov eax, dword [eax]
xor ecx, ecx
inc ecx
cmp eax, 0x32
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], eax
ja 0x7665f8cc
cmp eax, esi
jbe 0x7665f645
mov ecx, eax
mov edi, dword [ebp + 0x10]
imul ecx, ecx, 0xd4
add ecx, 0x630
cmp dword [edi], ecx
jae 0x7665f664
mov dword [ebp - 0xc], 0xea
jmp 0x7665f8ce
and dword [ebp + 8], 0
test eax, eax
mov ecx, 0x18c
mov esi, 0x76667d38
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x766683c4]
mov ecx, dword [ecx + 4]
lea ebx, [edx + 0x630]
jg 0x7665f691
jmp 0x7665f884
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x32
jae 0x7665f87e
mov edx, dword [0x766683c4]
imul ecx, ecx, 0xe8
lea edx, [ecx + edx + 0x10]
cmp dword [edx + 8], 0
mov ecx, dword [edx]
mov dword [ebp - 0x10], ecx
je 0x7665f872
lea esi, [edx + 0x10]
xor eax, eax
mov ecx, esi
cmp word [ecx], 0
je 0x7665f6ce
inc eax
inc ecx
inc ecx
cmp eax, 0x20
jb 0x7665f6c0
cmp eax, 0x20
jae 0x7665f8cc
and dword [ebx + 4], 0
and dword [ebx + 8], 0
or dword [ebx + 0xc], 0xffffffff
mov dword [ebx + 0x10], 0x18
lea ecx, [eax + eax + 2]
mov dword [ebx + 0x14], ecx
lea eax, [ecx + 3]
shr eax, 2
lea eax, [eax*4 + 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x14], eax
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, ebx
mov dword [eax], 0x9c
mov ecx, dword [edx + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0x58]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x5c]
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 0x60]
mov dword [eax + 0x14], ecx
mov ecx, dword [edx + 0x64]
mov dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x68]
mov dword [eax + 0x1c], ecx
mov ecx, dword [edx + 0x6c]
mov dword [eax + 0x20], ecx
mov ecx, dword [edx + 0x70]
mov dword [eax + 0x24], ecx
mov ecx, dword [edx + 0x74]
mov dword [eax + 0x28], ecx
mov ecx, dword [edx + 0x78]
mov dword [eax + 0x2c], ecx
mov ecx, dword [edx + 0x7c]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x80]
mov dword [eax + 0x34], ecx
mov ecx, dword [edx + 0x84]
mov dword [eax + 0x38], ecx
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x3c], ecx
mov ecx, dword [edx + 0x8c]
mov dword [eax + 0x40], ecx
mov ecx, dword [edx + 0x90]
mov dword [eax + 0x44], ecx
mov ecx, dword [edx + 0x94]
mov dword [eax + 0x48], ecx
mov ecx, dword [edx + 0x98]
mov dword [eax + 0x4c], ecx
mov ecx, dword [edx + 0x9c]
mov dword [eax + 0x50], ecx
mov ecx, dword [edx + 0xa0]
mov dword [eax + 0x54], ecx
mov ecx, dword [edx + 0xa4]
mov dword [eax + 0x58], ecx
mov ecx, dword [edx + 0xa8]
mov dword [eax + 0x5c], ecx
mov ecx, dword [edx + 0xac]
mov dword [eax + 0x60], ecx
mov ecx, dword [edx + 0xb0]
mov dword [eax + 0x64], ecx
mov ecx, dword [edx + 0xb4]
mov dword [eax + 0x68], ecx
mov ecx, dword [edx + 0xb8]
mov dword [eax + 0x6c], ecx
mov ecx, dword [edx + 0xbc]
mov dword [eax + 0x70], ecx
mov ecx, dword [edx + 0xc0]
mov dword [eax + 0x74], ecx
mov ecx, dword [edx + 0xc4]
mov dword [eax + 0x78], ecx
mov ecx, dword [edx + 0xc8]
inc dword [ebp + 8]
mov dword [eax + 0x7c], ecx
mov ecx, dword [edx + 0xcc]
mov dword [eax + 0x80], ecx
mov ecx, dword [edx + 0xd0]
mov dword [eax + 0x84], ecx
mov ecx, dword [edx + 0xd4]
mov dword [eax + 0x88], ecx
mov ecx, dword [edx + 0xd8]
mov dword [eax + 0x8c], ecx
mov ecx, dword [edx + 0xdc]
mov dword [eax + 0x90], ecx
mov ecx, dword [edx + 0xe0]
mov dword [eax + 0x94], ecx
mov ecx, dword [edx + 0xe4]
mov dword [eax + 0x98], ecx
lea ebx, [eax + 0x9c]
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
mov edx, dword [ebp - 4]
jl 0x7665f68e
cmp dword [ebp + 8], 0
jne 0x7665f893
push 0x35
xor eax, eax
mov edi, ebx
pop ecx
rep stosd dword es:[edi], eax
add ebx, 0xd4
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp + 8]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 0x10]
sub ebx, edx
mov dword [eax], ebx
mov dword [edx], ebx
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x7665f8c5
push dword [0x766683cc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0xc]
leave
ret 0x10
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x7665f8b0