Function at 0x4561cb
Capabilities:
Inspect section memory permissions

Disassembly:
enter 0x18, 0
push eax
push ebx
push ecx
push edx
push esi
push edi
mov eax, dword [0x4950cc]
mov dword [ebp - 0x14], eax
and eax, 0xffff
shl eax, 0xa
add eax, dword [0x4a2648]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edi, dword [0x4950dc]
mov dword [ebp - 0x10], edi
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0xc], eax
mov edx, 0
mov dword [edi + 0x1c], 0x10000
mov dword [edi + 0x20], 0x10000
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov eax, dword [ebp - 0x14]
mov word [edi + 8], ax
test dword [ebp - 4], 0x10000000
je 0x45625e
mov edx, 3
mov eax, dword [ecx + 0x30]
cmp dword [0x49d874], 0
je 0x456250
shl eax, 0xa
add ax, ax
shr eax, 0xb
and eax, dword [0x49ddc0]
mov dword [edi + 0x28], eax
jmp 0x456386
test dword [ebp - 4], 0x40000000
je 0x4562b1
mov edx, 6
mov eax, dword [ecx + 0x30]
cmp dword [0x49d874], 0
je 0x456281
shl eax, 0xa
add ax, ax
shr eax, 0xb
cmp dword [ebp - 0x14], 0x10
jae 0x4562a3
push ecx
push edx
xor ecx, ecx
mov cl, ah
and eax, 0xff
mov edx, dword [ebp - 0x18]
mov ax, word [edx + eax*2]
add ax, word [edx + ecx*2 + 0x200]
pop edx
pop ecx
and eax, dword [0x49ddc0]
mov dword [edi + 0x28], eax
jmp 0x456386
test dword [ebp - 4], 0x20000000
je 0x4562f3
mov edx, 9
mov eax, dword [ecx + 0x30]
cmp ax, 0x10
jbe 0x4562cc
mov ax, 0x10
cmp dword [ebp - 0x14], 0x10
jae 0x4562db
imul ax, word [ebp - 0x14]
shr ax, 4
ror eax, 0x10
cmp ax, 0x10
jbe 0x4562e8
mov ax, 0x10
ror eax, 0x10
mov dword [edi + 0x28], eax
jmp 0x456386
test dword [ebp - 4], 0x80000
je 0x456306
mov edx, 0x17
jmp 0x456386
test dword [ebp - 4], 0x40000
je 0x456319
mov edx, 0x1a
jmp 0x456386
test dword [ebp - 4], 0x2000000
je 0x456329
mov edx, 0xc
jmp 0x456386
test dword [ebp - 4], 0x400000
je 0x456339
mov edx, 0xf
jmp 0x456386
test dword [ebp - 4], 0x10000
je 0x456386
mov edx, 0x1d
mov eax, dword [ecx + 0x30]
cmp dword [0x49d874], 0
je 0x45635c
shl eax, 0xa
add ax, ax
shr eax, 0xb
cmp dword [ebp - 0x14], 0x10
jae 0x45637e
push ecx
push edx
xor ecx, ecx
mov cl, ah
and eax, 0xff
mov edx, dword [ebp - 0x18]
mov ax, word [edx + eax*2]
add ax, word [edx + ecx*2 + 0x200]
pop edx
pop ecx
mov word [edi + 0x28], ax
mov word [edi + 0x2a], ax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 6
jne 0x456394
add edx, 2
jmp 0x4563ac
test dword [ebp - 4], 0x4000000
je 0x4563ac
add edx, 1
mov eax, dword [ecx + 0x20]
mov dword [edi + 0x1c], eax
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x20], eax
test dword [ebp - 4], 0x1000000
je 0x45640a
mov edx, 0x12
test dword [ebp - 4], 0x2000000
je 0x4563ca
mov edx, 0x13
jmp 0x456404
mov eax, dword [ecx + 0x30]
cmp dword [0x49d874], 0
je 0x4563df
shl eax, 0xa
add ax, ax
shr eax, 0xb
cmp dword [ebp - 0x14], 0x10
jae 0x456401
push ecx
push edx
xor ecx, ecx
mov cl, ah
and eax, 0xff
mov edx, dword [ebp - 0x18]
mov ax, word [edx + eax*2]
add ax, word [edx + ecx*2 + 0x200]
pop edx
pop ecx
mov dword [edi + 0x28], eax
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x24], eax
test dword [ebp - 4], 0x800000
je 0x456418
mov edx, 0x14
test dword [ebp - 4], 0x200000
je 0x456426
mov edx, 0x15
test dword [ebp - 4], 0x100000
je 0x456434
mov edx, 0x16
mov eax, edx
mov dword [edi], eax
mov eax, dword [ecx + 0x2c]
mov dword [edi + 0x10], eax
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
add eax, dword [0x49d87c]
mov word [edi + 0xc], ax
mov eax, dword [ecx + 8]
add eax, dword [0x49d880]
mov word [edi + 0xe], ax
test dword [ebp - 4], 0x8000000
je 0x4564f6
mov eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x18]
add eax, dword [0x49d87c]
add ebx, dword [0x49d87c]
push dword [0x49d86c]
push dword [0x49d864]
push ebx
push eax
call fcn.0045618a
add esp, 0x10
cmp eax, ebx
jne 0x4564a7
mov dword [edi], 0x20
mov eax, dword [0x49d864]
mov ebx, dword [0x49d86c]
mov word [edi + 0x14], ax
mov word [edi + 0x18], bx
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x1c]
add eax, dword [0x49d880]
add ebx, dword [0x49d880]
push dword [0x49d870]
push dword [0x49d868]
push ebx
push eax
call fcn.0045618a
add esp, 0x10
cmp eax, ebx
jne 0x4564ec
mov dword [edi], 0x20
mov eax, dword [0x49d868]
mov ebx, dword [0x49d870]
mov word [edi + 0x16], ax
mov word [edi + 0x1a], bx
jmp 0x45651a
mov eax, dword [0x49d864]
mov word [edi + 0x14], ax
mov eax, dword [0x49d868]
mov word [edi + 0x16], ax
mov eax, dword [0x49d86c]
mov word [edi + 0x18], ax
mov eax, dword [0x49d870]
mov word [edi + 0x1a], ax
mov edx, dword [ecx + 0xc]
cmp edx, dword [0x49d878]
jbe 0x45652b
mov dword [0x49d878], edx
test dword [ebp - 4], 0x80000000
je 0x456552
mov eax, dword [edx*4 + 0x4950e4]
mov dword [edi + 0x2c], eax
mov dword [edx*4 + 0x4950e4], edi
or eax, eax
jne 0x456550
mov dword [edx*4 + 0x4990e4], edi
jmp 0x456577
mov eax, dword [edx*4 + 0x4990e4]
or eax, eax
je 0x456562
mov dword [eax + 0x2c], edi
jmp 0x456569
mov dword [edx*4 + 0x4950e4], edi
mov dword [edi + 0x2c], 0
mov dword [edx*4 + 0x4990e4], edi
test dword [ebp - 4], 0x2000000
je 0x45659d
mov eax, edi
add edi, 0x30
mov dword [eax + 0x28], edi
mov ecx, dword [ecx + 0x30]
mov eax, dword [ecx]
push ecx
push edi
call dword [eax*4 + 0x4a2a98]
add esp, 8
mov edi, eax
jmp 0x456602
test dword [ebp - 4], 0x800000
jne 0x4565b2
test dword [ebp - 4], 0x200000
jne 0x4565b2
clc
jmp 0x4565b3
stc
jae 0x4565ff
mov eax, edi
add edi, 0x30
mov dword [eax + 0x28], edi
mov ecx, dword [ecx + 0x30]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x28]
mov dword [edi + 0x28], eax
add edi, 0x2c
jmp 0x456602
add edi, 0x30
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 6
jne 0x456638
mov dword [eax + 0x10], edi
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 8]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x18], eax
add edi, 0x1c
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
test dword [ebp - 4], 0x1000000
je 0x456696
cmp dword [eax + 0x24], 0xffffffff
jne 0x456696
mov dword [eax + 0x24], 0
mov dword [eax + 0x10], edi
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov eax, edi
add edi, 0x20
mov dword [eax + 0x1c], edi
mov esi, dword [ebx + 0x1c]
mov ebx, dword [eax + 0x10]
imul ebx, dword [eax + 0x18]
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
dec ebx
jne 0x45668d
mov dword [0x4950dc], edi
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
ret