Function at 0x401035
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xfffffffffffffff0
mov eax, dword [esi + 4]
mov byte [esi + 0x40], 0
push eax
call dword [0x403144]
mov ecx, dword [esi + 4]
and eax, 0xff3fffff
push eax
push 0xfffffffffffffff0
push ecx
call dword [0x403110]
mov eax, dword [0x4040f0]
push 0x2080
push 0
push 0
push 0
push 0xcc
push eax
call dword [0x40310c]
xor edx, edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], edx
push ecx
mov dword [esp + 0x50], edx
push 0x18
mov dword [esp + 0x58], edx
push eax
mov dword [esp + 0x60], edx
mov dword [esi + 0x3c], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x64], edx
call dword [0x403020]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 4]
mov ebp, dword [0x403108]
push 6
push edx
push eax
push 0
push 0
push 0
push ecx
call ebp
mov edx, dword [esi + 4]
mov ebx, dword [0x403104]
push 8
push edx
call ebx
mov edi, eax
mov eax, dword [esi + 4]
push 1
push eax
call ebx
test edi, edi
mov ebx, eax
je 0x4010f4
push 5
push 0
push 0
push 0
push 0xff
push 0
push edi
call ebp
test ebx, ebx
je 0x40110a
push 5
push 0
push 0
push 0x39
push 0xcf
push 0
push ebx
call ebp
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call dword [0x403144]
mov ebp, dword [0x403100]
mov ebx, eax
and ebx, 0x40000000
je 0x40112e
mov edx, dword [esi + 4]
push edx
call ebp
jmp 0x40113a
mov eax, dword [esi + 4]
push 4
push eax
call dword [0x4030fc]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
mov edi, eax
call dword [0x4030f8]
test ebx, ebx
jne 0x4011b1
test edi, edi
je 0x40116c
push 0xfffffffffffffff0
push edi
call dword [0x403144]
test eax, 0x10000000
je 0x40116a
test eax, 0x20000000
je 0x40116c
xor edi, edi
lea eax, [esp + 0x24]
push 0
push eax
push 0
push 0x30
call dword [0x4030f4]
test edi, edi
jne 0x4011a3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jmp 0x4011de
lea edx, [esp + 0x14]
push edx
push edi
call dword [0x4030f8]
jmp 0x4011de
mov eax, dword [esi + 4]
push eax
call ebp
mov ebx, dword [0x4030e0]
lea ecx, [esp + 0x24]
mov ebp, eax
push ecx
push ebp
call ebx
lea edx, [esp + 0x14]
push edx
push edi
call ebx
lea eax, [esp + 0x14]
push 2
push eax
push ebp
push edi
call dword [0x4030e4]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
sub ebx, edx
mov edx, dword [esp + 0x14]
sub ebp, edi
lea eax, [ecx + edx]
cdq
sub eax, edx
mov ecx, eax
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ebx
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [esp + 0x24]
cmp ecx, eax
jl 0x40123c
mov eax, dword [esp + 0x2c]
lea edx, [ecx + ebp]
cmp edx, eax
jle 0x40123e
sub eax, ebp
mov ecx, eax
mov eax, dword [esp + 0x28]
cmp edi, eax
jl 0x401253
mov eax, dword [esp + 0x30]
lea edx, [edi + ebx]
cmp edx, eax
jle 0x401255
sub eax, ebx
mov edi, eax
mov eax, dword [esi + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push ecx
push 0
push eax
call dword [0x403108]
call dword [0x403064]
mov ecx, dword [0x4040e0]
mov edi, eax
add ecx, 0x1c
push ecx
call dword [0x403068]
mov dword [esp + 0x14], edi
mov edi, dword [0x404170]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.00401730
cmp eax, 0xffffffff
jne 0x4012a0
xor ebp, ebp
jmp 0x4012a6
mov ecx, dword [edi + 4]
mov ebp, dword [ecx + eax*4]
mov edx, dword [0x4040e0]
add edx, 0x1c
push edx
call dword [0x40306c]
test esi, esi
je 0x4012c3
lea eax, [esi + 0x1c]
mov dword [esp + 0x10], eax
jmp 0x4012cb
mov dword [esp + 0x10], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 4]
cmp ecx, eax
jne 0x401301
test eax, eax
mov ebx, 1
je 0x4012e4
lea ebx, [ecx + ecx]
mov edx, dword [edi]
lea ecx, [ebx*4]
push ecx
push edx
call dword [0x4030d0]
add esp, 8
test eax, eax
je 0x401318
mov dword [edi + 8], ebx
mov dword [edi], eax
mov ebx, dword [edi + 4]
lea ecx, [esp + 0x10]
inc ebx
push ecx
mov eax, ebx
mov ecx, edi
dec eax
mov dword [edi + 4], ebx
push eax
call fcn.00401710
test esi, esi
je 0x401325
lea edx, [esi + 0x20]
mov dword [esp + 0x10], edx
jmp 0x40132d
mov dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
lea edi, [ebp + 0x10]
cmp ecx, eax
jne 0x401363
test eax, eax
mov ebx, 1
je 0x401346
lea ebx, [ecx + ecx]
mov ecx, dword [edi]
lea eax, [ebx*4]
push eax
push ecx
call dword [0x4030d0]
add esp, 8
test eax, eax
je 0x40137a
mov dword [edi + 8], ebx
mov dword [edi], eax
mov ebp, dword [edi + 4]
lea edx, [esp + 0x10]
inc ebp
push edx
mov eax, ebp
mov ecx, edi
dec eax
mov dword [edi + 4], ebp
push eax
call fcn.00401710
mov eax, dword [esi + 4]
test eax, eax
je 0x401399
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x24]
mov word [esp + 0x1c], 4
call fcn.004016a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret 0x10