Function at 0x10001990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001c000], eax
je 0x100019bd
pop esi
mov eax, 0x10dd
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1001c004]
test eax, eax
jne 0x10001bc4
test esi, esi
je 0x100019e4
mov ecx, dword [esi]
test ecx, ecx
jne 0x100019f1
mov dword [0x1001c004], 6
mov dword [0x1001bfec], esi
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
xor edi, edi
xor esi, esi
call fcn.10001400
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.10001400
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 8]
jne 0x10001a1f
cmp dword [0x1001c008], ebx
jne 0x10001b77
jmp 0x10001b43
push 0x18
call fcn.10002677
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x10001a3c
lea ebx, [eax + 8]
mov esi, eax
jmp 0x10001b43
mov ebx, dword [ebp - 8]
mov ecx, ebx
call fcn.10001140
mov edi, eax
test edi, edi
jne 0x10001a54
lea ebx, [eax + 8]
jmp 0x10001b40
mov esi, ebx
xor ebx, ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], esi
push eax
push ecx
lea ecx, [ebx + edi]
mov dword [ebp - 0xc], 0
mov edx, esi
call fcn.10001cf0
cmp dword [ebp - 0xc], 0
mov esi, eax
jne 0x10001a9e
mov ecx, dword [ebp - 0x18]
mov ebx, esi
sub ebx, dword [ebp - 8]
call fcn.100010f0
test eax, eax
jne 0x10001a9e
cmp ebx, 5
jl 0x10001a58
cmp ebx, 0x12
jbe 0x10001abd
mov ebx, 6
jmp 0x10001b40
cmp ebx, 5
jge 0x10001a8f
cmp dword [0x1001c008], 0
mov ebx, 9
mov esi, dword [ebp - 4]
jne 0x10001b49
jmp 0x10001b43
mov esi, dword [ebp - 8]
lea ecx, [ebx + edi]
mov eax, dword [ebp - 0x1c]
lea edx, [edi + 0x17]
mov dword [edi + 0x1c], eax
add esi, ebx
mov dword [edi + 0x18], esi
lea eax, [ecx + 5]
mov byte [edx], bl
sub esi, eax
mov byte [ecx], 0xe9
mov dword [ecx + 1], esi
add ecx, 5
call fcn.100010c0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x40
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10001b38
mov ecx, ebx
call fcn.10001350
mov esi, eax
test esi, esi
je 0x10001b98
mov eax, 0x6544
cmp word [esi + 0x1c], ax
je 0x10001b98
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, dword [ebp - 4]
mov dword [0x1001c004], ebx
test edi, edi
je 0x10001b6a
mov ecx, edi
xorps xmm0, xmm0
and ecx, 0xffff0000
movdqu xmmword [edi], xmm0
movdqu xmmword [edi + 0x10], xmm0
mov eax, dword [ecx + 8]
mov dword [edi + 0x18], eax
mov dword [ecx + 8], edi
test esi, esi
je 0x10001b77
push esi
call fcn.1000264c
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
mov dword [0x1001bfec], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esi + 0x1c], 0x6f746544
mov dword [esi + 0x20], 0x21737275
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], ebx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [0x1001bff8]
mov dword [ecx], eax
xor eax, eax
mov dword [0x1001bff8], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc