Function at 0x410f8b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push edi
mov dword [ebp - 0x20], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4552b0], eax
je 0x410fbf
mov eax, 0x10dd
jmp 0x4111a8
mov eax, dword [0x4552b4]
test eax, eax
jne 0x4111a8
test ebx, ebx
jne 0x410fd8
push 6
pop eax
jmp 0x4111a8
mov ecx, dword [ebx]
push esi
test ecx, ecx
jne 0x410fed
push 6
pop edi
mov dword [0x4552b4], edi
jmp 0x411165
mov esi, edi
mov ebx, edi
call fcn.00410b97
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call fcn.00410b97
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
jne 0x41101a
cmp dword [0x4552b8], ebx
jne 0x411162
jmp 0x411146
push 0x18
call fcn.00420995
mov ebx, eax
mov dword [ebp - 0x24], ebx
pop ecx
test ebx, ebx
jne 0x411033
push 8
pop edi
jmp 0x411146
mov ecx, dword [ebp - 0x14]
call fcn.0041091b
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x41102b
mov eax, dword [ebp - 0x14]
mov ebx, edi
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x18], eax
push ecx
push ecx
lea ecx, [ebx + esi]
mov dword [ebp - 0xc], edi
mov edx, eax
call fcn.004111ba
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0xc], edi
jne 0x411082
mov ecx, dword [ebp - 0x18]
mov ebx, eax
sub ebx, dword [ebp - 0x14]
call fcn.00410890
test eax, eax
jne 0x411082
mov eax, dword [ebp - 0x28]
cmp ebx, 5
jl 0x41104c
mov dword [ebp - 0x18], ebx
cmp ebx, 5
mov ebx, dword [ebp - 0x24]
jge 0x4110a2
cmp dword [0x4552b8], 0
push 9
pop edi
jne 0x41114c
jmp 0x411146
mov eax, dword [ebp - 0x18]
cmp eax, 0x12
jbe 0x4110b1
push 6
jmp 0x41102d
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add edx, eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
add esi, 0x17
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov byte [esi], al
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, edi
and dword [ebp - 8], eax
mov dword [ecx + 1], edx
add ecx, 5
mov edx, esi
sub edx, ecx
cmp ecx, esi
cmova edx, dword [ebp - 8]
test edx, edx
je 0x4110f3
mov byte [ecx], 0xcc
inc ecx
inc eax
cmp eax, edx
jb 0x4110ea
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41113b
mov ecx, esi
call fcn.00410b36
mov esi, eax
test esi, esi
je 0x41117d
mov eax, 0x6544
cmp word [esi + 0x1c], ax
je 0x41117d
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41116f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x1c]
mov edi, eax
mov dword [0x4552b4], edi
test esi, esi
je 0x411157
mov ecx, esi
call fcn.00410b15
test ebx, ebx
je 0x411162
push ebx
call fcn.00420949
pop ecx
mov ebx, dword [ebp - 0x20]
mov dword [0x45529c], ebx
mov eax, edi
jmp 0x4111a7
mov dword [esi + 0x1c], 0x6f746544
mov dword [esi + 0x20], 0x21737275
mov eax, dword [ebp - 0x20]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], edi
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [0x4552a8]
mov dword [ebx], eax
xor eax, eax
mov dword [0x4552a8], ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret 0xc