Function at 0x41106c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push edi
mov dword [ebp - 0x10], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x45eb98], eax
je 0x411096
mov eax, 0x10dd
jmp 0x411277
mov eax, dword [0x45eb94]
test eax, eax
jne 0x411277
test ebx, ebx
jne 0x4110af
push 6
pop eax
jmp 0x411277
mov ecx, dword [ebx]
push esi
test ecx, ecx
jne 0x4110c4
push 6
pop edi
mov dword [0x45eb94], edi
jmp 0x411234
mov dword [ebp - 4], edi
mov ebx, edi
call fcn.00410c0a
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x14], esi
call fcn.00410c0a
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x4110f3
cmp dword [0x45eb9c], ebx
jne 0x411231
jmp 0x41120f
push 0x18
call fcn.004321ef
mov ebx, eax
mov dword [ebp - 0x1c], ebx
pop ecx
test ebx, ebx
jne 0x41110c
push 8
pop edi
jmp 0x41120f
mov ecx, esi
call fcn.00410968
mov dword [ebp - 4], eax
test eax, eax
je 0x411104
mov ebx, edi
mov edx, esi
mov dword [ebp - 8], ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], edx
push ecx
push ecx
lea ecx, [ebx + eax]
mov dword [ebp - 0xc], edi
call fcn.0041127f
mov edx, eax
cmp dword [ebp - 0xc], edi
jne 0x411153
mov ecx, dword [ebp - 8]
mov ebx, edx
sub ebx, esi
call fcn.004108f2
test eax, eax
jne 0x411153
mov eax, dword [ebp - 4]
cmp ebx, 5
jl 0x411121
mov dword [ebp - 8], ebx
cmp ebx, 5
mov ebx, dword [ebp - 0x1c]
jge 0x411173
cmp dword [0x45eb9c], 0
push 9
pop edi
jne 0x411215
jmp 0x41120f
mov eax, dword [ebp - 8]
cmp eax, 0x12
jbe 0x41117f
push 6
jmp 0x411106
mov ecx, dword [ebp - 4]
lea edx, [eax + esi]
mov esi, dword [ebp - 0x20]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], esi
lea esi, [ecx + 0x17]
add ecx, eax
mov byte [esi], al
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, edi
and dword [ebp - 0x20], eax
mov dword [ecx + 1], edx
add ecx, 5
mov edx, esi
sub edx, ecx
cmp ecx, esi
cmova edx, dword [ebp - 0x20]
test edx, edx
je 0x4111bf
mov byte [ecx], 0xcc
inc ecx
inc eax
cmp eax, edx
jb 0x4111b6
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x40
push dword [ebp - 8]
mov dword [ebp - 0x18], edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x411207
mov ecx, esi
call fcn.00410ba9
mov esi, eax
test esi, esi
je 0x41124c
mov eax, 0x6544
cmp word [esi + 0x1c], ax
je 0x41124c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41123e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [0x45eb94], edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x411223
mov ecx, eax
call fcn.00410b83
test ebx, ebx
je 0x411231
push 0x18
push ebx
call fcn.00432227
pop ecx
pop ecx
mov ebx, dword [ebp - 0x10]
mov dword [0x45eb90], ebx
mov eax, edi
jmp 0x411276
mov dword [esi + 0x1c], 0x6f746544
mov dword [esi + 0x20], 0x21737275
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [0x45eb88]
mov dword [ebx], eax
xor eax, eax
mov dword [0x45eb88], ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc