Function at 0x46a490
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5c5c30]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x230], ecx
push 0x88
push 0x54f88c
mov eax, dword [ebp - 0x230]
push eax
call fcn.0045d090
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
call fcn.00467aa0
test eax, eax
jne 0x46a4e2
push 0x89
push 0x54f8c4
call fcn.0045b590
test eax, eax
je 0x46a4e2
int3
cmp dword [ebp + 0x10], 0
je 0x46a50d
push 1
push 0x18
mov eax, dword [ebp + 0x10]
push eax
call fcn.00467ae0
test eax, eax
jne 0x46a50d
push 0x8c
push 0x54f8fc
call fcn.0045b590
test eax, eax
je 0x46a50d
int3
mov edx, dword [ebp + 0xc]
and edx, 0x4000
je 0x46a52c
push 0x8d
push 0x54f934
call fcn.0045b590
test eax, eax
je 0x46a52c
int3
mov ecx, dword [ebp - 0x230]
cmp dword [ecx + 4], 0xffffffff
je 0x46a54c
push 0x90
push 0x54f96c
call fcn.0045b590
test eax, eax
je 0x46a54c
int3
mov eax, dword [ebp + 0xc]
and eax, 0xffff7fff
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x230]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x230]
mov dword [edx + 4], 0xffffffff
mov ecx, dword [ebp - 0x230]
add ecx, 0xc
call fcn.0040c700
cmp dword [ebp + 8], 0
je 0x46a5ba
push 0
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.0046bdd0
test eax, eax
jl 0x46a5ba
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.0046b500
test eax, eax
jne 0x46a5b8
xor eax, eax
jmp 0x46a803
jmp 0x46a5e0
cmp dword [ebp + 0x10], 0
je 0x46a5d9
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc], 3
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp + 0x10]
add ecx, 0x14
call fcn.0040adb0
xor eax, eax
jmp 0x46a803
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x230]
add ecx, 0xc
call fcn.0040adb0
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0xc]
and ecx, 3
mov dword [ebp - 0x234], ecx
je 0x46a61e
cmp dword [ebp - 0x234], 1
je 0x46a627
cmp dword [ebp - 0x234], 2
je 0x46a630
jmp 0x46a639
mov dword [ebp - 8], SysStringLen
jmp 0x46a651
mov dword [ebp - 8], 0x40000000
jmp 0x46a651
mov dword [ebp - 8], 0xc0000000
jmp 0x46a651
xor edx, edx
jne 0x46a651
push 0xbd
push 0x54f9a4
call fcn.0045b590
test eax, eax
je 0x46a651
int3
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
and ecx, 0x70
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x238], 0x40
ja case.0x46a67a.1
mov edx, dword [ebp - 0x238]
movzx eax, byte [edx + 0x46a828]
jmp dword [eax*4 + 0x46a814]
xor ecx, ecx
jne case.0x46a67a.0
push 0xc5
push 0x54f9dc
call fcn.0045b590
test eax, eax
je case.0x46a67a.0
int3
mov dword [ebp - 4], 0
jmp 0x46a6bb
mov dword [ebp - 4], 1
jmp 0x46a6bb
mov dword [ebp - 4], 2
jmp 0x46a6bb
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
and eax, 0x80
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0x1000
je 0x46a703
mov edx, dword [ebp + 0xc]
and edx, 0x2000
je 0x46a6fa
mov dword [ebp - 0x1c], 4
jmp 0x46a701
mov dword [ebp - 0x1c], 2
jmp 0x46a70a
mov dword [ebp - 0x1c], 3
mov eax, dword [ebp + 0xc]
and eax, 0xc0000
cmp eax, 0xc0000
jne 0x46a72d
push 0xed
push 0x54fa14
call fcn.0045b590
test eax, eax
je 0x46a72d
int3
mov dword [ebp - 0x22c], 0x80
mov edx, dword [ebp + 0xc]
and edx, 0x10000
je 0x46a753
mov eax, dword [ebp - 0x22c]
or eax, 0x20000000
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0x20000
je 0x46a770
mov edx, dword [ebp - 0x22c]
or edx, 0x80000000
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp + 0xc]
and eax, 0x40000
je 0x46a78c
mov ecx, dword [ebp - 0x22c]
or ecx, 0x10000000
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp + 0xc]
and edx, 0x80000
je 0x46a7a8
mov eax, dword [ebp - 0x22c]
or eax, 0x8000000
mov dword [ebp - 0x22c], eax
push 0
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x46a7e5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00469f50
xor eax, eax
jmp 0x46a803
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x230]
mov dword [edx + 8], 1
mov eax, 1
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004d1610
mov esp, ebp
pop ebp
ret 0xc