Function at 0x4224ba
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 0x422508
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x440]
cmp eax, 0x2655
je 0x422506
mov ecx, dword [ebp + 8]
mov word [ecx + 0x454], 0xd30f
mov edx, dword [ebp + 8]
mov word [edx + 0x454], 0xd30f
xor eax, eax
jmp 0x422acf
jmp 0x42251d
push 0x40
push 0
mov eax, dword [ebp + 8]
add eax, 0x418
push eax
call fcn.004059c0
add esp, 0xc
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0043cc33
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x42261c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x42254f
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
jne 0x422556
xor eax, eax
jmp 0x422acf
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 1
jmp 0x42256f
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jge 0x42258a
mov ecx, dword [ebp - 0x28]
shl ecx, 3
mov edx, dword [ebp - 0x18]
shr edx, cl
mov eax, dword [ebp - 8]
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x422566
mov dword [ebp - 0x28], 0
jmp 0x42259c
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 4
jge 0x4225b7
mov ecx, dword [ebp - 0x28]
shl ecx, 3
mov edx, dword [ebp - 0x14]
shr edx, cl
mov eax, dword [ebp - 8]
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x422593
mov ecx, dword [ebp - 8]
and ecx, 0x7f
mov edx, dword [ebp - 0x18]
and edx, 0x7f
cmp ecx, edx
je 0x422617
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x4225e1
xor ecx, ecx
test ecx, ecx
je 0x4225e1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x4225e8
mov dword [ebp - 0x2c], 0xffffffd4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x14], edx
push 0
push 0xff
push 0
push 0
push 0x21d
push 0xffffffffffffffd4
mov eax, dword [ebp + 8]
push eax
call fcn.004105d0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x422acf
jmp 0x4226c3
mov ecx, dword [ebp - 0x10]
xor ecx, 0xa3ef0000
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
shr edx, 0x10
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
and eax, 0xffff
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x18]
and eax, 0x7f
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
and ecx, 0xffffff80
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 8], 0
jne 0x422676
lea edx, [ebp - 0x1c]
push edx
call fcn.0043cdad
add esp, 4
cmp dword [ebp - 0xc], eax
je 0x4226c3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x422690
xor ecx, ecx
test ecx, ecx
je 0x422690
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
jmp 0x422697
mov dword [ebp - 0x30], 0xffffffd4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x14], edx
push 0
push 0xff
push 0
push 0
push 0x31
push 0xffffffffffffffd4
mov eax, dword [ebp + 8]
push eax
call fcn.004105d0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x422acf
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80000000
jbe 0x4226ec
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
cmp ecx, 4
jge 0x4226ec
mov dword [ebp - 0x34], 1
jmp 0x4226f3
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
test eax, eax
je 0x42270b
cmp dword [ebp - 0x24], 0
je 0x422726
cmp dword [ebp - 0x24], 0
je 0x422a7d
mov ecx, dword [ebp - 0x14]
and ecx, 0x400000
test ecx, ecx
je 0x422a7d
cmp dword [ebp - 4], 0
je 0x42274b
mov edx, dword [ebp + 8]
mov word [edx + 0x454], 0xd30f
mov eax, dword [ebp + 8]
mov word [eax + 0x454], 0xd30f
xor eax, eax
jmp 0x422acf
mov ecx, dword [ebp - 0x1c]
and ecx, 0x100000
test ecx, ecx
je 0x422769
mov edx, dword [ebp + 8]
mov word [edx + 0x440], 0x2655
jmp 0x4227f1
mov eax, dword [ebp - 0x10]
and eax, 0xffff
push eax
push 0x490280
push str.a001
call fcn.00404911
add esp, 0xc
push 0
push str.a001
call fcn.0042e355
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042dce2
add esp, 0xc
test eax, eax
je 0x4227f1
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x4227be
xor eax, eax
test eax, eax
je 0x4227be
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x38], edx
jmp 0x4227c5
mov dword [ebp - 0x38], 0xffffffce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x14], ecx
push 0
push 0xff
push 0
push 0
push 0x33
push 0xffffffffffffffce
mov edx, dword [ebp + 8]
push edx
call fcn.004105d0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x422acf
mov eax, dword [ebp - 0x1c]
and eax, 2
test eax, eax
je 0x422807
mov ecx, dword [ebp + 8]
mov word [ecx + 0x41a], 0x20
mov edx, dword [ebp - 0x1c]
and edx, 4
test edx, edx
je 0x42281d
mov eax, dword [ebp + 8]
mov word [eax + 0x41c], 0x3e1
mov ecx, dword [ebp - 0x1c]
and ecx, 8
test ecx, ecx
je 0x422833
mov edx, dword [ebp + 8]
mov word [edx + 0x41e], 0xabcd
mov eax, dword [ebp - 0x1c]
and eax, 0x10
test eax, eax
je 0x422849
mov ecx, dword [ebp + 8]
mov word [ecx + 0x420], 0x54
mov edx, dword [ebp - 0x1c]
and edx, 0x20
test edx, edx
je 0x42285f
mov eax, dword [ebp + 8]
mov word [eax + 0x422], 0x5e
mov ecx, dword [ebp - 0x1c]
and ecx, 0x40
test ecx, ecx
je 0x422875
mov edx, dword [ebp + 8]
mov word [edx + 0x424], 0x7f
mov eax, dword [ebp - 0x1c]
and eax, 0x80
test eax, eax
je 0x42288d
mov ecx, dword [ebp + 8]
mov word [ecx + 0x426], 0x4e9b
mov edx, dword [ebp - 0x1c]
and edx, 0x4000
test edx, edx
je 0x4228a6
mov eax, dword [ebp + 8]
mov word [eax + 0x434], 0xdead
mov ecx, dword [ebp - 0x1c]
and ecx, 0x8000
test ecx, ecx
je 0x4228bf
mov edx, dword [ebp + 8]
mov word [edx + 0x436], 0xfeef
mov eax, dword [ebp - 0x1c]
and eax, 0x100
test eax, eax
je 0x4228d7
mov ecx, dword [ebp + 8]
mov word [ecx + 0x428], 0xc7
mov edx, dword [ebp - 0x1c]
and edx, 0x200
test edx, edx
je 0x4228f0
mov eax, dword [ebp + 8]
mov word [eax + 0x42a], 0x1538
mov ecx, dword [ebp - 0x1c]
and ecx, 0x800
test ecx, ecx
je 0x422909
mov edx, dword [ebp + 8]
mov word [edx + 0x42e], 0xc
mov eax, dword [ebp - 0x1c]
and eax, 0x1000
test eax, eax
je 0x422921
mov ecx, dword [ebp + 8]
mov word [ecx + 0x430], 0x3ce
mov edx, dword [ebp - 0x1c]
and edx, 0x2000
test edx, edx
je 0x42293a
mov eax, dword [ebp + 8]
mov word [eax + 0x432], 0x22b
mov ecx, dword [ebp - 0x1c]
and ecx, 0x10000
test ecx, ecx
je 0x422953
mov edx, dword [ebp + 8]
mov word [edx + 0x438], 0x46
mov eax, dword [ebp - 0x1c]
and eax, 0x20000
test eax, eax
je 0x42296b
mov ecx, dword [ebp + 8]
mov word [ecx + 0x43a], 0xdd
mov edx, dword [ebp - 0x1c]
and edx, 0x40000
test edx, edx
je 0x422984
mov eax, dword [ebp + 8]
mov word [eax + 0x43c], 0x70
mov ecx, dword [ebp - 0x1c]
and ecx, 0x80000
test ecx, ecx
je 0x42299d
mov edx, dword [ebp + 8]
mov word [edx + 0x43e], 0x15a6
mov eax, dword [ebp - 0x1c]
and eax, 0x200000
test eax, eax
je 0x4229b5
mov ecx, dword [ebp + 8]
mov word [ecx + 0x442], 0x511
mov edx, dword [ebp - 0x1c]
and edx, 0x400000
test edx, edx
je 0x4229ce
mov eax, dword [ebp + 8]
mov word [eax + 0x444], 0x1204
mov ecx, dword [ebp - 0x1c]
and ecx, 0x800000
test ecx, ecx
je 0x4229e7
mov edx, dword [ebp + 8]
mov word [edx + 0x446], 0x2a34
mov eax, dword [ebp - 0x1c]
and eax, 0x1000000
test eax, eax
je 0x4229ff
mov ecx, dword [ebp + 8]
mov word [ecx + 0x448], 0x12ef
mov edx, dword [ebp - 0x1c]
and edx, 0x2000000
test edx, edx
je 0x422a18
mov eax, dword [ebp + 8]
mov word [eax + 0x44a], 0x9320
mov ecx, dword [ebp - 0x1c]
and ecx, 0x4000000
test ecx, ecx
je 0x422a31
mov edx, dword [ebp + 8]
mov word [edx + 0x44c], 0x7032
mov eax, dword [ebp - 0x1c]
and eax, 0x8000000
test eax, eax
je 0x422a49
mov ecx, dword [ebp + 8]
mov word [ecx + 0x44e], 0x836a
mov edx, dword [ebp - 0x1c]
and edx, 0x10000000
test edx, edx
je 0x422a62
mov eax, dword [ebp + 8]
mov word [eax + 0x450], 0x336
mov ecx, dword [ebp - 0x1c]
and ecx, 0x20000000
test ecx, ecx
je 0x422a7b
mov edx, dword [ebp + 8]
mov word [edx + 0x452], 0x9969
jmp 0x422acd
cmp dword [ebp - 4], 0
jne 0x422acd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x422a9d
xor ecx, ecx
test ecx, ecx
je 0x422a9d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x3c], eax
jmp 0x422aa4
mov dword [ebp - 0x3c], 0xffffffd0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x14], edx
push 0
push 0xff
push 0
push 0
push 0x34
push 0xffffffffffffffd0
mov eax, dword [ebp + 8]
push eax
call fcn.004105d0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x422acf
xor eax, eax
mov esp, ebp
pop ebp
ret