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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x80
mov edi, dword [ecx + 0x1c]
mov dword [ecx + 0x1c], 0
mov dword [esp], ecx
test edi, edi
mov dword [esp + 0x34], edi
je 0x1006575e
mov al, 1
mov bl, 1
xchg byte [edi + 0x40], al
mov al, 1
xchg byte [edi + 0x30], al
test al, al
jne 0x100653e0
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
xor edx, edx
mov dword [edi + 0x2c], 0
xchg byte [edi + 0x30], dl
test eax, eax
je 0x100653e0
push ecx
call dword [eax + 0xc]
add esp, 4
xchg byte [edi + 0x3c], bl
test bl, bl
jne 0x10065404
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x34]
xor edx, edx
mov dword [edi + 0x38], 0
xchg byte [edi + 0x3c], dl
test eax, eax
je 0x10065404
push ecx
call dword [eax + 4]
add esp, 4
mov eax, dword [esp + 0x34]
lock dec dword [eax]
jne 0x10065416
lea ecx, [esp + 0x34]
call fcn.10062360
mov eax, dword [0x10551ebc]
cmp eax, 5
jb 0x10065425
mov eax, dword [0x10551ec0]
mov eax, dword [0x10411958]
dec eax
cmp eax, 5
jb 0x1006550a
mov ecx, dword [0x1041135c]
test ecx, ecx
je 0x1006550a
mov al, 1
cmp ecx, 1
je 0x10065454
cmp ecx, 2
jne 0x1006584d
mov al, 2
movzx edx, al
mov ecx, 0x1041135c
call fcn.10109ff0
test al, al
je 0x1006550a
mov ecx, dword [0x10411360]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x10065ac2
mov edx, dword [ecx + 0x2c]
mov esi, dword [ecx + 0x34]
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x34], 0x10398ca8
mov dword [esp + 0x38], 1
lea ebx, [ecx + 0x2c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x70], edx
mov edx, dword [esp]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], esi
lea esi, [esp + 0x4c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x44], esi
lea esi, [esp + 0x34]
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x50], 0x10061ca0
mov dword [esp + 0x60], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 0x103986f0
mov dword [esp + 0x54], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], ebx
call fcn.1010a850
mov eax, dword [esp]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1006575e
mov ecx, dword [esi + 8]
call fcn.100f4af0
mov eax, dword [0x10551f14]
test eax, eax
jne 0x1006582f
mov al, byte [esi + 0xc]
lea ecx, [esi + 0xc]
test al, al
je 0x1006555d
mov eax, dword [0x10551f14]
test eax, eax
je 0x100656ee
mov edi, ecx
call fcn.100faaa0
test al, al
jne 0x100656ee
mov ecx, edi
mov byte [edi], 1
jmp 0x100656ee
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp]
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.10062540
test eax, eax
je 0x100656dd
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov esi, dword [eax + 0xc]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], edi
sub ecx, ebx
dec esi
and ecx, esi
mov dword [esp + 8], ecx
je 0x100656a9
mov edx, dword [eax + 8]
test edx, edx
je 0x1006565d
mov ecx, dword [esp + 8]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0xc], eax
dec ecx
mov dword [esp + 4], ecx
nop word [eax + eax]
add ebx, edi
and ebx, esi
mov edx, dword [edx + ebx*4]
movzx edx, byte [edx + 0x40]
test dl, dl
je 0x100655e0
inc ebp
cmp dword [esp + 4], edi
jne 0x10065640
jmp 0x10065676
test ebp, ebp
je 0x10065638
mov esi, dword [eax + 0xc]
mov edx, ebp
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, edi
sub ecx, ebp
sub ebx, edx
dec esi
and ebx, esi
cmp ebx, ecx
jbe 0x10065a98
cmp ebx, edi
jbe 0x10065aa9
mov eax, dword [esp + 0xc]
add edx, edi
mov ebx, ebp
mov ecx, edx
and edx, esi
sub ecx, ebp
and ecx, esi
mov esi, dword [eax + 8]
mov ebp, dword [esi + ecx*4]
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + edx*4]
mov dword [esi + ecx*4], ebp
mov ebp, dword [esp + 0x10]
mov dword [esi + edx*4], ebp
mov ebp, ebx
cmp dword [esp + 4], edi
jne 0x10065640
jmp 0x10065676
xor ebp, ebp
cmp dword [esp + 4], edi
je 0x100656a9
mov edx, dword [eax + 8]
test edx, edx
je 0x1006565d
mov esi, dword [eax + 0xc]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
inc edi
sub ecx, ebx
dec esi
and ecx, esi
cmp ecx, edi
ja 0x100655c0
mov ecx, str.Out_of_bounds_access
mov edx, 0x14
push 0x10398cd4
call fcn.1000a9c0
add esp, 4
ud2
test ebp, ebp
mov dword [esp + 4], ebp
je 0x100656a9
mov edi, dword [esp + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 4]
mov ebp, dword [eax]
sub edi, dword [esp + 4]
mov edx, ecx
lea ebx, [esi - 1]
mov dword [esp + 0x10], esi
sub edx, ebp
mov esi, ebx
and esi, edx
mov dword [esp + 0x24], edx
sub esi, edi
jae 0x10065864
mov ecx, eax
mov eax, dword [eax]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp eax, dword [ecx + 4]
jne 0x100656dd
lea ecx, [esp + 0x34]
push dword [esp]
call fcn.10062940
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x100656dd
lea ecx, [esp + 0x34]
call fcn.100621b0
test bl, bl
jne 0x100656ee
mov eax, dword [0x10551f14]
test eax, eax
jne 0x10065a7f
mov edi, dword [esi + 8]
mov eax, dword [0x10551f24]
test eax, eax
je 0x1006570f
cmp eax, 0x100f3390
jne 0x10065734
mov eax, dword [edi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x1006575e
mov ecx, 0x103a03b9
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3390
cmovne eax, edx
mov dword [0x10551f24], eax
cmp eax, 0x100f3390
je 0x10065701
mov eax, dword [0x10551f3c]
test eax, eax
jne 0x1006575b
mov ecx, str.ReleaseSRWLockExclusive
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f51d0
cmovne eax, edx
mov dword [0x10551f3c], eax
push edi
call eax
mov eax, dword [esp]
cmp byte [eax], 2
jb 0x1006578f
mov esi, dword [esp]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
lea edx, [eax + 8]
push dword [eax + 4]
push dword [eax]
push edx
call dword [ecx + 4]
add esp, 0xc
mov esi, dword [esi + 4]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [esp]
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
push ecx
call dword [eax + 4]
add esp, 0xc
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100657bf
lock dec dword [eax]
jne 0x100657bf
mov ecx, dword [esp]
add ecx, 0x18
call fcn.10061d70
mov esi, dword [edi]
test esi, esi
je 0x10065824
mov al, 1
mov bl, 1
xchg byte [esi + 0x40], al
mov al, 1
xchg byte [esi + 0x30], al
test al, al
jne 0x100657f2
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
xor edx, edx
mov dword [esi + 0x2c], 0
xchg byte [esi + 0x30], dl
test eax, eax
je 0x100657f2
push ecx
call dword [eax + 0xc]
add esp, 4
xchg byte [esi + 0x3c], bl
test bl, bl
jne 0x10065816
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
xor edx, edx
mov dword [esi + 0x38], 0
xchg byte [esi + 0x3c], dl
test eax, eax
je 0x10065816
push ecx
call dword [eax + 4]
add esp, 4
mov eax, dword [edi]
lock dec dword [eax]
jne 0x10065824
mov ecx, edi
call fcn.10062360
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100faaa0
mov dl, byte [esi + 0xc]
mov ebx, eax
lea ecx, [esi + 0xc]
test dl, dl
je 0x10065887
test bl, bl
jne 0x10065537
jmp 0x100656ee
mov ecx, 0x1041135c
call fcn.10109f40
test al, al
jne 0x10065454
jmp 0x1006550a
mov dword [esp + 0x18], ebx
mov ebx, dword [eax + 8]
cmp ecx, ebp
mov dword [esp + 0x20], ebp
jae 0x10065893
mov edx, dword [esp + 0x10]
sub edx, ebp
jb 0x10065ad6
mov ebp, edx
mov dword [esp + 0x14], ecx
jmp 0x100658ab
mov dword [esp + 0x1c], ecx
xor bl, 1
jmp 0x10065563
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], 0
cmp edx, ecx
jb 0x10065ae7
mov edx, edi
sub ecx, esi
sub edx, ebp
jbe 0x10065957
mov edi, dword [esp + 0x14]
and ecx, dword [esp + 0x18]
cmp edi, edx
mov dword [eax + 4], ecx
je 0x100656a9
add edi, ebp
mov eax, dword [esp + 8]
lea ebx, [ebx + edx*4]
add edi, dword [esp + 4]
shl eax, 2
shl edi, 2
sub edi, eax
jmp 0x100658f1
mov eax, dword [esp + 0xc]
add ebx, 4
add edi, 0xfffffffc
je 0x100656a9
mov esi, dword [ebx]
mov al, 1
xchg byte [esi + 0x40], al
mov al, 1
xchg byte [esi + 0x30], al
test al, al
jne 0x10065921
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], 0
mov edx, 0
xchg byte [esi + 0x30], dl
test eax, eax
je 0x10065921
push ecx
call dword [eax + 4]
add esp, 4
mov al, 1
xchg byte [esi + 0x3c], al
test al, al
jne 0x10065947
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x38], 0
test eax, eax
je 0x10065942
push ecx
call dword [eax + 0xc]
add esp, 4
xor eax, eax
xchg byte [esi + 0x3c], al
mov eax, dword [ebx]
lock dec dword [eax]
jne 0x100658e1
mov ecx, ebx
call fcn.10062360
jmp 0x100658e1
and ecx, dword [esp + 0x18]
cmp edi, ebp
mov dword [eax + 4], ecx
jne 0x100659f1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
test edi, edi
je 0x100656a9
shl edi, 2
jmp 0x1006598b
mov eax, dword [esp + 0xc]
add ebx, 4
add edi, 0xfffffffc
je 0x100656a9
mov esi, dword [ebx]
mov al, 1
xchg byte [esi + 0x40], al
mov al, 1
xchg byte [esi + 0x30], al
test al, al
jne 0x100659bb
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], 0
mov edx, 0
xchg byte [esi + 0x30], dl
test eax, eax
je 0x100659bb
push ecx
call dword [eax + 4]
add esp, 4
mov al, 1
xchg byte [esi + 0x3c], al
test al, al
jne 0x100659e1
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x38], 0
test eax, eax
je 0x100659dc
push ecx
call dword [eax + 0xc]
add esp, 4
xor eax, eax
xchg byte [esi + 0x3c], al
mov eax, dword [ebx]
lock dec dword [eax]
jne 0x1006597b
mov ecx, ebx
call fcn.10062360
jmp 0x1006597b
mov eax, dword [esp + 0x20]
add ebp, dword [esp + 4]
lea ecx, [ebx + eax*4]
shl ebp, 2
lea edi, [ecx + edi*4]
mov ecx, dword [esp + 8]
shl ecx, 2
sub ebp, ecx
jmp 0x10065a19
add edi, 4
add ebp, 0xfffffffc
je 0x10065966
mov esi, dword [edi]
mov al, 1
xchg byte [esi + 0x40], al
mov al, 1
xchg byte [esi + 0x30], al
test al, al
jne 0x10065a49
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], 0
mov edx, 0
xchg byte [esi + 0x30], dl
test eax, eax
je 0x10065a49
push ecx
call dword [eax + 4]
add esp, 4
mov al, 1
xchg byte [esi + 0x3c], al
test al, al
jne 0x10065a6f
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x38], 0
test eax, eax
je 0x10065a6a
push ecx
call dword [eax + 0xc]
add esp, 4
xor eax, eax
xchg byte [esi + 0x3c], al
mov eax, dword [edi]
lock dec dword [eax]
jne 0x10065a0d
mov ecx, edi
call fcn.10062360
jmp 0x10065a0d
call fcn.100faaa0
test al, al
jne 0x100656ee
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
jmp 0x100656ee
mov ecx, str.assertion_failed:_i___self.len__
mov edx, 0x20
push 0x10398d04
jmp 0x10065ab8
mov ecx, str.assertion_failed:_j___self.len__
mov edx, 0x20
push 0x10398d34
call fcn.10008540
add esp, 4
ud2
mov ecx, 0x103986bd
mov edx, 0x22
push 0x10398cb0
jmp 0x1006566c
mov ecx, str.assertion_failed:_mid___self.len__
mov edx, 0x23
push 0x103a20ac
jmp 0x10065ab8
push 0x103a20bc
call fcn.10008b80
add esp, 4
ud2