Function at 0x45e314
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push edi
mov dword [ebp - 0x14], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x52f3c0], eax
je 0x45e33e
mov eax, 0x10dd
jmp 0x45e527
mov eax, dword [0x52f3c4]
test eax, eax
jne 0x45e527
test ebx, ebx
jne 0x45e357
push 6
pop eax
jmp 0x45e527
mov ecx, dword [ebx]
push esi
test ecx, ecx
jne 0x45e36c
push 6
pop edi
mov dword [0x52f3c4], edi
jmp 0x45e4e4
mov esi, edi
mov ebx, edi
call fcn.0045e90c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.0045e90c
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 4]
jne 0x45e399
cmp dword [0x52f3c8], ebx
jne 0x45e4e1
jmp 0x45e4c5
push 0x18
call fcn.004387c2
mov ebx, eax
mov dword [ebp - 0x20], ebx
pop ecx
test ebx, ebx
jne 0x45e3b2
push 8
pop edi
jmp 0x45e4c5
mov ecx, dword [ebp - 4]
call fcn.0045e9cc
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x45e3aa
mov eax, dword [ebp - 4]
mov ebx, edi
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
push ecx
push ecx
lea ecx, [ebx + esi]
mov dword [ebp - 0x10], edi
mov edx, eax
call fcn.0045f003
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], edi
jne 0x45e401
mov ecx, dword [ebp - 0xc]
mov ebx, eax
sub ebx, dword [ebp - 4]
call fcn.0042658e
test eax, eax
jne 0x45e401
mov eax, dword [ebp - 0x1c]
cmp ebx, 5
jl 0x45e3cb
mov dword [ebp - 0xc], ebx
cmp ebx, 5
mov ebx, dword [ebp - 0x20]
jge 0x45e421
cmp dword [0x52f3c8], 0
push 9
pop edi
jne 0x45e4cb
jmp 0x45e4c5
mov eax, dword [ebp - 0xc]
cmp eax, 0x12
jbe 0x45e430
push 6
jmp 0x45e3ac
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
add edx, eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
add esi, 0x17
mov ecx, dword [ebp - 8]
add ecx, eax
mov byte [esi], al
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, edi
and dword [ebp - 0x24], eax
mov dword [ecx + 1], edx
add ecx, 5
mov edx, esi
sub edx, ecx
cmp ecx, esi
cmova edx, dword [ebp - 0x24]
test edx, edx
je 0x45e472
mov byte [ecx], 0xcc
inc ecx
inc eax
cmp eax, edx
jb 0x45e469
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push 0x40
push dword [ebp - 0xc]
mov dword [ebp - 0x18], edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x45e4ba
mov ecx, esi
call fcn.0045e94c
mov esi, eax
test esi, esi
je 0x45e4fc
mov eax, 0x6544
cmp word [esi + 0x1c], ax
je 0x45e4fc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push 0x40
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x45e4ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 8]
mov edi, eax
mov dword [0x52f3c4], edi
test esi, esi
je 0x45e4d6
mov ecx, esi
call fcn.0045e9a7
test ebx, ebx
je 0x45e4e1
push ebx
call fcn.00435bbf
pop ecx
mov ebx, dword [ebp - 0x14]
mov dword [0x52f3ac], ebx
mov eax, edi
jmp 0x45e526
mov dword [esi + 0x1c], 0x6f746544
mov dword [esi + 0x20], 0x21737275
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [0x52f3b8]
mov dword [ebx], eax
xor eax, eax
mov dword [0x52f3b8], ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc