Function at 0x100105e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
mov eax, ecx
mov ebx, edx
push esi
xor esi, esi
mov dword [ebp - 0x1c], eax
push edi
mov edi, dword [eax]
cmp dword [0x10082cf4], esi
jne 0x10010611
push 0x10082e78
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x10082cf4], 1
push 0x10082e78
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.1000fe00
mov edi, eax
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.1000fe00
mov ebx, eax
xorps xmm0, xmm0
push 0x50
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], ebx
push 0
push eax
movlpd qword [ebp - 0x78], xmm0
call fcn.100238b0
add esp, 0xc
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.10010520
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 5
jb 0x100108c9
mov edx, eax
mov ecx, edi
call fcn.100103a0
push dword [ebp - 0x6c]
mov ecx, edi
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.10010180
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100108c4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x40
push dword [ebp - 4]
mov dword [ebp - 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001085b
lea eax, [ebp - 8]
push eax
push 0x40
push 0x74
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001083a
mov eax, dword [ebp - 4]
lea edx, [esi + 0x2c]
xor ecx, ecx
test eax, eax
je 0x100106fe
mov ebx, dword [ebp - 4]
lea eax, [esi + 0x2c]
mov dword [ebp - 0x10], edi
sub edi, eax
mov al, byte [edi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
mov byte [esi + ecx + 0x4c], al
inc ecx
cmp ecx, ebx
jb 0x100106e3
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
lea edx, [eax + edi]
lea ecx, [esi + eax]
lea eax, [ecx + 0x31]
mov dword [ebp - 0x18], eax
cmp eax, edx
jbe 0x10010712
sub eax, edx
jmp 0x10010717
mov eax, edx
sub eax, dword [ebp - 0x18]
cmp eax, 0x7fff0000
ja 0x1001072c
lea eax, [ecx + 0x31]
mov byte [ecx + 0x2c], 0xe9
sub edx, eax
mov dword [ecx + 0x2d], edx
jmp 0x1001073a
lea eax, [ecx + 0x32]
mov word [ecx + 0x2c], 0x25ff
mov dword [ecx + 0x2e], eax
mov dword [eax], edx
cmp ebx, edi
jae 0x10010744
mov eax, edi
sub eax, ebx
jmp 0x10010748
mov eax, ebx
sub eax, edi
cmp eax, 0x7fff0000
jbe 0x100107dc
lea edx, [esi + 0xc]
mov ecx, edx
lea eax, [ecx + 5]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jbe 0x10010766
sub eax, ebx
jmp 0x1001076b
mov eax, ebx
sub eax, dword [ebp - 0x10]
cmp eax, 0x7fff0000
ja 0x10010782
mov eax, ebx
mov byte [ecx], 0xe9
sub eax, dword [ebp - 0x10]
mov dword [ecx + 1], eax
add ecx, 5
jmp 0x10010794
mov word [ecx], 0x25ff
lea eax, [ecx + 6]
mov dword [ecx + 2], eax
mov ecx, eax
mov dword [ecx], ebx
add ecx, 4
sub ecx, esi
sub ecx, 0xc
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea edx, [edi + 5]
lea ecx, [esi + 0xc]
cmp edx, ecx
jbe 0x100107b8
mov eax, edx
sub eax, ecx
jmp 0x100107bc
mov eax, ecx
sub eax, edx
cmp eax, 0x7fff0000
ja 0x100107cd
sub ecx, edx
mov byte [edi], 0xe9
mov dword [edi + 1], ecx
jmp 0x1001080d
lea eax, [edi + 6]
mov word [edi], 0x25ff
mov dword [edi + 2], eax
mov dword [eax], ecx
jmp 0x1001080d
lea ecx, [edi + 5]
cmp ecx, ebx
jbe 0x100107e9
mov eax, ecx
sub eax, ebx
jmp 0x100107ed
mov eax, ebx
sub eax, ecx
cmp eax, 0x7fff0000
ja 0x10010800
mov eax, ebx
mov byte [edi], 0xe9
sub eax, ecx
mov dword [edi + 1], eax
jmp 0x1001080d
lea eax, [edi + 6]
mov word [edi], 0x25ff
mov dword [edi + 2], eax
mov dword [eax], ebx
mov eax, dword [ebp - 4]
push eax
mov dword [esi + 4], eax
lea eax, [esi + 0x2c]
push eax
mov dword [esi], edi
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x74
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi], 0
je 0x1001086a
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x2c]
mov dword [ecx], eax
jmp 0x100108c4
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x10010877
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x70], eax
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x10010884
mov eax, dword [esi + 0x6c]
mov dword [ecx + 0x6c], eax
cmp dword [0x10082d00], esi
jne 0x10010894
mov eax, dword [esi + 0x70]
mov dword [0x10082d00], eax
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], 0
mov eax, dword [0x10082cfc]
mov dword [esi + 0x70], eax
mov eax, dword [0x10082cfc]
test eax, eax
je 0x100108b6
mov dword [eax + 0x6c], esi
dec dword [0x10082cf0]
mov dword [0x10082cfc], esi
xor esi, esi
call fcn.10010310
push 0x10082e78
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret