Function at 0x1002c349
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ebx
test eax, eax
jne 0x1002c369
push 0x57
pop eax
jmp 0x1002c5f2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x102a8c90], eax
je 0x1002c381
mov eax, 0x10dd
jmp 0x1002c5f2
mov eax, dword [0x102a8c8c]
test eax, eax
jne 0x1002c5f2
test ebx, ebx
jne 0x1002c396
push 6
jmp 0x1002c363
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1002c3af
push 6
pop eax
mov dword [0x102a8c8c], eax
mov dword [0x102a8c98], ebx
jmp 0x1002c5f2
push esi
mov esi, edi
mov ebx, edi
call fcn.1002bf0e
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
call fcn.1002bf0e
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x14]
jne 0x1002c3dd
cmp dword [0x102a845c], ebx
jne 0x1002c5e7
jmp 0x1002c5c8
push 0x18
call fcn.100e04ba
mov esi, dword [ebp - 0x14]
mov ebx, eax
pop ecx
mov ecx, esi
call fcn.1002bdf0
mov dword [ebp - 8], eax
test eax, eax
jne 0x1002c3ff
push 8
jmp 0x1002c5c4
mov edx, eax
mov dword [eax + 0x38], edi
mov dword [eax + 0x3c], edi
mov ecx, esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
push eax
push ecx
push ecx
mov ecx, edx
mov dword [ebp - 0x1c], edi
call fcn.1003b646
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x1002c5c2
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
add eax, ecx
add edx, eax
mov eax, ecx
sub eax, esi
mov dword [ebp - 0x10], edx
mov cl, dl
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
and al, 7
sub cl, dl
mov byte [ebp - 1], cl
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x18]
mov byte [edx + eax + 0x38], cl
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 8
jae 0x1002c4cd
mov ecx, dword [ebp - 0x20]
mov al, byte [ecx]
cmp al, 0xeb
je 0x1002c4cd
cmp al, 0xe9
je 0x1002c4cd
cmp al, 0xe0
je 0x1002c4cd
cmp al, 0xc2
je 0x1002c4cd
cmp al, 0xc3
je 0x1002c4cd
cmp al, 0xcc
je 0x1002c4cd
cmp al, 0xf3
jne 0x1002c48e
cmp byte [ecx + 1], 0xc3
je 0x1002c4cd
cmp al, 0xff
jne 0x1002c498
cmp byte [ecx + 1], 0x25
je 0x1002c4cd
cmp al, 0x26
je 0x1002c4b0
cmp al, 0x2e
je 0x1002c4b0
cmp al, 0x36
je 0x1002c4b0
cmp al, 0x3e
je 0x1002c4b0
cmp al, 0x64
je 0x1002c4b0
cmp al, 0x65
jne 0x1002c4bc
cmp byte [ecx + 1], 0xff
jne 0x1002c4bc
cmp byte [ecx + 2], 0x25
je 0x1002c4cd
cmp dword [ebp - 0xc], 5
jae 0x1002c4fe
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
jmp 0x1002c40f
cmp dword [ebp - 0xc], 5
jae 0x1002c4fe
mov ecx, dword [ebp - 0x24]
call fcn.1002baae
test eax, eax
je 0x1002c4ef
add ecx, eax
mov eax, ecx
sub eax, esi
mov dword [ebp - 0xc], eax
cmp eax, 5
jb 0x1002c4d6
jmp 0x1002c4f2
mov eax, dword [ebp - 0xc]
cmp eax, 5
jb 0x1002c5b1
mov edx, dword [ebp - 8]
cmp dword [ebp - 0x18], 8
ja 0x1002c5b1
lea ecx, [edx + 0x1e]
cmp dword [ebp - 0x10], ecx
jbe 0x1002c511
int3
mov al, byte [ebp - 1]
mov byte [ecx], al
mov eax, dword [ebp - 0xc]
push eax
mov byte [edx + 0x36], al
lea eax, [edx + 0x20]
push esi
push eax
call fcn.100e1b00
mov eax, dword [ebp - 0xc]
add esp, 0xc
cmp eax, 0x19
jbe 0x1002c539
push 6
jmp 0x1002c5c4
mov ecx, dword [ebp - 0x30]
add esi, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x44], ecx
lea edx, [eax + 0x1e]
movzx ecx, byte [edx]
add ecx, eax
mov dword [eax + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.1002ba0e
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edi
push eax
push 0x40
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002c585
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1002c5c5
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], edi
mov dword [ebx + 0x10], esi
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [0x102a8ca4]
mov dword [ebx], eax
xor eax, eax
mov dword [0x102a8ca4], ebx
jmp 0x1002c5f1
cmp dword [0x102a845c], 0
mov esi, dword [ebp - 8]
push 9
pop edi
jne 0x1002c5ce
jmp 0x1002c5c8
push 9
pop edi
mov esi, dword [ebp - 8]
mov dword [0x102a8c8c], edi
test esi, esi
je 0x1002c5d9
mov ecx, esi
call fcn.1002bee9
test ebx, ebx
je 0x1002c5e7
push 0x18
push ebx
call fcn.100e04ea
pop ecx
pop ecx
mov eax, dword [ebp - 0x2c]
mov dword [0x102a8c98], eax
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 0xc