Function at 0x49b37b
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x44
mov eax, dword [ebp + 8]
add eax, 4
mov edx, dword [ebp + 0xc]
cmp eax, edx
jb 0x49b39c
push dword [ebp + 8]
call fcn.0049da59
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, 0x20
je 0x49b3c7
mov eax, dword [ebp - 0x34]
cmp eax, 0x18
je 0x49b3c7
xor eax, eax
jmp 0x49b3ca
xor eax, eax
inc eax
mov eax, dword [ebp - 0x34]
cmp eax, 0x20
jne 0x49b420
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp + 8], eax
mov eax, 4
shl eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x1000000
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp eax, 0
je 0x49b41b
mov eax, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp - 0x3c]
shl eax, 2
add eax, edx
jmp 0x49b41e
mov eax, dword [ebp + 8]
jmp 0x49b428
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp eax, edx
jb 0x49b43d
push dword [ebp + 8]
call fcn.0049da59
mov eax, dword [ebp + 8]
xchg edx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x40000000
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x20000000
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x10000000
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xc000000
sar eax, 0x1a
mov dword [ebp - 0x38], eax
push 2
call fcn.0042def7
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
cmp eax, 0
je 0x49b4c1
mov eax, 0
jmp 0x49b4eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x49b4dc
mov eax, 1
jmp 0x49b4e5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.0042df0e
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x24]
call fcn.0042f77a
mov dword [ebp - 0xc], eax
mov eax, 2
xchg edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
push 2
push 2
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
call fcn.00435db4
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x2c]
xchg edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, 0xe
xchg edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
and eax, 0xffffe7ff
push eax
mov eax, dword [ebp - 0x38]
shl eax, 0xb
pop edx
xchg edx, eax
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x48]
cmp eax, 0
je 0x49b573
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 0x1000000
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x44]
cmp eax, 0
je 0x49b58e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
or eax, 0x400000
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x34]
cmp eax, 0x20
jne 0x49b67f
push dword [ebp - 0x24]
call fcn.0042f77a
mov dword [ebp - 0x10], eax
mov eax, 2
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x4c]
cmp eax, 0
je 0x49b5ec
push 2
call fcn.0042def7
jmp 0x49b5f1
mov eax, 0
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x4c]
cmp eax, 0
je 0x49b66f
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, 0x20
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
push eax
call fcn.004639a5
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, 0x10
push eax
call fcn.004639a5
mov eax, 0x20
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x49b77d
push 2
call fcn.00441ef6
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x49b6a4
mov eax, 1
jmp 0x49b6ad
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x18]
call fcn.00441e15
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, 0
cmp eax, edx
jne 0x49b6d4
mov eax, 1
jmp 0x49b6dd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
push dword [ebp - 0x18]
call fcn.00441e15
mov dword [ebp - 0x20], eax
push dword [ebp - 0x24]
call fcn.0042f77a
mov dword [ebp - 0x14], eax
mov eax, 2
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], edx
push 5
call fcn.0042df0e
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
add eax, 0x50
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
push eax
push dword [ebp - 0x20]
call fcn.0042f873
push 1
call fcn.0048af56
mov eax, 0x18
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
leave
ret 0x10