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

Disassembly:
push 0xffffffffffffffff
push 0x10086509
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10099998]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x30], ebp
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov edi, 1
mov dword [esp + 0x70], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x10088db8
mov byte [esp + 0x78], 2
call fcn.10064390
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x84]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
push eax
mov byte [esp + 0x80], 3
mov dword [esp + 0x44], eax
call fcn.1005df70
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov ecx, ebp
mov byte [esp + 0x7c], 2
call fcn.1006b5f0
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov ecx, dword [esp + 0x78]
push 0x1008878c
mov byte [esp + 0x74], 4
call fcn.10064390
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
cmp esi, eax
mov dword [esp + 0x20], edi
jbe 0x1006bc12
call fcn.10070390
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x48]
mov edi, ecx
mov dword [esp + 0x38], edi
mov ebp, esi
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ebp
mov esi, eax
jbe 0x1006bc33
call fcn.10070390
cmp edi, ebx
je 0x1006bc3f
lea ecx, [esp + 0x48]
cmp edi, ecx
je 0x1006bc44
call fcn.10070390
cmp ebp, esi
je 0x1006beb8
push 0x1008878c
lea ecx, [esp + 0x20]
call fcn.10064390
cmp edi, ebx
mov byte [esp + 0x70], 5
jne 0x1006bc68
call fcn.10070390
cmp ebp, dword [edi + 8]
jb 0x1006bc72
call fcn.10070390
mov eax, dword [ebp]
cmp dword [eax - 0xc], ebx
jle 0x1006be6e
push 0x3a
push eax
call fcn.100705d9
add esp, 8
test eax, eax
je 0x1006be6e
sub eax, dword [ebp]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x1006be6e
mov edi, dword [esp + 0x38]
cmp ebp, dword [edi + 8]
jb 0x1006bcaf
call fcn.10070390
push esi
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.10061290
lea esi, [ebp + 4]
cmp esi, dword [edi + 8]
mov byte [esp + 0x70], 6
mov dword [esp + 0x28], ebp
ja 0x1006bcd2
cmp esi, dword [edi + 4]
jae 0x1006bcd7
call fcn.10070390
mov ebx, edi
lea esp, [esp]
mov edi, dword [esp + 0x50]
cmp dword [esp + 0x4c], edi
jbe 0x1006bcef
call fcn.10070390
test ebx, ebx
je 0x1006bcfb
lea eax, [esp + 0x48]
cmp ebx, eax
je 0x1006bd00
call fcn.10070390
cmp esi, edi
je 0x1006be49
test ebx, ebx
jne 0x1006bd11
call fcn.10070390
cmp esi, dword [ebx + 8]
jb 0x1006bd1b
call fcn.10070390
cmp dword [esp + 0x14], 0
je 0x1006bd45
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x1006bd45
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.1007057b
add esp, 8
test eax, eax
je 0x1006bd45
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x1006bd54
cmp esi, dword [ebx + 8]
jb 0x1006bd4f
call fcn.10070390
add esi, 4
jmp 0x1006bce0
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x5c]
test edi, edi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x60]
je 0x1006bd8d
mov ecx, dword [esp + 0x64]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x1006bd8d
mov ecx, dword [esp + 0x18]
mov eax, edx
add eax, 4
mov dword [edx], ecx
mov dword [esp + 0x60], eax
jmp 0x1006bdb5
cmp edi, edx
mov ebp, edx
jbe 0x1006bd98
call fcn.10070390
lea edx, [esp + 0x24]
push edx
push ebp
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x68]
call fcn.10066e60
mov ebp, dword [esp + 0x3c]
cmp esi, dword [ebx + 8]
jb 0x1006bdbf
call fcn.10070390
mov ecx, dword [esp + 0x14]
push 0x1008878c
push ecx
mov ecx, esi
call fcn.100627c0
cmp esi, dword [ebx + 8]
jb 0x1006bdda
call fcn.10070390
mov edx, dword [esp + 0x38]
cmp ebp, dword [edx + 8]
jb 0x1006bde8
call fcn.10070390
push esi
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.10062a50
add esp, 0xc
mov edi, eax
cmp esi, dword [ebx + 8]
mov byte [esp + 0x70], 7
jb 0x1006be08
call fcn.10070390
push edi
mov ecx, esi
call fcn.10062e70
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x70], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006be35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, dword [ebx + 8]
jb 0x1006be3f
call fcn.10070390
push esi
lea ecx, [esp + 0x20]
call fcn.10062e70
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x70], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006be6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x70], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006be93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
cmp ebp, dword [ecx + 8]
jb 0x1006bea1
call fcn.10070390
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x38]
add ebp, 4
xor ebx, ebx
jmp 0x1006bc22
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
cmp esi, eax
mov edi, eax
jbe 0x1006bedc
call fcn.10070390
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
cmp esi, eax
jbe 0x1006bedc
call fcn.10070390
mov edx, dword [esp + 0x78]
mov eax, edi
push edx
sub eax, esi
sar eax, 2
push eax
push edi
push esi
call fcn.10063a60
mov esi, dword [esp + 0x6c]
add esp, 0x10
cmp esi, dword [esp + 0x60]
jbe 0x1006bf02
call fcn.10070390
mov edi, dword [esp + 0x60]
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x3c], esi
jbe 0x1006bf15
call fcn.10070390
cmp esi, edi
je 0x1006c098
cmp esi, dword [esp + 0x60]
jb 0x1006bf28
call fcn.10070390
cmp dword [esi], ebx
jl 0x1006c080
mov edi, dword [esp + 0x4c]
cmp edi, dword [esp + 0x50]
jbe 0x1006bf3f
call fcn.10070390
cmp esi, dword [esp + 0x60]
jb 0x1006bf4a
call fcn.10070390
mov eax, dword [esi]
lea esi, [edi + eax*4]
cmp esi, dword [esp + 0x50]
ja 0x1006bf5b
cmp esi, dword [esp + 0x4c]
jae 0x1006bf60
call fcn.10070390
mov eax, dword [esp + 0x50]
lea ebx, [esi + 4]
cmp ebx, eax
mov dword [esp + 0x2c], eax
je 0x1006c045
sub esi, ebx
mov dword [esp + 0x18], esi
lea esp, [esp]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
mov edi, dword [ecx + ebx]
add ecx, ebx
lea esi, [eax - 0x10]
sub edi, 0x10
cmp esi, edi
je 0x1006c038
cmp dword [edi + 0xc], 0
jl 0x1006c027
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x1006c027
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1006bfca
cmp eax, dword [esi]
jne 0x1006bfca
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1006c001
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x1006c093
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
lea eax, [eax + eax + 2]
push eax
add esi, 0x10
push esi
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.1006fd02
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x1006c01a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x18]
add ebp, 0x10
add eax, ebx
mov dword [eax], ebp
jmp 0x1006c038
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x18]
push ecx
push eax
lea ecx, [edx + ebx]
call fcn.10061570
add ebx, 4
cmp ebx, dword [esp + 0x2c]
jne 0x1006bf80
mov edi, dword [esp + 0x50]
lea esi, [edi - 4]
cmp esi, edi
je 0x1006c075
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006c06e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x1006c050
sub dword [esp + 0x50], 4
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, dword [esp + 0x60]
jb 0x1006c08b
call fcn.10070390
add esi, 4
jmp 0x1006bf02
call fcn.1005d1a0
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x34]
push edx
call fcn.1006b740
mov ebp, dword [esp + 0x78]
mov ecx, dword [eax]
mov esi, dword [ebp]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
mov byte [esp + 0x70], 8
je 0x1006c10d
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x1006c101
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x1006c101
push eax
call fcn.1005df70
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x1006c0f2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x78]
add ebp, 0x10
mov dword [ecx], ebp
xor ebx, ebx
mov ebp, ecx
jmp 0x1006c10d
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebp
call fcn.10061570
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x70], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1006c132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x1006c143
push eax
call fcn.1006fcfd
add esp, 4
mov esi, dword [esp + 0x4c]
cmp esi, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov byte [esp + 0x70], 1
je 0x1006c198
mov eax, dword [esp + 0x50]
cmp esi, eax
mov edi, eax
je 0x1006c18f
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006c184
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x1006c166
mov esi, dword [esp + 0x4c]
push esi
call fcn.1006fcfd
add esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x70], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1006c1c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8