Function at 0x4218aa
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 0x4218f8
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x440]
cmp eax, 0x2655
je 0x4218f6
mov ecx, dword [ebp + 8]
mov word [ecx + 0x454], 0xd30f
mov edx, dword [ebp + 8]
mov word [edx + 0x454], 0xd30f
xor eax, eax
jmp 0x421ec0
jmp 0x42190d
push 0x40
push 0
mov eax, dword [ebp + 8]
add eax, 0x418
push eax
call sub.MSVCRT.dll_memset
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.0042b573
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x421a0c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x42193f
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
jne 0x421946
xor eax, eax
jmp 0x421ec0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 1
jmp 0x42195f
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jge 0x42197a
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 0x421956
mov dword [ebp - 0x28], 0
jmp 0x42198c
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 4
jge 0x4219a7
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 0x421983
mov ecx, dword [ebp - 8]
and ecx, 0x7f
mov edx, dword [ebp - 0x18]
and edx, 0x7f
cmp ecx, edx
je 0x421a07
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x4219d1
xor ecx, ecx
test ecx, ecx
je 0x4219d1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x4219d8
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.00404a80
add esp, 0x1c
or eax, 0xffffffff
jmp 0x421ec0
jmp 0x421ab3
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 0x421a66
lea edx, [ebp - 0x1c]
push edx
call fcn.0042b6ed
add esp, 4
cmp dword [ebp - 0xc], eax
je 0x421ab3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x421a80
xor ecx, ecx
test ecx, ecx
je 0x421a80
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
jmp 0x421a87
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.00404a80
add esp, 0x1c
or eax, 0xffffffff
jmp 0x421ec0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80000000
jbe 0x421adc
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
cmp ecx, 4
jge 0x421adc
mov dword [ebp - 0x34], 1
jmp 0x421ae3
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 0x421afb
cmp dword [ebp - 0x24], 0
je 0x421b16
cmp dword [ebp - 0x24], 0
je 0x421e6e
mov ecx, dword [ebp - 0x14]
and ecx, 0x400000
test ecx, ecx
je 0x421e6e
cmp dword [ebp - 4], 0
je 0x421b3b
mov edx, dword [ebp + 8]
mov word [edx + 0x454], 0xd30f
mov eax, dword [ebp + 8]
mov word [eax + 0x454], 0xd30f
xor eax, eax
jmp 0x421ec0
mov ecx, dword [ebp - 0x1c]
and ecx, 0x100000
test ecx, ecx
je 0x421b59
mov edx, dword [ebp + 8]
mov word [edx + 0x440], 0x2655
jmp 0x421be2
mov eax, dword [ebp - 0x10]
and eax, 0xffff
push eax
push 0x472d04
push str.a001
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
push str.a001
call fcn.00413add
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413462
add esp, 0xc
test eax, eax
je 0x421be2
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x421baf
xor eax, eax
test eax, eax
je 0x421baf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x38], edx
jmp 0x421bb6
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.00404a80
add esp, 0x1c
or eax, 0xffffffff
jmp 0x421ec0
mov eax, dword [ebp - 0x1c]
and eax, 2
test eax, eax
je 0x421bf8
mov ecx, dword [ebp + 8]
mov word [ecx + 0x41a], 0x20
mov edx, dword [ebp - 0x1c]
and edx, 4
test edx, edx
je 0x421c0e
mov eax, dword [ebp + 8]
mov word [eax + 0x41c], 0x3e1
mov ecx, dword [ebp - 0x1c]
and ecx, 8
test ecx, ecx
je 0x421c24
mov edx, dword [ebp + 8]
mov word [edx + 0x41e], 0xabcd
mov eax, dword [ebp - 0x1c]
and eax, 0x10
test eax, eax
je 0x421c3a
mov ecx, dword [ebp + 8]
mov word [ecx + 0x420], 0x54
mov edx, dword [ebp - 0x1c]
and edx, 0x20
test edx, edx
je 0x421c50
mov eax, dword [ebp + 8]
mov word [eax + 0x422], 0x5e
mov ecx, dword [ebp - 0x1c]
and ecx, 0x40
test ecx, ecx
je 0x421c66
mov edx, dword [ebp + 8]
mov word [edx + 0x424], 0x7f
mov eax, dword [ebp - 0x1c]
and eax, 0x80
test eax, eax
je 0x421c7e
mov ecx, dword [ebp + 8]
mov word [ecx + 0x426], 0x4e9b
mov edx, dword [ebp - 0x1c]
and edx, 0x4000
test edx, edx
je 0x421c97
mov eax, dword [ebp + 8]
mov word [eax + 0x434], 0xdead
mov ecx, dword [ebp - 0x1c]
and ecx, 0x8000
test ecx, ecx
je 0x421cb0
mov edx, dword [ebp + 8]
mov word [edx + 0x436], 0xfeef
mov eax, dword [ebp - 0x1c]
and eax, 0x100
test eax, eax
je 0x421cc8
mov ecx, dword [ebp + 8]
mov word [ecx + 0x428], 0xc7
mov edx, dword [ebp - 0x1c]
and edx, 0x200
test edx, edx
je 0x421ce1
mov eax, dword [ebp + 8]
mov word [eax + 0x42a], 0x1538
mov ecx, dword [ebp - 0x1c]
and ecx, 0x800
test ecx, ecx
je 0x421cfa
mov edx, dword [ebp + 8]
mov word [edx + 0x42e], 0xc
mov eax, dword [ebp - 0x1c]
and eax, 0x1000
test eax, eax
je 0x421d12
mov ecx, dword [ebp + 8]
mov word [ecx + 0x430], 0x3ce
mov edx, dword [ebp - 0x1c]
and edx, 0x2000
test edx, edx
je 0x421d2b
mov eax, dword [ebp + 8]
mov word [eax + 0x432], 0x22b
mov ecx, dword [ebp - 0x1c]
and ecx, 0x10000
test ecx, ecx
je 0x421d44
mov edx, dword [ebp + 8]
mov word [edx + 0x438], 0x46
mov eax, dword [ebp - 0x1c]
and eax, 0x20000
test eax, eax
je 0x421d5c
mov ecx, dword [ebp + 8]
mov word [ecx + 0x43a], 0xdd
mov edx, dword [ebp - 0x1c]
and edx, 0x40000
test edx, edx
je 0x421d75
mov eax, dword [ebp + 8]
mov word [eax + 0x43c], 0x70
mov ecx, dword [ebp - 0x1c]
and ecx, 0x80000
test ecx, ecx
je 0x421d8e
mov edx, dword [ebp + 8]
mov word [edx + 0x43e], 0x15a6
mov eax, dword [ebp - 0x1c]
and eax, 0x200000
test eax, eax
je 0x421da6
mov ecx, dword [ebp + 8]
mov word [ecx + 0x442], 0x511
mov edx, dword [ebp - 0x1c]
and edx, 0x400000
test edx, edx
je 0x421dbf
mov eax, dword [ebp + 8]
mov word [eax + 0x444], 0x1204
mov ecx, dword [ebp - 0x1c]
and ecx, 0x800000
test ecx, ecx
je 0x421dd8
mov edx, dword [ebp + 8]
mov word [edx + 0x446], 0x2a34
mov eax, dword [ebp - 0x1c]
and eax, 0x1000000
test eax, eax
je 0x421df0
mov ecx, dword [ebp + 8]
mov word [ecx + 0x448], 0x12ef
mov edx, dword [ebp - 0x1c]
and edx, 0x2000000
test edx, edx
je 0x421e09
mov eax, dword [ebp + 8]
mov word [eax + 0x44a], 0x9320
mov ecx, dword [ebp - 0x1c]
and ecx, 0x4000000
test ecx, ecx
je 0x421e22
mov edx, dword [ebp + 8]
mov word [edx + 0x44c], 0x7032
mov eax, dword [ebp - 0x1c]
and eax, 0x8000000
test eax, eax
je 0x421e3a
mov ecx, dword [ebp + 8]
mov word [ecx + 0x44e], 0x836a
mov edx, dword [ebp - 0x1c]
and edx, 0x10000000
test edx, edx
je 0x421e53
mov eax, dword [ebp + 8]
mov word [eax + 0x450], 0x336
mov ecx, dword [ebp - 0x1c]
and ecx, 0x20000000
test ecx, ecx
je 0x421e6c
mov edx, dword [ebp + 8]
mov word [edx + 0x452], 0x9969
jmp 0x421ebe
cmp dword [ebp - 4], 0
jne 0x421ebe
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x421e8e
xor ecx, ecx
test ecx, ecx
je 0x421e8e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x3c], eax
jmp 0x421e95
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.00404a80
add esp, 0x1c
or eax, 0xffffffff
jmp 0x421ec0
xor eax, eax
mov esp, ebp
pop ebp
ret