Function at 0x100650d0
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 0x1006549e
mov al, 1
mov bl, 1
xchg byte [edi + 0x40], al
mov al, 1
xchg byte [edi + 0x30], al
test al, al
jne 0x10065120
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 0x10065120
push ecx
call dword [eax + 0xc]
add esp, 4
xchg byte [edi + 0x3c], bl
test bl, bl
jne 0x10065144
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 0x10065144
push ecx
call dword [eax + 4]
add esp, 4
mov eax, dword [esp + 0x34]
lock dec dword [eax]
jne 0x10065156
lea ecx, [esp + 0x34]
call fcn.100620a0
mov eax, dword [0x104debf8]
cmp eax, 5
jb 0x10065165
mov eax, dword [0x104debfc]
mov eax, dword [0x104d53e8]
dec eax
cmp eax, 5
jb 0x1006524a
mov ecx, dword [0x104d4dec]
test ecx, ecx
je 0x1006524a
mov al, 1
cmp ecx, 1
je 0x10065194
cmp ecx, 2
jne 0x1006558d
mov al, 2
movzx edx, al
mov ecx, 0x104d4dec
call fcn.10109d10
test al, al
je 0x1006524a
mov ecx, dword [0x104d4df0]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x10065802
mov edx, dword [ecx + 0x2c]
mov esi, dword [ecx + 0x34]
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x34], 0x10419f18
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], 0x100619e0
mov dword [esp + 0x60], edx
lea edx, [esp + 0x60]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 0x10419960
mov dword [esp + 0x54], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], ebx
call fcn.1010a570
mov eax, dword [esp]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1006549e
mov ecx, dword [esi + 8]
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x1006556f
mov al, byte [esi + 0xc]
lea ecx, [esi + 0xc]
test al, al
je 0x1006529d
mov eax, dword [0x104dec50]
test eax, eax
je 0x1006542e
mov edi, ecx
call fcn.100fa7c0
test al, al
jne 0x1006542e
mov ecx, edi
mov byte [edi], 1
jmp 0x1006542e
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov edx, dword [esp]
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.10062280
test eax, eax
je 0x1006541d
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 0x100653e9
mov edx, dword [eax + 8]
test edx, edx
je 0x1006539d
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 0x10065320
inc ebp
cmp dword [esp + 4], edi
jne 0x10065380
jmp 0x100653b6
test ebp, ebp
je 0x10065378
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 0x100657d8
cmp ebx, edi
jbe 0x100657e9
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 0x10065380
jmp 0x100653b6
xor ebp, ebp
cmp dword [esp + 4], edi
je 0x100653e9
mov edx, dword [eax + 8]
test edx, edx
je 0x1006539d
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 0x10065300
mov ecx, str.Out_of_bounds_access_3B
mov edx, 0x14
push 0x10419f44
call fcn.1000a730
add esp, 4
ud2
test ebp, ebp
mov dword [esp + 4], ebp
je 0x100653e9
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 0x100655a4
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 0x1006541d
lea ecx, [esp + 0x34]
push dword [esp]
call fcn.10062680
add esp, 4
cmp dword [esp + 0x3c], 0
je 0x1006541d
lea ecx, [esp + 0x34]
call fcn.10061ef0
test bl, bl
jne 0x1006542e
mov eax, dword [0x104dec50]
test eax, eax
jne 0x100657bf
mov edi, dword [esi + 8]
mov eax, dword [0x104dec60]
test eax, eax
je 0x1006544f
cmp eax, 0x100f30b0
jne 0x10065474
mov eax, dword [edi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x1006549e
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
je 0x10065441
mov eax, dword [0x104dec78]
test eax, eax
jne 0x1006549b
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push edi
call eax
mov eax, dword [esp]
cmp byte [eax], 2
jb 0x100654cf
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 0x100654ff
lock dec dword [eax]
jne 0x100654ff
mov ecx, dword [esp]
add ecx, 0x18
call fcn.10061ab0
mov esi, dword [edi]
test esi, esi
je 0x10065564
mov al, 1
mov bl, 1
xchg byte [esi + 0x40], al
mov al, 1
xchg byte [esi + 0x30], al
test al, al
jne 0x10065532
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 0x10065532
push ecx
call dword [eax + 0xc]
add esp, 4
xchg byte [esi + 0x3c], bl
test bl, bl
jne 0x10065556
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 0x10065556
push ecx
call dword [eax + 4]
add esp, 4
mov eax, dword [edi]
lock dec dword [eax]
jne 0x10065564
mov ecx, edi
call fcn.100620a0
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100fa7c0
mov dl, byte [esi + 0xc]
mov ebx, eax
lea ecx, [esi + 0xc]
test dl, dl
je 0x100655c7
test bl, bl
jne 0x10065277
jmp 0x1006542e
mov ecx, 0x104d4dec
call fcn.10109c60
test al, al
jne 0x10065194
jmp 0x1006524a
mov dword [esp + 0x18], ebx
mov ebx, dword [eax + 8]
cmp ecx, ebp
mov dword [esp + 0x20], ebp
jae 0x100655d3
mov edx, dword [esp + 0x10]
sub edx, ebp
jb 0x10065816
mov ebp, edx
mov dword [esp + 0x14], ecx
jmp 0x100655eb
mov dword [esp + 0x1c], ecx
xor bl, 1
jmp 0x100652a3
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], 0
cmp edx, ecx
jb 0x10065827
mov edx, edi
sub ecx, esi
sub edx, ebp
jbe 0x10065697
mov edi, dword [esp + 0x14]
and ecx, dword [esp + 0x18]
cmp edi, edx
mov dword [eax + 4], ecx
je 0x100653e9
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 0x10065631
mov eax, dword [esp + 0xc]
add ebx, 4
add edi, 0xfffffffc
je 0x100653e9
mov esi, dword [ebx]
mov al, 1
xchg byte [esi + 0x40], al
mov al, 1
xchg byte [esi + 0x30], al
test al, al
jne 0x10065661
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 0x10065661
push ecx
call dword [eax + 4]
add esp, 4
mov al, 1
xchg byte [esi + 0x3c], al
test al, al
jne 0x10065687
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x38], 0
test eax, eax
je 0x10065682
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 0x10065621
mov ecx, ebx
call fcn.100620a0
jmp 0x10065621
and ecx, dword [esp + 0x18]
cmp edi, ebp
mov dword [eax + 4], ecx
jne 0x10065731
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
test edi, edi
je 0x100653e9
shl edi, 2
jmp 0x100656cb
mov eax, dword [esp + 0xc]
add ebx, 4
add edi, 0xfffffffc
je 0x100653e9
mov esi, dword [ebx]
mov al, 1
xchg byte [esi + 0x40], al
mov al, 1
xchg byte [esi + 0x30], al
test al, al
jne 0x100656fb
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 0x100656fb
push ecx
call dword [eax + 4]
add esp, 4
mov al, 1
xchg byte [esi + 0x3c], al
test al, al
jne 0x10065721
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x38], 0
test eax, eax
je 0x1006571c
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 0x100656bb
mov ecx, ebx
call fcn.100620a0
jmp 0x100656bb
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 0x10065759
add edi, 4
add ebp, 0xfffffffc
je 0x100656a6
mov esi, dword [edi]
mov al, 1
xchg byte [esi + 0x40], al
mov al, 1
xchg byte [esi + 0x30], al
test al, al
jne 0x10065789
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 0x10065789
push ecx
call dword [eax + 4]
add esp, 4
mov al, 1
xchg byte [esi + 0x3c], al
test al, al
jne 0x100657af
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x38], 0
test eax, eax
je 0x100657aa
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 0x1006574d
mov ecx, edi
call fcn.100620a0
jmp 0x1006574d
call fcn.100fa7c0
test al, al
jne 0x1006542e
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
jmp 0x1006542e
mov ecx, str.assertion_failed:_i___self.len___3B
mov edx, 0x20
push 0x10419f74
jmp 0x100657f8
mov ecx, str.assertion_failed:_j___self.len___3B
mov edx, 0x20
push 0x10419fa4
call fcn.100082b0
add esp, 4
ud2
mov ecx, 0x1041992d
mov edx, 0x22
push 0x10419f20
jmp 0x100653ac
mov ecx, str.assertion_failed:_mid___self.len__
mov edx, 0x23
push 0x1042331c
jmp 0x100657f8
push 0x1042332c
call fcn.100088f0
add esp, 4
ud2