Function at 0x401ce0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 0x3c]
add ebp, eax
cmp word [ebp + 4], 0x14c
jne 0x402128
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov eax, dword [ebp + 0x50]
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.00402c60
test eax, eax
js 0x402128
mov eax, dword [ebp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.00402df0
cmp word [ebp + 6], 0
mov ebx, dword [esp + 0x50]
je 0x401d92
lea esi, [ebp + 0x104]
xor edi, edi
lea esi, [esi]
nop
mov eax, dword [esi + 4]
add edi, 1
add esi, 0x28
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
add eax, dword [esi - 0x20]
mov dword [esp + 4], eax
mov eax, dword [esi - 0x28]
add eax, ebx
mov dword [esp], eax
call fcn.00402df0
cmp di, word [ebp + 6]
jb 0x401d60
mov ebx, dword [esp + 0x50]
mov eax, ebx
sub eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xa0]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xa4]
test eax, eax
je 0x401e69
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x3c], 0
xor ecx, ecx
mov dword [esp + 0x4c], ebp
mov edx, esi
mov dword [esp + 0x38], esi
shl edx, 0x10
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], edx
mov edx, esi
shr edx, 0x10
mov dword [esp + 0x34], edx
nop
mov eax, dword [esp + 0x44]
lea esi, [eax + ecx]
add esi, ebx
mov edi, dword [esi + 4]
lea ebp, [esi + 8]
test edi, edi
je 0x401e65
mov dword [esp + 0x28], ebp
mov edx, ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edi
lea esi, [esi]
movzx eax, word [edx]
mov ecx, eax
shr cx, 0xc
cmp ax, 0xafff
ja 0x401e40
movzx ecx, cx
jmp dword [ecx*4 + 0x43c01c]
mov edi, dword [esp + 0x28]
add edx, 2
mov eax, edx
sub eax, edi
mov edi, dword [esp + 0x24]
cmp eax, edi
jb 0x401e08
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
add ecx, edi
cmp ecx, eax
jb 0x401de0
mov ebp, dword [esp + 0x4c]
mov edi, dword [ebp + 0x80]
test edi, edi
je 0x401f8d
lea eax, [ebx + edi]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x401f8d
lea esi, [esp + 0x54]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
lea esi, [esi]
add eax, ebx
mov edi, dword [esp + 0x28]
mov dword [esp], eax
mov ecx, edi
call fcn.0040afb0
sub esp, 4
mov dword [esp], edi
call fcn.0040a4b0
mov ecx, edi
mov esi, eax
call fcn.0040b080
test esi, esi
je 0x402128
mov eax, dword [esp + 0x24]
mov ebp, dword [eax]
mov edi, dword [eax + 0x10]
add ebp, ebx
add edi, ebx
mov eax, dword [ebp]
test eax, eax
jne 0x401f04
jmp 0x402100
lea eax, [ebx + eax + 2]
mov dword [esp + 4], eax
add ebp, 4
add edi, 4
mov dword [esp], esi
call edx
mov dword [edi - 4], eax
mov eax, dword [ebp]
sub esp, 8
test eax, eax
je 0x402100
mov edx, dword [0x4400bc]
test eax, eax
jns 0x401ee0
movzx eax, ax
jmp 0x401ee4
lea eax, [esp + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0xffffffff
call fcn.00402c20
test eax, eax
js 0x402128
movzx eax, word [ebp + 6]
lea esi, [ebp + 0x104]
xor edi, edi
test ax, ax
jne 0x401fef
jmp 0x40207f
add edi, 1
add esi, 0x28
cmp di, ax
jae 0x40207f
mov edx, dword [esi + 4]
test edx, edx
je 0x401fe0
mov eax, dword [esi + 0x18]
mov ecx, eax
and ecx, 0x60000000
cmp ecx, 0x20000000
je 0x4020d0
cmp ecx, 0x40000000
je 0x4020e0
cmp ecx, 0x60000000
je 0x4020ee
test ecx, ecx
jne 0x40212c
sar eax, 0x1f
and eax, 0x3f
add eax, 1
lea esi, [esi]
lea esi, [esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], ecx
mov eax, dword [esi]
mov dword [esp], 0xffffffff
add eax, ebx
mov dword [esp + 4], eax
call fcn.00402c20
test eax, eax
js 0x402128
movzx eax, word [ebp + 6]
add edi, 1
add esi, 0x28
cmp di, ax
jb 0x401fef
mov eax, dword [ebp + 0xc0]
mov esi, dword [esp + 0x50]
test eax, eax
je 0x4020c6
mov ebx, dword [esi + eax + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4020c6
add ebx, 4
lea esi, [esi]
mov dword [esp + 8], 0
add ebx, 4
mov dword [esp + 4], 1
mov dword [esp], esi
call eax
mov eax, dword [ebx - 4]
sub esp, 0xc
test eax, eax
jne 0x4020a0
mov esi, dword [esp + 0x50]
add esp, 0x6c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
sar eax, 0x1f
and eax, 0x30
add eax, 0x10
jmp 0x402040
sar eax, 0x1f
and eax, 2
add eax, 2
jmp 0x402040
sar eax, 0x1f
and eax, 0x20
add eax, 0x20
jmp 0x402040
add dword [esp + 0x24], 0x14
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x401e98
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
jmp 0x401f95
xor esi, esi
jmp 0x4020c6
mov eax, 0x40
jmp 0x402040