Function at 0x49768c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x40
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
add eax, 8
mov edx, eax
mov eax, dword [ebp - 0x34]
shl eax, 2
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
cmp eax, edx
jbe 0x4976d1
push dword [ebp + 8]
call fcn.0049a1da
mov eax, dword [ebp - 0x20]
and eax, 0x40000000
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
and eax, 0x20000000
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
and eax, 0x10000000
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
and eax, 0xc000000
sar eax, 0x1a
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call fcn.0044bd2c
mov dword [ebp - 0x38], eax
push dword [ebp + 0x14]
call fcn.0042bdce
mov dword [ebp - 0x10], eax
mov eax, 0x20
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x38]
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, 0xffffffff
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, 0
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
add eax, 0x10
push eax
push dword [ebp - 0x10]
call fcn.0042bf0d
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
add eax, 0x14
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
xor al, 1
cmp eax, 0
je 0x49781b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
cmp eax, 0
je 0x4977fd
push dword [ebp - 0x34]
call fcn.0043e590
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x10], edx
jmp 0x49781b
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x34]
shl eax, 4
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp + 8], eax
mov eax, 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x34]
cmp eax, 0
jle 0x4978f5
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 0x10]
xchg edx, eax
shl eax, 2
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x53f2e4]
cmp eax, 0
je 0x497889
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 8]
mov edx, eax
mov eax, dword [ebp + 0x10]
xchg edx, eax
shl eax, 2
add eax, edx
push eax
pop edx
xchg edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
xchg edx, eax
add eax, edx
push eax
call fcn.0044b1af
jmp 0x49788e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push eax
xor eax, eax
inc eax
push eax
push dword [ebp - 0x44]
push dword [ebp - 0xc]
call fcn.0044b3f5
mov eax, dword [ebp - 0x2c]
xor al, 1
cmp eax, 0
je 0x4978bc
mov eax, dword [ebp - 0x28]
cmp eax, 0
je 0x4978bc
jmp 0x4978c0
xor eax, eax
jmp 0x4978c3
xor eax, eax
inc eax
cmp eax, 0
je 0x4978de
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.00496c00
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x48]
sub eax, 1
jg 0x497840
mov eax, dword [ebp - 0x28]
cmp eax, 0
je 0x497924
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x34]
shl eax, 4
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x10], edx
push 1
call fcn.004876d7
mov eax, dword [ebp - 0x18]
leave
ret 0x10