Function at 0x1003ed80
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x20]
mov ebx, ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0x100c6a64
push dword [ebp + 0x28]
push dword [eax]
push esi
push 0x12
call fcn.1003a4c7
push 0x100e3d7c
mov dword [ebx], 0x100cd0cc
mov byte [ebx + 0x40], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi + 0x28]
mov eax, dword [esi + 0x8c]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
shl eax, 2
not eax
and eax, 0x10000
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x20]
add edx, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
xor edi, edi
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp + 8], esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x14], edi
call fcn.1003f9c4
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.10053a89
mov eax, dword [ebp + 0x1c]
mov ax, word [eax]
add esp, 0xc
call fcn.1003ed62
test al, al
je 0x1003ee4a
add dword [ebp + 0x1c], 2
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.10053a89
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c]
mov ax, word [eax]
call fcn.1003ed62
test al, al
je 0x1003ee6c
add dword [ebp + 0x1c], 2
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.10053a89
pop ecx
pop ecx
push 0x90
call fcn.100b4338
cmp eax, edi
pop ecx
je 0x1003ee8b
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.100a7ddc
mov dword [ebp + 0x18], eax
jmp 0x1003ee8e
mov dword [ebp + 0x18], edi
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x18]
mov eax, ecx
shr eax, 0xf
and eax, 1
sete al
test cl, 0x10
mov dword [ebx + 0x1c], edx
jne 0x1003eeae
mov dword [ebp + 0x20], 0x10000000
test cl, 0x20
je 0x1003eeb9
or dword [ebp + 0x20], 4
jmp 0x1003eed0
test cl, 0x40
je 0x1003eec8
or dword [ebp + 0x20], 9
or byte [ebx + 0x40], 1
jmp 0x1003eed0
test cl, cl
jns 0x1003eed0
or dword [ebp + 0x20], 0xc
test ch, 1
je 0x1003eed9
or dword [ebp + 0x20], 1
test ch, 2
je 0x1003eee2
or dword [ebp + 0x20], 2
test ecx, 0x20000000
je 0x1003eeee
or dword [ebp + 0x20], 0x20
test al, al
jne 0x1003eef6
or byte [ebp + 0x23], 8
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x20]
push dword [esi + 0x18]
or eax, dword [ebp - 4]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or eax, 0x40000000
push eax
mov ecx, edx
movsd dword es:[edi], dword [esi]
call fcn.100a7dfe
mov esi, dword [ebp + 0x18]
xor eax, eax
mov al, byte [ebx + 0x40]
mov ecx, ebx
and eax, 0xffffff01
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x28]
push dword [ebp + 0x10]
push dword [esi + 0x18]
call fcn.1003a556
mov ecx, dword [ebp + 8]
call fcn.1009fde3
mov edx, dword [esi]
push 1
push eax
mov ecx, esi
call dword [edx + 0x84]
mov eax, dword [esi]
push 1
push dword [0x100e3e0c]
mov ecx, esi
call dword [eax + 0x84]
push dword [ebp + 8]
mov ecx, ebx
push dword [ebp + 0x20]
call fcn.1003ad7e
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x28