Function at 0x433a5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x513720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x40b616
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x28], ebx
test eax, eax
jne 0x433a86
push 0x57
pop eax
jmp 0x433cd2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x518530], eax
je 0x433a9e
mov eax, 0x10dd
jmp 0x433cd2
mov eax, dword [0x518534]
test eax, eax
jne 0x433cd2
test ebx, ebx
jne 0x433ab3
push 6
jmp 0x433a80
mov ecx, dword [ebx]
test ecx, ecx
jne 0x433acc
push 6
pop eax
mov dword [0x518534], eax
mov dword [0x518518], ebx
jmp 0x433cd2
push edi
mov ebx, esi
mov edi, esi
call fcn.00430959
mov ecx, 0x40b616
mov dword [ebp - 0x10], eax
call fcn.00430959
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x10]
jne 0x433afc
cmp dword [0x518538], ebx
jne 0x433cc7
jmp 0x433cab
push 0x18
call fcn.004b9c5d
mov edi, eax
mov dword [ebp - 0x2c], edi
pop ecx
test edi, edi
jne 0x433b15
push 8
pop esi
jmp 0x433cab
mov ecx, dword [ebp - 0x10]
call fcn.004307f5
mov ebx, eax
test ebx, ebx
je 0x433b0d
mov edi, dword [ebp - 0x10]
lea ecx, [ebx + 0x1e]
mov dword [ebx + 0x38], esi
mov edx, edi
mov dword [ebx + 0x3c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edx
push ecx
push ecx
push edx
mov ecx, eax
mov dword [ebp - 0xc], esi
call fcn.00434a09
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x24]
add eax, ecx
mov dword [ebp - 0x30], ecx
add edx, eax
sub ecx, edi
mov dword [ebp - 0x18], edx
mov al, cl
sub dl, bl
mov dword [ebp - 0x14], ecx
and al, 7
shl dl, 3
xor dl, al
mov eax, dword [ebp - 0x1c]
mov byte [ebx + eax + 0x38], dl
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 8
jae 0x433b9c
mov ecx, dword [ebp - 0x24]
call fcn.00430403
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x433b9c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp ecx, 5
jb 0x433b3a
mov edi, dword [ebp - 0x2c]
cmp ecx, 5
jae 0x433bd7
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x30]
mov ecx, edi
call fcn.0043045c
test eax, eax
je 0x433bc5
add edi, eax
mov ecx, edi
sub ecx, esi
mov dword [ebp - 0x14], ecx
cmp ecx, 5
jb 0x433baa
jmp 0x433bc8
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
push 0
pop esi
cmp ecx, 5
jb 0x433c9f
cmp dword [ebp - 0x1c], 8
ja 0x433c9f
mov eax, dword [ebp - 0x18]
lea edx, [ebx + 0x1e]
cmp eax, edx
jbe 0x433bec
int3
sub al, bl
mov byte [ebx + 0x36], cl
push ecx
push dword [ebp - 0x10]
mov byte [edx], al
lea eax, [ebx + 0x20]
push eax
call fcn.004bdce0
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x19
jbe 0x433c12
push 6
jmp 0x433b0f
movzx ecx, byte [ebx + 0x1e]
mov edx, dword [ebp - 0x10]
add ecx, ebx
add edx, eax
mov eax, dword [ebp - 0x20]
and dword [ebp - 0x20], 0
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], eax
lea eax, [ecx + 5]
sub edx, eax
mov byte [ecx], 0xe9
mov dword [ecx + 1], edx
mov eax, esi
add ecx, 5
lea edx, [ebx + 0x1e]
sub edx, ecx
cmp ecx, dword [ebp - 0x34]
cmova edx, dword [ebp - 0x20]
test edx, edx
je 0x433c53
mov byte [ecx], 0xcc
inc ecx
inc eax
cmp eax, edx
jb 0x433c4a
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x433c76
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x433cab
mov eax, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
mov dword [edi + 4], esi
mov dword [edi + 0x10], ebx
mov eax, dword [ebp - 8]
mov dword [edi + 0x14], eax
mov eax, dword [0x518528]
mov dword [edi], eax
xor eax, eax
mov dword [0x518528], edi
jmp 0x433cd1
cmp dword [0x518538], 0
push 9
pop esi
jne 0x433cb1
mov dword [0x518534], esi
test ebx, ebx
je 0x433cbc
mov ecx, ebx
call fcn.00430934
test edi, edi
je 0x433cc7
push edi
call fcn.004b9238
pop ecx
mov eax, dword [ebp - 0x28]
mov dword [0x518518], eax
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b923d
mov esp, ebp
pop ebp
ret 0xc