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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x1c
shl eax, 4
nop
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
push ebp
mov edi, dword [esp + 0x3c]
mov ecx, dword [eax + esi + 0x464]
xor eax, eax
mov dword [esp + 0x28], ecx
mov word [edi + 8], ax
mov dword [esp + 0x10], eax
mov word [edi + 0xa], ax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov ebx, 1
add eax, 0x10
mov ebp, dword [edi + 0xc]
nop
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
sub eax, ebp
mov dword [esp + 0x1c], edx
cmp eax, ebx
jg 0x7f8f7acf
mov eax, ebx
mov dword [esp + 0x20], eax
test eax, eax
jle 0x7f8f7ba6
test ebx, ebx
jle 0x7f8f7ba6
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x118]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x34]
push ecx
mov ebp, dword [eax + edx*4 + 4]
push ebp
push esi
call fcn.7f8f7fb0
mov ebx, eax
test ebx, ebx
je 0x7f8f7cf2
shl ebp, 2
push 0x7f91f040
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7f91f01c]
mov ecx, dword [eax + 8]
lea eax, [ebp + ebp*2]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx + 0x10]
test eax, eax
mov eax, dword [ebx + 0x18]
jne 0x7f8f7b56
movsx ecx, word [edi + 8]
cmp ecx, eax
jge 0x7f8f7b45
mov word [edi + 8], ax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], eax
movsx ecx, word [edi + 0xa]
mov eax, dword [ebx + 0x1c]
cmp ecx, eax
jge 0x7f8f7b71
mov word [edi + 0xa], ax
jmp 0x7f8f7b71
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x7f8f7b62
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jge 0x7f8f7b71
mov dword [esp + 0x24], eax
push 0x7f91f040
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call fcn.7f8f7f90
mov ebx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
call fcn.7f8f3e60
mov eax, dword [esp + 0x20]
sub eax, ebx
mov dword [esp + 0x20], eax
test eax, eax
jg 0x7f8f7adb
mov ax, word [edi + 0xa]
mov edx, dword [esp + 0x14]
movsx ecx, ax
cmp ecx, edx
jle 0x7f8f7bbc
sub ax, dx
add word [edi + 8], ax
test byte [edi + 0x10], 0x10
je 0x7f8f7c2d
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x18]
mov eax, dword [esi + 0x12c]
lea edx, [ecx + ecx*2]
mov ecx, dword [eax + edx*4 + 4]
mov eax, dword [esi + 0x440]
mov edx, ecx
lea ecx, [ecx + ecx*4]
shl ecx, 3
sub ecx, edx
cmp word [eax + ecx*4 + 8], 1
jne 0x7f8f7c2d
mov eax, dword [esi + 0x78]
lea ecx, [esp + 0x14]
and eax, 0xfffffeff
push ecx
mov edx, dword [esp + 0x38]
push 0
push edx
mov dword [esi + 0x78], eax
mov ecx, dword [edi]
mov eax, dword [esp + 0x44]
add ecx, dword [eax]
sub ecx, 2
test ecx, ecx
jg 0x7f8f7c16
xor ecx, ecx
push ecx
push esi
call fcn.7f8f6100
movsx eax, word [edi + 8]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jge 0x7f8f7c2d
mov word [edi + 8], cx
cmp word [edi + 8], 0
jne 0x7f8f7c46
mov ax, word [esp + 0x10]
mov cx, word [esp + 0x24]
mov word [edi + 8], ax
mov word [edi + 0xa], cx
mov eax, dword [esp + 0x38]
mov ebx, dword [edi]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
add eax, 0x20
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp edx, ebx
jg 0x7f8f7cf2
mov eax, dword [esi + 0x504]
mov ecx, dword [esp + 0x18]
dec eax
cmp eax, ecx
jle 0x7f8f7cf2
or byte [edi + 0x10], 8
movsx eax, word [edi + 0xa]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
mov eax, dword [esp + 0x20]
push edx
push eax
mov ebp, 0x9ec
push esi
call fcn.7f90a1c0
mov ecx, dword [esp + 0x28]
imul ecx, dword [esp + 0x10]
mov eax, ecx
cdq
idiv ebp
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
idiv ebp
cmp edx, 0x4f6
jl 0x7f8f7cba
inc dword [esp + 0x10]
mov ax, word [edi + 0xa]
mov edx, dword [esp + 0x10]
movsx ecx, ax
movsx ebp, word [edi + 8]
add ecx, edx
cmp ecx, ebp
jle 0x7f8f7cd6
add ax, dx
mov word [edi + 8], ax
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push ebp
sub ebx, ebp
push eax
push esi
call fcn.7f9095a0
cmp dword [esp + 0x1c], ebx
jle 0x7f8f7c65
mov eax, dword [edi]
mov ecx, dword [esp + 0x38]
push eax
push ecx
push esi
call fcn.7f8f9b50
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10