Function at 0x101353f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150a87
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x101fe1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov ebx, ecx
mov dword [ebp - 0x30], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10207430], eax
je 0x1013543a
mov eax, 0x10dd
jmp 0x10135650
mov eax, dword [0x10207434]
test eax, eax
jne 0x10135650
test ebx, ebx
jne 0x10135453
push 6
pop eax
jmp 0x10135650
mov ecx, dword [ebx]
test ecx, ecx
jne 0x1013546c
push 6
pop eax
mov dword [0x10207434], eax
mov dword [0x10207428], ebx
jmp 0x10135650
xor ebx, ebx
xor edi, edi
call fcn.1013603d
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
call fcn.1013603d
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x14]
jne 0x10135493
cmp dword [0x10207418], ebx
jmp 0x10135611
push 0x18
pop ecx
call fcn.1002d160
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x101354b7
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.10135d07
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x101354bf
push 8
pop esi
jmp 0x10135613
and dword [ebx + 0x38], 0
mov eax, esi
and dword [ebx + 0x3c], 0
mov ecx, ebx
mov dword [ebp - 0x1c], ecx
mov edi, eax
jmp 0x101354d8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
mov esi, eax
call fcn.10136410
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x20]
sub eax, esi
mov dword [ebp - 0x24], ecx
add eax, ecx
sub ecx, edi
add edx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dh, dl
sub dh, bl
mov dl, dh
mov byte [ebp - 0xd], dh
shl dl, 3
mov al, dl
xor al, cl
mov ecx, esi
and al, 7
xor al, dl
mov byte [ebx + 0x38], al
call fcn.10135e7b
mov ecx, dword [ebp - 0x18]
test eax, eax
jne 0x1013552c
cmp ecx, 5
jb 0x101354d2
mov edi, dword [ebp - 0x28]
cmp ecx, 5
jae 0x10135567
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
xor ebx, ebx
cmp byte [edx], 0x90
sete bl
mov dword [ebp - 0x24], ebx
jne 0x10135552
add edx, ebx
mov ecx, edx
sub ecx, edi
cmp ecx, 5
jb 0x1013553a
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x28]
mov dh, byte [ebp - 0xd]
mov dword [ebp - 0x18], ecx
cmp ecx, 5
jb 0x10135607
lea eax, [ebx + 0x1e]
cmp dword [ebp - 0x1c], eax
jbe 0x10135570
int3
mov esi, dword [ebp - 0x14]
push ecx
mov byte [eax], dh
lea eax, [ebx + 0x20]
push esi
push eax
mov byte [ebx + 0x36], cl
call fcn.1003529d
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp eax, 0x19
jbe 0x10135595
push 6
jmp 0x101354b9
lea edx, [ebx + 0x1e]
add esi, eax
movzx ecx, byte [edx]
mov eax, dword [ebp - 0x38]
add ecx, ebx
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.10135f0c
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
push 0x40
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x101355e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10135613
mov eax, dword [ebp - 0x30]
and dword [edi + 4], 0
mov dword [edi + 8], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], esi
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x14], eax
mov eax, dword [0x10207414]
mov dword [edi], eax
xor eax, eax
mov dword [0x10207414], edi
jmp 0x10135650
cmp dword [0x10207418], 0
push 9
pop esi
jne 0x10135619
mov dword [0x10207434], esi
test ebx, ebx
je 0x1013563b
push 0x48
push 0
push ebx
call fcn.10035153
mov ecx, ebx
add esp, 0xc
and ecx, 0xffff0000
mov eax, dword [ecx + 8]
mov dword [ebx + 0x40], eax
mov dword [ecx + 8], ebx
test edi, edi
je 0x10135646
push edi
call fcn.1002b486
pop ecx
mov eax, dword [ebp - 0x30]
mov dword [0x10207428], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc