Function at 0x46626a
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 0x4662b8
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x440]
cmp eax, 0x2655
je 0x4662b6
mov ecx, dword [ebp + 8]
mov word [ecx + 0x454], 0xd30f
mov edx, dword [ebp + 8]
mov word [edx + 0x454], 0xd30f
xor eax, eax
jmp 0x466880
jmp 0x4662cd
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.004774c3
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4663cc
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x4662ff
mov edx, dword [ebp + 0xc]
cmp dword [edx + 8], 0
jne 0x466306
xor eax, eax
jmp 0x466880
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 1
jmp 0x46631f
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jge 0x46633a
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 0x466316
mov dword [ebp - 0x28], 0
jmp 0x46634c
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 4
jge 0x466367
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 0x466343
mov ecx, dword [ebp - 8]
and ecx, 0x7f
mov edx, dword [ebp - 0x18]
and edx, 0x7f
cmp ecx, edx
je 0x4663c7
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x466391
xor ecx, ecx
test ecx, ecx
je 0x466391
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x466398
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.00463180
add esp, 0x1c
or eax, 0xffffffff
jmp 0x466880
jmp 0x466473
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 0x466426
lea edx, [ebp - 0x1c]
push edx
call fcn.0047763d
add esp, 4
cmp dword [ebp - 0xc], eax
je 0x466473
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x466440
xor ecx, ecx
test ecx, ecx
je 0x466440
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
jmp 0x466447
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.00463180
add esp, 0x1c
or eax, 0xffffffff
jmp 0x466880
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80000000
jbe 0x46649c
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
cmp ecx, 4
jge 0x46649c
mov dword [ebp - 0x34], 1
jmp 0x4664a3
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 0x4664bb
cmp dword [ebp - 0x24], 0
je 0x4664d6
cmp dword [ebp - 0x24], 0
je 0x46682e
mov ecx, dword [ebp - 0x14]
and ecx, 0x400000
test ecx, ecx
je 0x46682e
cmp dword [ebp - 4], 0
je 0x4664fb
mov edx, dword [ebp + 8]
mov word [edx + 0x454], 0xd30f
mov eax, dword [ebp + 8]
mov word [eax + 0x454], 0xd30f
xor eax, eax
jmp 0x466880
mov ecx, dword [ebp - 0x1c]
and ecx, 0x100000
test ecx, ecx
je 0x466519
mov edx, dword [ebp + 8]
mov word [edx + 0x440], 0x2655
jmp 0x4665a2
mov eax, dword [ebp - 0x10]
and eax, 0xffff
push eax
push 0x4da894
push str.a001
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
push str.a001
call fcn.0047213d
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00471ac2
add esp, 0xc
test eax, eax
je 0x4665a2
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x46656f
xor eax, eax
test eax, eax
je 0x46656f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x38], edx
jmp 0x466576
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.00463180
add esp, 0x1c
or eax, 0xffffffff
jmp 0x466880
mov eax, dword [ebp - 0x1c]
and eax, 2
test eax, eax
je 0x4665b8
mov ecx, dword [ebp + 8]
mov word [ecx + 0x41a], 0x20
mov edx, dword [ebp - 0x1c]
and edx, 4
test edx, edx
je 0x4665ce
mov eax, dword [ebp + 8]
mov word [eax + 0x41c], 0x3e1
mov ecx, dword [ebp - 0x1c]
and ecx, 8
test ecx, ecx
je 0x4665e4
mov edx, dword [ebp + 8]
mov word [edx + 0x41e], 0xabcd
mov eax, dword [ebp - 0x1c]
and eax, 0x10
test eax, eax
je 0x4665fa
mov ecx, dword [ebp + 8]
mov word [ecx + 0x420], 0x54
mov edx, dword [ebp - 0x1c]
and edx, 0x20
test edx, edx
je 0x466610
mov eax, dword [ebp + 8]
mov word [eax + 0x422], 0x5e
mov ecx, dword [ebp - 0x1c]
and ecx, 0x40
test ecx, ecx
je 0x466626
mov edx, dword [ebp + 8]
mov word [edx + 0x424], 0x7f
mov eax, dword [ebp - 0x1c]
and eax, 0x80
test eax, eax
je 0x46663e
mov ecx, dword [ebp + 8]
mov word [ecx + 0x426], 0x4e9b
mov edx, dword [ebp - 0x1c]
and edx, 0x4000
test edx, edx
je 0x466657
mov eax, dword [ebp + 8]
mov word [eax + 0x434], 0xdead
mov ecx, dword [ebp - 0x1c]
and ecx, 0x8000
test ecx, ecx
je 0x466670
mov edx, dword [ebp + 8]
mov word [edx + 0x436], 0xfeef
mov eax, dword [ebp - 0x1c]
and eax, 0x100
test eax, eax
je 0x466688
mov ecx, dword [ebp + 8]
mov word [ecx + 0x428], 0xc7
mov edx, dword [ebp - 0x1c]
and edx, 0x200
test edx, edx
je 0x4666a1
mov eax, dword [ebp + 8]
mov word [eax + 0x42a], 0x1538
mov ecx, dword [ebp - 0x1c]
and ecx, 0x800
test ecx, ecx
je 0x4666ba
mov edx, dword [ebp + 8]
mov word [edx + 0x42e], 0xc
mov eax, dword [ebp - 0x1c]
and eax, 0x1000
test eax, eax
je 0x4666d2
mov ecx, dword [ebp + 8]
mov word [ecx + 0x430], 0x3ce
mov edx, dword [ebp - 0x1c]
and edx, 0x2000
test edx, edx
je 0x4666eb
mov eax, dword [ebp + 8]
mov word [eax + 0x432], 0x22b
mov ecx, dword [ebp - 0x1c]
and ecx, 0x10000
test ecx, ecx
je 0x466704
mov edx, dword [ebp + 8]
mov word [edx + 0x438], 0x46
mov eax, dword [ebp - 0x1c]
and eax, 0x20000
test eax, eax
je 0x46671c
mov ecx, dword [ebp + 8]
mov word [ecx + 0x43a], 0xdd
mov edx, dword [ebp - 0x1c]
and edx, 0x40000
test edx, edx
je 0x466735
mov eax, dword [ebp + 8]
mov word [eax + 0x43c], 0x70
mov ecx, dword [ebp - 0x1c]
and ecx, 0x80000
test ecx, ecx
je 0x46674e
mov edx, dword [ebp + 8]
mov word [edx + 0x43e], 0x15a6
mov eax, dword [ebp - 0x1c]
and eax, 0x200000
test eax, eax
je 0x466766
mov ecx, dword [ebp + 8]
mov word [ecx + 0x442], 0x511
mov edx, dword [ebp - 0x1c]
and edx, 0x400000
test edx, edx
je 0x46677f
mov eax, dword [ebp + 8]
mov word [eax + 0x444], 0x1204
mov ecx, dword [ebp - 0x1c]
and ecx, 0x800000
test ecx, ecx
je 0x466798
mov edx, dword [ebp + 8]
mov word [edx + 0x446], 0x2a34
mov eax, dword [ebp - 0x1c]
and eax, 0x1000000
test eax, eax
je 0x4667b0
mov ecx, dword [ebp + 8]
mov word [ecx + 0x448], 0x12ef
mov edx, dword [ebp - 0x1c]
and edx, 0x2000000
test edx, edx
je 0x4667c9
mov eax, dword [ebp + 8]
mov word [eax + 0x44a], 0x9320
mov ecx, dword [ebp - 0x1c]
and ecx, 0x4000000
test ecx, ecx
je 0x4667e2
mov edx, dword [ebp + 8]
mov word [edx + 0x44c], 0x7032
mov eax, dword [ebp - 0x1c]
and eax, 0x8000000
test eax, eax
je 0x4667fa
mov ecx, dword [ebp + 8]
mov word [ecx + 0x44e], 0x836a
mov edx, dword [ebp - 0x1c]
and edx, 0x10000000
test edx, edx
je 0x466813
mov eax, dword [ebp + 8]
mov word [eax + 0x450], 0x336
mov ecx, dword [ebp - 0x1c]
and ecx, 0x20000000
test ecx, ecx
je 0x46682c
mov edx, dword [ebp + 8]
mov word [edx + 0x452], 0x9969
jmp 0x46687e
cmp dword [ebp - 4], 0
jne 0x46687e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x46684e
xor ecx, ecx
test ecx, ecx
je 0x46684e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x3c], eax
jmp 0x466855
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.00463180
add esp, 0x1c
or eax, 0xffffffff
jmp 0x466880
xor eax, eax
mov esp, ebp
pop ebp
ret