Function at 0x1008c450
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x24]
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 8], esi
je 0x1008c465
mov dword [eax], esi
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x1008c46f
mov dword [eax], esi
mov edi, dword [esp + 0x34]
cmp edi, esi
je 0x1008c479
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101c83f8], eax
je 0x1008c494
pop edi
mov eax, 0x10dd
pop esi
add esp, 0x18
ret 0x14
mov eax, dword [0x101c83fc]
cmp eax, esi
jne 0x1008c7a4
mov ecx, dword [esp + 0x24]
cmp ecx, esi
jne 0x1008c4b6
pop edi
mov eax, 6
pop esi
add esp, 0x18
ret 0x14
push ebp
mov ebp, dword [ecx]
cmp ebp, esi
jne 0x1008c4d6
pop ebp
mov eax, 6
pop edi
mov dword [0x101c83fc], eax
mov dword [0x101c8400], ecx
pop esi
add esp, 0x18
ret 0x14
cmp byte [ebp], 0xff
push ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov bl, 0x25
jne 0x1008c4fe
cmp byte [ebp + 1], bl
jne 0x1008c4fe
mov esi, dword [ebp + 2]
mov edx, esi
mov ecx, ebp
call fcn.1008b9f0
test al, al
je 0x1008c4fe
mov ebp, dword [esi]
cmp byte [ebp], 0xeb
jne 0x1008c519
movsx eax, byte [ebp + 1]
lea ebp, [eax + ebp + 2]
cmp byte [ebp], 0xe9
jne 0x1008c519
mov ecx, dword [ebp + 1]
lea ebp, [ecx + ebp + 5]
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov esi, ecx
jne 0x1008c52b
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x1008c56b
cmp byte [ecx], 0xff
jne 0x1008c549
cmp byte [ecx + 1], bl
jne 0x1008c549
mov edi, dword [ecx + 2]
mov edx, edi
call fcn.1008b9f0
test al, al
je 0x1008c545
mov esi, dword [edi]
mov edi, dword [esp + 0x3c]
cmp byte [esi], 0xeb
jne 0x1008c565
movsx edx, byte [esi + 1]
mov al, byte [esi + edx + 2]
cmp al, 0xe9
lea esi, [esi + edx + 2]
jne 0x1008c565
mov eax, dword [esi + 1]
lea esi, [esi + eax + 5]
mov dword [esp + 0x30], esi
mov eax, esi
cmp eax, ebp
jne 0x1008c581
mov eax, dword [0x101c83f0]
test eax, eax
jne 0x1008c794
jmp 0x1008c75f
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1008c58b
mov dword [ecx], ebp
test edi, edi
je 0x1008c591
mov dword [edi], eax
push 0x18
call fcn.1015294a
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x1008c5b0
mov dword [esp + 0x10], 8
jmp 0x1008c75f
mov eax, ebp
call fcn.1008bd60
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1008c5cc
mov dword [esp + 0x10], 8
jmp 0x1008c75f
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1008c5d6
mov dword [ecx], eax
lea ecx, [eax + 0x38]
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [ecx], edx
mov ebx, eax
add eax, 0x1e
mov dword [ecx + 4], edx
mov esi, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
jmp 0x1008c600
mov ebx, dword [esp + 0x3c]
lea esp, [esp]
lea eax, [esp + 0x38]
push eax
push 0
push esi
lea ecx, [esp + 0x24]
push ecx
push ebx
mov edi, esi
mov dword [esp + 0x4c], 0
call fcn.1008cb00
mov edx, dword [esp + 0x38]
mov esi, eax
sub edx, edi
add edx, esi
add ebx, edx
mov dl, byte [esp + 0x14]
mov dword [esp + 0x3c], ebx
mov al, byte [esp + 0x3c]
mov ebx, esi
sub al, dl
mov edx, dword [esp + 0x24]
sub ebx, ebp
mov cl, bl
shl al, 3
and cl, 7
xor al, cl
push edi
mov byte [edx], al
call fcn.1008baf0
add esp, 4
test eax, eax
jne 0x1008c65f
cmp ebx, 5
jb 0x1008c5f5
jmp 0x1008c67e
cmp ebx, 5
jae 0x1008c67e
cmp byte [esi], 0x90
jne 0x1008c675
inc esi
mov ebx, esi
sub ebx, ebp
cmp ebx, 5
jb 0x1008c664
jmp 0x1008c67e
cmp ebx, 5
jb 0x1008c74e
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x18]
jbe 0x1008c689
int3
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub al, dl
mov byte [ecx], al
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov byte [edx + 0x36], bl
mov esi, ebp
lea edi, [edx + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0x19
rep movsb byte es:[edi], byte [esi]
jbe 0x1008c6bf
mov dword [esp + 0x10], 6
jmp 0x1008c75f
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
mov ecx, dword [esp + 0x30]
add eax, edx
mov dword [edx + 0x44], ecx
lea ecx, [eax + 5]
lea esi, [ebx + ebp]
mov dword [edx + 0x40], esi
mov byte [eax], 0xe9
inc eax
sub esi, ecx
mov dword [eax], esi
mov ecx, dword [esp + 0x18]
push ecx
add eax, 4
push eax
call fcn.1008bab0
add esp, 8
lea edx, [esp + 0x20]
push edx
push 0x40
push ebx
xor esi, esi
push ebp
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1008c716
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x1008c75f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
pop ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 4], esi
mov dword [eax + 0x10], edx
mov edx, dword [0x101c8408]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1c]
pop ebp
pop edi
mov dword [eax + 0x14], ecx
mov dword [eax], edx
mov dword [0x101c8408], eax
xor eax, eax
pop esi
add esp, 0x18
ret 0x14
mov eax, dword [0x101c83f0]
test eax, eax
mov dword [esp + 0x10], 9
jne 0x1008c768
mov eax, dword [esp + 0x10]
mov dword [0x101c83fc], eax
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1008c783
call fcn.1008bee0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1008c783
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1008c794
push eax
call fcn.10152975
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop ebx
mov dword [0x101c8400], ecx
pop ebp
pop edi
pop esi
add esp, 0x18
ret 0x14