Function at 0x519dc0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
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 0x519e31
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
movzx edx, word [ecx + 0xb58]
cmp edx, 0x2655
je 0x519e2f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb6c], 0xd30f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb6c], 0xd30f
xor eax, eax
jmp 0x51a56e
jmp 0x519e53
push 0x40
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
add edx, 0xb30
push edx
call fcn.0049d100
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.0053d720
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x519f55
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x519e85
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
jne 0x519e8c
xor eax, eax
jmp 0x51a56e
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 1
jmp 0x519ea5
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 4
jge 0x519ebe
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 0x519e9c
mov dword [ebp - 0x28], 0
jmp 0x519ed0
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 4
jge 0x519ee9
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 0x519ec7
mov eax, dword [ebp - 0xc]
and eax, 0x7f
mov ecx, dword [ebp - 0x20]
and ecx, 0x7f
cmp eax, ecx
je 0x519f50
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x519f17
xor eax, eax
je 0x519f17
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x2c], edx
jmp 0x519f1e
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.004f3810
add esp, 0x1c
or eax, 0xffffffff
jmp 0x51a56e
jmp 0x51a002
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 0x519fae
lea ecx, [ebp - 0x24]
push ecx
call fcn.0053d8a0
add esp, 4
cmp dword [ebp - 8], eax
je 0x51a002
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x519fcc
xor eax, eax
je 0x519fcc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x30], edx
jmp 0x519fd3
mov dword [ebp - 0x30], 0xffffffd4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x80], ecx
push 0
push 0xff
push 0
push 0
push 0x31
push 0xffffffffffffffd4
mov edx, dword [ebp + 8]
push edx
call fcn.004f3810
add esp, 0x1c
or eax, 0xffffffff
jmp 0x51a56e
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x80000000
jbe 0x51a036
mov eax, dword [ebp - 0x10]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
cmp edx, 4
jge 0x51a036
mov dword [ebp - 0x34], 1
jmp 0x51a03d
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0x40000000
je 0x51a054
cmp dword [ebp - 0x14], 0
je 0x51a06d
cmp dword [ebp - 0x14], 0
je 0x51a515
mov edx, dword [ebp - 0x1c]
and edx, 0x400000
je 0x51a515
cmp dword [ebp - 4], 0
je 0x51a0aa
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb6c], 0xd30f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb6c], 0xd30f
xor eax, eax
jmp 0x51a56e
mov eax, dword [ebp - 0x20]
and eax, 0x100
je 0x51a0c4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov byte [edx + 0x1d6c], 1
mov eax, dword [ebp - 0x24]
and eax, 0x100000
je 0x51a0eb
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb58], 0x2655
jmp 0x51a17b
mov ecx, dword [ebp - 0x18]
and ecx, 0xffff
push ecx
push 0x5c6374
push str.a001
call fcn.0049cf34
add esp, 0xc
push 0
push str.a001
call fcn.005075e0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00506bb0
add esp, 0xc
test eax, eax
je 0x51a17b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x51a145
xor ecx, ecx
je 0x51a145
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x38], eax
jmp 0x51a14c
mov dword [ebp - 0x38], 0xffffffce
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0x33
push 0xffffffffffffffce
mov eax, dword [ebp + 8]
push eax
call fcn.004f3810
add esp, 0x1c
or eax, 0xffffffff
jmp 0x51a56e
mov ecx, dword [ebp - 0x24]
and ecx, 2
je 0x51a19b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb32], 0x20
mov edx, dword [ebp - 0x24]
and edx, 4
je 0x51a1bb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb34], 0x3e1
mov eax, dword [ebp - 0x24]
and eax, 8
je 0x51a1db
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb36], 0xabcd
mov ecx, dword [ebp - 0x24]
and ecx, 0x10
je 0x51a1fb
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb38], 0x54
mov edx, dword [ebp - 0x24]
and edx, 0x20
je 0x51a21b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb3a], 0x5e
mov eax, dword [ebp - 0x24]
and eax, 0x40
je 0x51a23b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb3c], 0x7f
mov ecx, dword [ebp - 0x24]
and ecx, 0x80
je 0x51a25e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb3e], 0x4e9b
mov edx, dword [ebp - 0x24]
and edx, 0x4000
je 0x51a281
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb4c], 0xdead
mov eax, dword [ebp - 0x24]
and eax, 0x8000
je 0x51a2a3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb4e], 0xfeef
mov ecx, dword [ebp - 0x24]
and ecx, 0x100
je 0x51a2c6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb40], 0xc7
mov edx, dword [ebp - 0x24]
and edx, 0x200
je 0x51a2e9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb42], 0x1538
mov eax, dword [ebp - 0x24]
and eax, 0x800
je 0x51a30b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb46], 0xc
mov ecx, dword [ebp - 0x24]
and ecx, 0x1000
je 0x51a32e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb48], 0x3ce
mov edx, dword [ebp - 0x24]
and edx, 0x2000
je 0x51a351
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb4a], 0x22b
mov eax, dword [ebp - 0x24]
and eax, 0x10000
je 0x51a373
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb50], 0x46
mov ecx, dword [ebp - 0x24]
and ecx, 0x20000
je 0x51a396
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb52], 0xdd
mov edx, dword [ebp - 0x24]
and edx, 0x40000
je 0x51a3b9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb54], 0x70
mov eax, dword [ebp - 0x24]
and eax, 0x80000
je 0x51a3db
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb56], 0x15a6
mov ecx, dword [ebp - 0x24]
and ecx, 0x200000
je 0x51a3fe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb5a], 0x511
mov edx, dword [ebp - 0x24]
and edx, 0x400000
je 0x51a421
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb5c], 0x1204
mov eax, dword [ebp - 0x24]
and eax, 0x800000
je 0x51a443
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb5e], 0x2a34
mov ecx, dword [ebp - 0x24]
and ecx, 0x1000000
je 0x51a466
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb60], 0x12ef
mov edx, dword [ebp - 0x24]
and edx, 0x2000000
je 0x51a489
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb62], 0x9320
mov eax, dword [ebp - 0x24]
and eax, 0x4000000
je 0x51a4ab
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb64], 0x7032
mov ecx, dword [ebp - 0x24]
and ecx, 0x8000000
je 0x51a4ce
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a0]
mov ecx, dword [eax + 0x1cf8]
mov word [ecx + 0xb66], 0x836a
mov edx, dword [ebp - 0x24]
and edx, 0x10000000
je 0x51a4f1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ecx + 0x1cf8]
mov word [edx + 0xb68], 0x336
mov eax, dword [ebp - 0x24]
and eax, 0x20000000
je 0x51a513
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1a0]
mov eax, dword [edx + 0x1cf8]
mov word [eax + 0xb6a], 0x9969
jmp 0x51a56c
cmp dword [ebp - 4], 0
jne 0x51a56c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x51a539
xor edx, edx
je 0x51a539
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x3c], ecx
jmp 0x51a540
mov dword [ebp - 0x3c], 0xffffffd0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x34
push 0xffffffffffffffd0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f3810
add esp, 0x1c
or eax, 0xffffffff
jmp 0x51a56e
xor eax, eax
mov esp, ebp
pop ebp
ret