Function at 0x280ece
Capabilities:
Allocate or change rwx memory
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x281166
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2811c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x280328
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x280f04
push 0x280328
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x280340
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x280f1e
push 0x280340
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x280358
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x280f38
push 0x280358
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.002808c2
mov dword [ebp - 0x20], eax
call fcn.002808df
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 8]
xor edx, edx
inc edx
mov ecx, 0x280374
call fcn.002806e7
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [0x2811bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x2811b8], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00280382
mov ecx, dword [eax]
mov dword [ebp - 0x36], ecx
mov ax, word [eax + 4]
mov word [ebp - 0x32], ax
mov eax, dword [ebp - 0x36]
mov dword [0x2811dc], eax
mov ax, word [ebp - 0x32]
mov word [0x2811e0], ax
mov ecx, dword [ebp + 8]
call fcn.002807ea
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x280fcc
mov eax, dword [ebp - 0x10]
add eax, 0x78
mov dword [ebp - 0x18], eax
jmp 0x280fd7
mov eax, dword [ebp - 0x10]
add eax, 0x88
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push 8
pop eax
imul eax, eax, 9
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax], 0
je 0x28107a
push 8
pop eax
imul eax, eax, 9
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax]
mov dword [0x2811a8], edx
mov eax, dword [0x2811a8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [0x2811a8]
mov eax, dword [eax]
mov dword [0x2811b0], eax
mov eax, dword [0x2811a8]
mov ecx, dword [0x2811a8]
mov eax, dword [eax + 4]
sub eax, dword [ecx]
mov dword [0x2811b4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [0x2811ac], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], 0x280be2
mov eax, dword [0x2811a8]
mov eax, dword [eax + 8]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x2811d8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
and eax, 0xfffbffff
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x34], eax
push 0
push 2
pop edx
mov ecx, dword [ebp + 8]
call fcn.00280c64
push 0x2802f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x28109c
push 0x2802f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
push 0x280310
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x2810fe
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x2810ec
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0xe9
mov eax, 0x280bcb
sub eax, dword [ebp - 4]
sub eax, 5
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
push 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x28031c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x281160
lea eax, [ebp - 0x14]
push eax
push 0x40
push 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x28114e
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0xe9
mov eax, 0x280bb4
sub eax, dword [ebp - 4]
sub eax, 5
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
push 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8