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

Disassembly:
push 0xffffffffffffffff
push 0x1012ac42
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101636d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
mov dword [edi], vtable.t_cuResourceManager.0
lea eax, [edi + 0xbc]
push eax
mov dword [esp + 0x24], 7
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor ebx, ebx
cmp dword [0x101670b4], ebx
je 0x1007b175
mov ecx, dword [edi + 0x1c]
sub ecx, dword [edi + 0x18]
lea esi, [edi + 0xc]
sar ecx, 2
xor ebp, ebp
test ecx, ecx
jbe 0x1007b018
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp ebp, edx
jb 0x1007afe6
call fcn.100d1cc3
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + ebp*4]
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1007b008
test ebx, ebx
je 0x1007b008
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
inc ebp
sar ecx, 2
cmp ebp, ecx
jb 0x1007afd4
xor ebx, ebx
mov eax, esi
call fcn.1007c3f0
mov edx, dword [edi + 0x4c]
sub edx, dword [edi + 0x48]
lea esi, [edi + 0x3c]
sar edx, 2
test edx, edx
jbe 0x1007b05d
nop
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x1007b042
call fcn.100d1cc3
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x1007b030
mov eax, esi
call fcn.1007c3f0
mov edx, dword [edi + 0x64]
sub edx, dword [edi + 0x60]
lea esi, [edi + 0x54]
sar edx, 2
xor ebx, ebx
test edx, edx
jbe 0x1007b0a5
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x1007b088
call fcn.100d1cc3
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + ebx*4]
push eax
call fcn.100cf5f9
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
inc ebx
sar edx, 2
add esp, 4
cmp ebx, edx
jb 0x1007b076
mov eax, esi
call fcn.1007c3f0
mov eax, dword [edi + 0x7c]
sub eax, dword [edi + 0x78]
lea esi, [edi + 0x6c]
sar eax, 2
xor ebx, ebx
test eax, eax
jbe 0x1007b0ed
mov edi, edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ebx, ecx
jb 0x1007b0d2
call fcn.100d1cc3
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + ebx*4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x1007b0c0
mov eax, esi
call fcn.1007c3f0
mov ecx, dword [edi + 0x94]
sub ecx, dword [edi + 0x90]
lea esi, [edi + 0x84]
sar ecx, 2
xor ebx, ebx
test ecx, ecx
jbe 0x1007b13d
nop
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 2
cmp ebx, edx
jb 0x1007b122
call fcn.100d1cc3
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x1007b110
mov eax, esi
call fcn.1007c3f0
mov edx, dword [edi + 0xb4]
mov eax, dword [edx + 4]
lea esi, [edi + 0x9c]
push eax
mov ecx, esi
call fcn.1007c650
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov esi, dword [esi + 0x18]
mov dword [esi + 8], esi
xor ebx, ebx
lea esi, [edi + 0x9c]
mov dword [esp + 0x14], esi
mov byte [esp + 0x20], 8
call fcn.1007c6b0
mov ecx, dword [esi]
push ecx
call fcn.100cf5f9
mov eax, dword [edi + 0x90]
add esp, 4
cmp eax, ebx
je 0x1007b1a7
push eax
call fcn.100cf5f9
add esp, 4
mov edx, dword [edi + 0x84]
push edx
mov dword [edi + 0x90], ebx
mov dword [edi + 0x94], ebx
mov dword [edi + 0x98], ebx
call fcn.100cf5f9
mov eax, dword [edi + 0x78]
add esp, 4
cmp eax, ebx
je 0x1007b1d8
push eax
call fcn.100cf5f9
add esp, 4
mov eax, dword [edi + 0x6c]
push eax
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
call fcn.100cf5f9
mov eax, dword [edi + 0x60]
add esp, 4
cmp eax, ebx
je 0x1007b200
push eax
call fcn.100cf5f9
add esp, 4
mov ecx, dword [edi + 0x54]
push ecx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
call fcn.100cf5f9
mov eax, dword [edi + 0x48]
add esp, 4
cmp eax, ebx
je 0x1007b225
push eax
call fcn.100cf5f9
add esp, 4
mov edx, dword [edi + 0x3c]
push edx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
call fcn.100cf5f9
mov eax, dword [edi + 0x30]
add esp, 4
cmp eax, ebx
je 0x1007b24a
push eax
call fcn.100cf5f9
add esp, 4
mov eax, dword [edi + 0x24]
push eax
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
call fcn.100cf5f9
mov eax, dword [edi + 0x18]
add esp, 4
cmp eax, ebx
je 0x1007b26f
push eax
call fcn.100cf5f9
add esp, 4
mov ecx, dword [edi + 0xc]
push ecx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.100cf5f9
add esp, 4
mov dword [edi], vtable.t_cuObject.0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4