Function at 0x4ca860
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], 0
sete cl
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4ca8d1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
movzx edx, word [ecx + 0xb80]
cmp edx, 0x2655
je 0x4ca8cf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb94], 0xd30f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb94], 0xd30f
xor eax, eax
jmp 0x4cb149
jmp 0x4ca8f3
push 0x40
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
add edx, 0xb58
push edx
call fcn.004054d0
add esp, 0xc
push 4
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0050f690
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4ca9fb
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x4ca925
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
jne 0x4ca92c
xor eax, eax
jmp 0x4cb149
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 1
jmp 0x4ca945
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 4
jge 0x4ca95e
mov ecx, dword [ebp - 0x28]
shl ecx, 3
mov eax, dword [ebp - 0x20]
shr eax, cl
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4ca93c
mov dword [ebp - 0x28], 0
jmp 0x4ca970
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 4
jge 0x4ca989
mov ecx, dword [ebp - 0x28]
shl ecx, 3
mov edx, dword [ebp - 0x1c]
shr edx, cl
xor edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
jmp 0x4ca967
mov eax, dword [ebp - 0xc]
and eax, 0x7f
mov ecx, dword [ebp - 0x20]
and ecx, 0x7f
cmp eax, ecx
je 0x4ca9f6
cmp dword [ebp + 8], 0
je 0x4ca9ee
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x4ca9bd
xor eax, eax
je 0x4ca9bd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x2c], edx
jmp 0x4ca9c4
mov dword [ebp - 0x2c], 0xffffffd4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x21d
push 0xffffffffffffffd4
mov edx, dword [ebp + 8]
push edx
call fcn.00495fc0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x4cb149
jmp 0x4caabd
mov eax, dword [ebp - 0x18]
xor eax, 0xa3ef0000
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 0xffff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
and eax, 0xffff
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x20]
and edx, 0x7f
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
and eax, 0xffffff80
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0
jne 0x4caa54
lea ecx, [ebp - 0x24]
push ecx
call fcn.0050f810
add esp, 4
cmp dword [ebp - 8], eax
je 0x4caabd
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0xffffff3f
je 0x4caab5
cmp dword [ebp + 8], 0
je 0x4caab5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x4caa87
xor ecx, ecx
je 0x4caa87
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x30], eax
jmp 0x4caa8e
mov dword [ebp - 0x30], 0xffffffd4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0x31
push 0xffffffffffffffd4
mov eax, dword [ebp + 8]
push eax
call fcn.00495fc0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x4cb149
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x80000000
jbe 0x4caaf2
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
movzx edx, cx
and edx, 0xff
movzx eax, dl
cmp eax, 4
jge 0x4caaf2
mov dword [ebp - 0x34], 1
jmp 0x4caaf9
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0x40000000
je 0x4cab10
cmp dword [ebp - 0x14], 0
je 0x4cab28
cmp dword [ebp - 0x14], 0
je 0x4cb0ea
mov eax, dword [ebp - 0x1c]
and eax, 0x400000
je 0x4cb0ea
cmp dword [ebp - 4], 0
je 0x4cab65
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb94], 0xd30f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb94], 0xd30f
xor eax, eax
jmp 0x4cb149
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
cmp dword [edx + 0x1db0], 0
je 0x4cabf1
mov eax, dword [ebp - 0x20]
and eax, 0x100
jne 0x4cabf1
cmp dword [ebp + 8], 0
je 0x4cabd9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x4caba5
xor edx, edx
je 0x4caba5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x38], ecx
jmp 0x4cabac
mov dword [ebp - 0x38], 0xffffff3f
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x5215
push 0xffffff3f
mov ecx, dword [ebp + 8]
push ecx
call fcn.00495fc0
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov byte [eax + 0x1db8], 0
or eax, 0xffffffff
jmp 0x4cb149
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
cmp dword [edx + 0x1db4], 0x64
jne 0x4cac2f
mov eax, dword [ebp - 0x20]
and eax, 0x100
jne 0x4cac1f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov byte [edx + 0x1db8], 0
jmp 0x4cac2f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov byte [ecx + 0x1db8], 1
mov edx, dword [ebp - 0x20]
and edx, 0x200
je 0x4cac4d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov dword [ecx + 0x1fcc], 1
mov edx, dword [ebp - 0x24]
and edx, 0x100000
je 0x4cac75
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb80], 0x2655
jmp 0x4cad0a
mov eax, dword [ebp - 0x18]
and eax, 0xffff
push eax
push 0x572844
push str.a001
call fcn.004633a8
add esp, 0xc
push 0
push str.a001
call fcn.004a9100
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a85b0
add esp, 0xc
test eax, eax
je 0x4cad0a
cmp dword [ebp + 8], 0
je 0x4cad02
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x4cacd4
xor eax, eax
je 0x4cacd4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x3c], edx
jmp 0x4cacdb
mov dword [ebp - 0x3c], 0xffffffce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x33
push 0xffffffffffffffce
mov edx, dword [ebp + 8]
push edx
call fcn.00495fc0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x4cb149
mov eax, dword [ebp - 0x24]
and eax, 2
je 0x4cad2a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb5a], 0x20
mov ecx, dword [ebp - 0x24]
and ecx, 4
je 0x4cad4a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb5c], 0x3e1
mov edx, dword [ebp - 0x24]
and edx, 8
je 0x4cad6a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb5e], 0xabcd
mov eax, dword [ebp - 0x24]
and eax, 0x10
je 0x4cad8a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb60], 0x54
mov ecx, dword [ebp - 0x24]
and ecx, 0x20
je 0x4cadaa
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb62], 0x5e
mov edx, dword [ebp - 0x24]
and edx, 0x800
je 0x4cadcd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb6e], 0xdcba
mov eax, dword [ebp - 0x24]
and eax, 0x40
je 0x4caded
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb64], 0x7f
mov ecx, dword [ebp - 0x24]
and ecx, 0x80
je 0x4cae10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb66], 0x4e9b
mov edx, dword [ebp - 0x24]
and edx, 0x4000
je 0x4cae33
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb74], 0xdead
mov eax, dword [ebp - 0x24]
and eax, 0x8000
je 0x4cae55
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb76], 0xfeef
mov ecx, dword [ebp - 0x24]
and ecx, 0x100
je 0x4cae78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb68], 0xc7
mov edx, dword [ebp - 0x24]
and edx, 0x200
je 0x4cae9b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb6a], 0x1538
mov eax, dword [ebp - 0x24]
and eax, 0x800
je 0x4caebd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb6e], 0xc
mov ecx, dword [ebp - 0x24]
and ecx, 0x800
je 0x4caee0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb6e], 0xdcba
mov edx, dword [ebp - 0x24]
and edx, 0x1000
je 0x4caf03
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb70], 0x3ce
mov eax, dword [ebp - 0x24]
and eax, 0x2000
je 0x4caf25
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb72], 0x22b
mov ecx, dword [ebp - 0x24]
and ecx, 0x10000
je 0x4caf48
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb78], 0x46
mov edx, dword [ebp - 0x24]
and edx, 0x20000
je 0x4caf6b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb7a], 0xdd
mov eax, dword [ebp - 0x24]
and eax, 0x40000
je 0x4caf8d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb7c], 0x70
mov ecx, dword [ebp - 0x24]
and ecx, 0x80000
je 0x4cafb0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb7e], 0x15a6
mov edx, dword [ebp - 0x24]
and edx, 0x200000
je 0x4cafd3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb82], 0x511
mov eax, dword [ebp - 0x24]
and eax, 0x400000
je 0x4caff5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb84], 0x1204
mov ecx, dword [ebp - 0x24]
and ecx, 0x800000
je 0x4cb018
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb86], 0x2a34
mov edx, dword [ebp - 0x24]
and edx, 0x1000000
je 0x4cb03b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb88], 0x12ef
mov eax, dword [ebp - 0x24]
and eax, 0x2000000
je 0x4cb05d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb8a], 0x9320
mov ecx, dword [ebp - 0x24]
and ecx, 0x4000000
je 0x4cb080
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb8c], 0x7032
mov edx, dword [ebp - 0x24]
and edx, 0x8000000
je 0x4cb0a3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
mov edx, dword [ecx + 0x1d20]
mov word [edx + 0xb8e], 0x836a
mov eax, dword [ebp - 0x24]
and eax, 0x10000000
je 0x4cb0c5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [edx + 0x1d20]
mov word [eax + 0xb90], 0x336
mov ecx, dword [ebp - 0x24]
and ecx, 0x20000000
je 0x4cb0e8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a8]
mov ecx, dword [eax + 0x1d20]
mov word [ecx + 0xb92], 0x9969
jmp 0x4cb147
cmp dword [ebp - 4], 0
jne 0x4cb147
cmp dword [ebp + 8], 0
je 0x4cb142
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x4cb114
xor eax, eax
je 0x4cb114
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x40], edx
jmp 0x4cb11b
mov dword [ebp - 0x40], 0xffffffd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x34
push 0xffffffffffffffd0
mov edx, dword [ebp + 8]
push edx
call fcn.00495fc0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x4cb149
xor eax, eax
mov esp, ebp
pop ebp
ret