Function at 0x100670f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100adb80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0x10], 0
je 0x100673e4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100673e4
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100673e4
mov dword [eax], 0
mov dword [ecx], 0
mov eax, dword [esi + 0x21cc]
dec eax
je 0x100676b1
sub eax, 2
je 0x100673fa
sub eax, 2
jne 0x100673e4
lea ecx, [ebp - 0x1c]
call fcn.100626c0
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 3
test ebx, ebx
je 0x100673d5
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100673d5
lea eax, [ebp + 8]
mov dword [ebp + 0x18], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0x18]
mov dword [ebp + 8], 0
push eax
push edi
push ebx
call fcn.10062900
add esp, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100673d5
cmp dword [ebp + 8], 0x10000000
jne 0x100673d5
cmp dword [ebp + 0xc], 4
jne 0x100673d5
mov ecx, dword [eax]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
mov eax, dword [ebp - 0x10]
shl edx, 8
or edx, ecx
movzx eax, byte [eax + 3]
or edx, eax
cmp dword [esi + 0x21cc], edx
jne 0x100673d5
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push ebx
call fcn.100629b0
add esp, 0x14
test eax, eax
je 0x100673d5
cmp dword [ebp + 8], 0x70000000
jne 0x100673d5
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x2800
ja 0x100673d5
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.10062800
test eax, eax
je 0x100673d5
push dword [ebp - 0x1c]
inc dword [esi + 0x21cc]
push dword [ebp - 0x14]
push dword [esi + 0x21d0]
call fcn.1005ff30
add esp, 0xc
test eax, eax
jne 0x100673d5
lea ecx, [ebp - 0x1c]
call fcn.10062b10
call fcn.1005f4b0
mov dword [ebp + 8], eax
test eax, eax
je 0x100673d5
lea eax, [ebp + 8]
push eax
push dword [esi + 0x21d0]
call fcn.1005ff50
add esp, 8
test eax, eax
je 0x100672bc
push dword [ebp + 8]
jmp 0x100673cd
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x100673cc
mov edx, dword [eax + 4]
test edx, edx
je 0x100673cc
push edx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10062800
push dword [ebp + 8]
test eax, eax
je 0x100673cd
call fcn.1005f4c0
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.100626c0
mov ecx, dword [esi + 0x21cc]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
shr ecx, 8
or edx, eax
mov byte [ebp - 4], 4
movzx eax, byte [esi + 0x21cf]
and ecx, 0xff00
shl edx, 8
or edx, ecx
lea ecx, [ebp - 0x34]
push 0x10000000
or edx, eax
lea eax, [ebp + 0x18]
push 4
push eax
mov dword [ebp + 0x18], edx
call fcn.100626e0
test eax, eax
je 0x100673be
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100673be
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100673be
push 0x70000000
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.100626e0
test eax, eax
je 0x100673be
cmp dword [ebp - 0x2c], 0
je 0x100673be
cmp dword [ebp - 0x34], 0
je 0x100673be
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
call fcn.10062ad0
inc dword [esi + 0x21cc]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.10062250
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 1
call fcn.10062b10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.10062250
jmp 0x100673d5
push eax
call fcn.1005f4c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10062b10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x40]
call fcn.100626c0
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x100676a2
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100676a2
lea eax, [ebp + 8]
mov dword [ebp + 0x14], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0x14]
mov dword [ebp + 8], 0
push eax
push edi
push ebx
call fcn.10062900
add esp, 0x14
mov dword [ebp + 0x18], eax
test eax, eax
je 0x100676a2
cmp dword [ebp + 8], 0x10000000
jne 0x100676a2
cmp dword [ebp + 0xc], 4
jne 0x100676a2
mov ecx, dword [eax]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
mov eax, dword [ebp + 0x18]
shl edx, 8
or edx, ecx
movzx eax, byte [eax + 3]
or edx, eax
cmp dword [esi + 0x21cc], edx
jne 0x100676a2
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
call fcn.100629b0
add esp, 0x14
test eax, eax
je 0x100676a2
cmp dword [ebp + 8], 0x60000000
jne 0x100676a2
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x2800
ja 0x100676a2
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10062800
test eax, eax
je 0x100676a2
inc dword [esi + 0x21cc]
push 0
push dword [esi + 0x21d0]
call fcn.1005fef0
add esp, 8
test eax, eax
jne 0x100676a2
call fcn.1005f4b0
mov dword [ebp + 8], eax
test eax, eax
je 0x100676a2
push dword [ebp - 0x40]
lea eax, [ebp + 8]
push dword [ebp - 0x38]
push eax
push dword [esi + 0x21d0]
call fcn.1005ff10
add esp, 0x10
test eax, eax
je 0x1006754b
push dword [ebp + 8]
jmp 0x1006769a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x10067699
mov edx, dword [eax + 4]
test edx, edx
je 0x10067699
push edx
push ecx
lea ecx, [esi + 0x44]
call fcn.10062800
push dword [ebp + 8]
test eax, eax
je 0x1006769a
call fcn.1005f4c0
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.100626c0
mov ecx, dword [esi + 0x21cc]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
shr ecx, 8
or edx, eax
mov byte [ebp - 4], 2
movzx eax, byte [esi + 0x21cf]
and ecx, 0xff00
shl edx, 8
or edx, ecx
lea ecx, [ebp - 0x28]
push 0x10000000
or edx, eax
lea eax, [ebp + 8]
push 4
push eax
mov dword [ebp + 8], edx
call fcn.100626e0
test eax, eax
je 0x1006767e
call fcn.1005f4b0
mov edi, eax
test edi, edi
je 0x1006767e
mov ecx, dword [esi + 0x21d0]
push edi
push dword [ecx + 0x20]
call fcn.1005fad0
add esp, 8
test eax, eax
jne 0x10067675
mov eax, dword [edi]
test eax, eax
je 0x10067675
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10067675
push 0x60000000
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100626e0
push edi
test eax, eax
je 0x10067676
call fcn.1005f4c0
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x1006767e
cmp dword [ebp - 0x28], 0
je 0x1006767e
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.10062ad0
inc dword [esi + 0x21cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10062250
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10062b10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push edi
call fcn.1005f4c0
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10062250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
jmp 0x100673df
push eax
call fcn.1005f4c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
jmp 0x100673df
mov edi, dword [ebp + 8]
test edi, edi
je 0x100673e4
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100673e4
lea eax, [ebp + 8]
mov dword [ebp + 0x14], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0x14]
mov dword [ebp + 8], 0
push eax
push ebx
push edi
call fcn.10062900
add esp, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100673e4
cmp dword [ebp + 8], 0x10000000
jne 0x100673e4
cmp dword [ebp + 0xc], 4
jne 0x100673e4
mov ecx, dword [eax]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
mov eax, dword [ebp - 0x10]
shl edx, 8
or edx, ecx
movzx eax, byte [eax + 3]
or edx, eax
cmp dword [esi + 0x21cc], edx
jne 0x100673e4
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push edi
call fcn.100629b0
add esp, 0x14
test eax, eax
je 0x100673e4
cmp dword [ebp + 8], 0x20000000
jne 0x100673e4
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x2800
ja 0x100673e4
push ecx
push eax
lea ecx, [esi + 0x68]
call fcn.10062800
test eax, eax
je 0x100673e4
lea ecx, [esi + 0x68]
call fcn.100626a0
test eax, eax
je 0x100673e4
mov eax, dword [esi + 0x68]
test al, 1
jne 0x100673e4
xor edi, edi
test eax, 0xfffffffe
jbe 0x100677f1
jmp 0x100677d0
mov edx, dword [esi + 0x70]
mov cx, word [edx + edi*2]
movzx eax, byte [edx + edi*2 + 1]
shl cx, 8
or cx, ax
mov word [edx + edi*2], cx
inc edi
mov eax, dword [esi + 0x68]
shr eax, 1
cmp edi, eax
jb 0x100677d0
lea ecx, [esi + 8]
call fcn.100626a0
test eax, eax
je 0x10067a03
lea ecx, [esi + 0x14]
call fcn.100626a0
test eax, eax
je 0x10067a03
lea ecx, [esi + 0x20]
call fcn.100626a0
test eax, eax
je 0x10067a03
lea ecx, [esi + 0x2c]
call fcn.100626a0
test eax, eax
je 0x10067a03
lea ecx, [esi + 0x38]
call fcn.100626a0
test eax, eax
je 0x10067a03
push dword [esi + 0x68]
inc dword [esi + 0x21cc]
push dword [esi + 0x70]
push dword [esi + 0x21d0]
call fcn.1005fd80
add esp, 0xc
test eax, eax
jne 0x100673e4
lea ecx, [ebp - 0x28]
call fcn.100626c0
mov ecx, dword [esi + 0x21cc]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
shr ecx, 8
or edx, eax
mov dword [ebp - 4], 0
movzx eax, byte [esi + 0x21cf]
and ecx, 0xff00
shl edx, 8
or edx, ecx
lea ecx, [ebp - 0x28]
push 0x10000000
or edx, eax
lea eax, [ebp + 8]
push 4
push eax
mov dword [ebp + 8], edx
call fcn.100626e0
test eax, eax
je 0x100679ef
call fcn.1005f4b0
mov edi, eax
test edi, edi
je 0x100679ef
mov ecx, dword [esi + 0x21d0]
push edi
push dword [ecx + 0xc]
call fcn.1005fad0
add esp, 8
test eax, eax
jne 0x100679e6
mov eax, dword [edi]
test eax, eax
je 0x100679e6
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100679e6
push 0x30000000
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100626e0
push edi
test eax, eax
je 0x100679e7
call fcn.1005f4c0
add esp, 4
call fcn.1005f4b0
mov edi, eax
test edi, edi
je 0x100679ef
mov ecx, dword [esi + 0x21d0]
push edi
push dword [ecx + 0x10]
call fcn.1005fad0
add esp, 8
test eax, eax
jne 0x100679e6
mov eax, dword [edi]
test eax, eax
je 0x100679e6
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100679e6
push 0x40000000
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100626e0
push edi
test eax, eax
je 0x100679e7
call fcn.1005f4c0
mov eax, dword [esi + 0x21d0]
add esp, 4
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100679ef
mov ecx, dword [eax]
test ecx, ecx
je 0x100679ef
mov eax, dword [eax + 4]
test eax, eax
je 0x100679ef
push 0x50000000
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100626e0
test eax, eax
je 0x100679ef
cmp dword [ebp - 0x20], 0
je 0x100679ef
cmp dword [ebp - 0x28], 0
je 0x100679ef
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.10062ad0
inc dword [esi + 0x21cc]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10062250
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push edi
call fcn.1005f4c0
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10062250
jmp 0x100673e4
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14