Function at 0x45e942
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x45e959
mov dword [eax], edi
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x45e962
mov dword [ebx], edi
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45e96b
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x549548], eax
je 0x45e983
mov eax, 0x10dd
jmp 0x45ebb8
mov eax, dword [0x54954c]
cmp eax, edi
jne 0x45ebb8
mov ecx, dword [ebp + 8]
cmp ecx, edi
jne 0x45e99f
push 6
pop eax
jmp 0x45ebb8
mov eax, dword [ecx]
cmp eax, edi
jne 0x45e9b8
push 6
pop eax
mov dword [0x54954c], eax
mov dword [0x549550], ecx
jmp 0x45ebb8
push edi
push eax
mov dword [ebp + 0x14], edi
mov dword [ebp - 8], edi
call fcn.0045e517
push 0
push dword [ebp + 0xc]
mov edi, eax
call fcn.0045e517
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x45e9ea
cmp dword [0x549540], 0
jne 0x45ebad
jmp 0x45eb80
test ebx, ebx
je 0x45e9f0
mov dword [ebx], edi
test esi, esi
je 0x45e9f6
mov dword [esi], eax
push 0x18
call fcn.004de4e4
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x45ea11
mov dword [ebp - 4], 8
jmp 0x45eb80
mov eax, edi
call fcn.0045e2ff
mov esi, eax
mov dword [ebp + 0x14], esi
test esi, esi
je 0x45ea05
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45ea2a
mov dword [eax], esi
push 8
lea eax, [esi + 0x38]
push 0
push eax
mov dword [ebp - 0x1c], eax
call fcn.004de430
add esp, 0xc
mov dword [ebp - 4], esi
add esi, 0x1e
mov eax, edi
mov dword [ebp - 0xc], esi
jmp 0x45ea4d
mov eax, dword [ebp + 0x18]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.0045f248
push dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov dword [ebp + 0x18], ebx
add eax, ebx
add dword [ebp - 4], eax
mov al, byte [ebp - 4]
sub al, byte [ebp + 0x14]
sub ebx, edi
mov cl, bl
and cl, 7
shl al, 3
xor al, cl
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], al
call fcn.0045e0ed
pop ecx
test eax, eax
jne 0x45eaa0
cmp ebx, 5
jb 0x45ea4a
cmp ebx, 5
jae 0x45eac3
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0x90
jne 0x45eaba
inc dword [ebp + 0x18]
mov ebx, dword [ebp + 0x18]
sub ebx, edi
cmp ebx, 5
jb 0x45eaa5
cmp ebx, 5
jb 0x45eb70
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x45eacc
int3
mov ecx, dword [ebp + 0x14]
sub al, cl
push ebx
mov byte [ecx + 0x36], bl
add ecx, 0x20
push edi
push ecx
mov byte [esi], al
call fcn.004ddd50
add esp, 0xc
cmp ebx, 0x19
jbe 0x45eaf5
mov dword [ebp - 4], 6
jmp 0x45eb80
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x44], eax
movzx eax, byte [esi]
add eax, edx
lea ecx, [ebx + edi]
mov dword [edx + 0x40], ecx
lea edx, [eax + 5]
mov byte [eax], 0xe9
sub ecx, edx
mov dword [eax + 1], ecx
push dword [ebp - 0xc]
add eax, 5
push eax
call fcn.0045e04e
and dword [ebp - 0x18], 0
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x45eb43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x45eb80
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x549558]
mov dword [eax], ecx
mov dword [0x549558], eax
xor eax, eax
jmp 0x45ebb8
cmp dword [0x549540], 0
mov dword [ebp - 4], 9
jne 0x45eb88
mov eax, dword [ebp - 4]
mov dword [0x54954c], eax
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x45eb9e
call fcn.0045e475
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x45eb9e
and dword [eax], 0
cmp dword [ebp - 8], 0
je 0x45ebad
push dword [ebp - 8]
call fcn.004ddae9
pop ecx
mov eax, dword [ebp + 8]
mov dword [0x549550], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14