Function at 0x661ac4
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 0x661b37
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
xor edx, edx
mov dx, word [ecx + 0xb40]
cmp edx, 0x2655
je 0x661b35
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb54], 0xd30f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb54], 0xd30f
xor eax, eax
jmp 0x66229a
jmp 0x661b59
push 0x40
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
add edx, 0xb18
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0067de93
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x661c61
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x661b8b
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
jne 0x661b92
xor eax, eax
jmp 0x66229a
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 1
jmp 0x661bab
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 4
jge 0x661bc6
mov ecx, dword [ebp - 0x28]
shl ecx, 3
mov eax, dword [ebp - 0x18]
shr eax, cl
mov ecx, dword [ebp - 8]
xor ecx, eax
mov dword [ebp - 8], ecx
jmp 0x661ba2
mov dword [ebp - 0x28], 0
jmp 0x661bd8
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 4
jge 0x661bf3
mov ecx, dword [ebp - 0x28]
shl ecx, 3
mov eax, dword [ebp - 0x14]
shr eax, cl
mov ecx, dword [ebp - 8]
xor ecx, eax
mov dword [ebp - 8], ecx
jmp 0x661bcf
mov edx, dword [ebp - 8]
and edx, 0x7f
mov eax, dword [ebp - 0x18]
and eax, 0x7f
cmp edx, eax
je 0x661c5c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x661c23
xor edx, edx
test edx, edx
je 0x661c23
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x2c], ecx
jmp 0x661c2a
mov dword [ebp - 0x2c], 0xffffffd4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x21d
push 0xffffffffffffffd4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00651d00
add esp, 0x1c
or eax, 0xffffffff
jmp 0x66229a
jmp 0x661d12
mov edx, dword [ebp - 0x10]
xor edx, 0xa3ef0000
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
and ecx, 0xffff
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xffff
mov eax, dword [ebp - 8]
sub eax, edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
and ecx, 0x7f
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffffff80
mov dword [ebp - 0x18], edx
cmp dword [ebp - 8], 0
jne 0x661cbc
lea eax, [ebp - 0x1c]
push eax
call fcn.0067e00d
add esp, 4
cmp dword [ebp - 0xc], eax
je 0x661d12
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x661cdc
xor edx, edx
test edx, edx
je 0x661cdc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x30], ecx
jmp 0x661ce3
mov dword [ebp - 0x30], 0xffffffd4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x31
push 0xffffffffffffffd4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00651d00
add esp, 0x1c
or eax, 0xffffffff
jmp 0x66229a
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80000000
jbe 0x661d3b
mov edx, dword [ebp - 0x20]
and edx, 0xff
cmp edx, 4
jge 0x661d3b
mov dword [ebp - 0x34], 1
jmp 0x661d42
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
and ecx, 0x40000000
test ecx, ecx
je 0x661d5b
cmp dword [ebp - 0x24], 0
je 0x661d76
cmp dword [ebp - 0x24], 0
je 0x66223f
mov edx, dword [ebp - 0x14]
and edx, 0x400000
test edx, edx
je 0x66223f
cmp dword [ebp - 4], 0
je 0x661db3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb54], 0xd30f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb54], 0xd30f
xor eax, eax
jmp 0x66229a
mov eax, dword [ebp - 0x1c]
and eax, 0x100000
test eax, eax
je 0x661ddc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb40], 0x2655
jmp 0x661e6f
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
push ecx
push 0x76faf0
push str.a001
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
push 0
push str.a001
call fcn.0066f16b
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0066e8d2
add esp, 0xc
test eax, eax
je 0x661e6f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x661e39
xor ecx, ecx
test ecx, ecx
je 0x661e39
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x38], eax
jmp 0x661e40
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.00651d00
add esp, 0x1c
or eax, 0xffffffff
jmp 0x66229a
mov ecx, dword [ebp - 0x1c]
and ecx, 2
test ecx, ecx
je 0x661e91
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb1a], 0x20
mov edx, dword [ebp - 0x1c]
and edx, 4
test edx, edx
je 0x661eb3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb1c], 0x3e1
mov eax, dword [ebp - 0x1c]
and eax, 8
test eax, eax
je 0x661ed5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb1e], 0xabcd
mov ecx, dword [ebp - 0x1c]
and ecx, 0x10
test ecx, ecx
je 0x661ef7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb20], 0x54
mov edx, dword [ebp - 0x1c]
and edx, 0x20
test edx, edx
je 0x661f19
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb22], 0x5e
mov eax, dword [ebp - 0x1c]
and eax, 0x40
test eax, eax
je 0x661f3b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb24], 0x7f
mov ecx, dword [ebp - 0x1c]
and ecx, 0x80
test ecx, ecx
je 0x661f60
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb26], 0x4e9b
mov edx, dword [ebp - 0x1c]
and edx, 0x4000
test edx, edx
je 0x661f85
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb34], 0xdead
mov eax, dword [ebp - 0x1c]
and eax, 0x8000
test eax, eax
je 0x661fa9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb36], 0xfeef
mov ecx, dword [ebp - 0x1c]
and ecx, 0x100
test ecx, ecx
je 0x661fce
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb28], 0xc7
mov edx, dword [ebp - 0x1c]
and edx, 0x200
test edx, edx
je 0x661ff3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb2a], 0x1538
mov eax, dword [ebp - 0x1c]
and eax, 0x800
test eax, eax
je 0x662017
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb2e], 0xc
mov ecx, dword [ebp - 0x1c]
and ecx, 0x1000
test ecx, ecx
je 0x66203c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb30], 0x3ce
mov edx, dword [ebp - 0x1c]
and edx, 0x2000
test edx, edx
je 0x662061
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb32], 0x22b
mov eax, dword [ebp - 0x1c]
and eax, 0x10000
test eax, eax
je 0x662085
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb38], 0x46
mov ecx, dword [ebp - 0x1c]
and ecx, 0x20000
test ecx, ecx
je 0x6620aa
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb3a], 0xdd
mov edx, dword [ebp - 0x1c]
and edx, 0x40000
test edx, edx
je 0x6620cf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb3c], 0x70
mov eax, dword [ebp - 0x1c]
and eax, 0x80000
test eax, eax
je 0x6620f3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb3e], 0x15a6
mov ecx, dword [ebp - 0x1c]
and ecx, 0x200000
test ecx, ecx
je 0x662118
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb42], 0x511
mov edx, dword [ebp - 0x1c]
and edx, 0x400000
test edx, edx
je 0x66213d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb44], 0x1204
mov eax, dword [ebp - 0x1c]
and eax, 0x800000
test eax, eax
je 0x662161
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb46], 0x2a34
mov ecx, dword [ebp - 0x1c]
and ecx, 0x1000000
test ecx, ecx
je 0x662186
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb48], 0x12ef
mov edx, dword [ebp - 0x1c]
and edx, 0x2000000
test edx, edx
je 0x6621ab
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb4a], 0x9320
mov eax, dword [ebp - 0x1c]
and eax, 0x4000000
test eax, eax
je 0x6621cf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb4c], 0x7032
mov ecx, dword [ebp - 0x1c]
and ecx, 0x8000000
test ecx, ecx
je 0x6621f4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x19c]
mov ecx, dword [eax + 0x1cdc]
mov word [ecx + 0xb4e], 0x836a
mov edx, dword [ebp - 0x1c]
and edx, 0x10000000
test edx, edx
je 0x662219
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
mov edx, dword [ecx + 0x1cdc]
mov word [edx + 0xb50], 0x336
mov eax, dword [ebp - 0x1c]
and eax, 0x20000000
test eax, eax
je 0x66223d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x19c]
mov eax, dword [edx + 0x1cdc]
mov word [eax + 0xb52], 0x9969
jmp 0x662298
cmp dword [ebp - 4], 0
jne 0x662298
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x662265
xor edx, edx
test edx, edx
je 0x662265
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x3c], ecx
jmp 0x66226c
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.00651d00
add esp, 0x1c
or eax, 0xffffffff
jmp 0x66229a
xor eax, eax
mov esp, ebp
pop ebp
ret