Function at 0x47dad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x477f90
xor esi, esi
test eax, eax
jne 0x47db00
lea eax, [esi + 0x57]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x518e1c], eax
je 0x47db24
mov eax, 0x10dd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x518e18]
test eax, eax
jne 0x47dd94
mov ecx, dword [0x518f28]
test ecx, ecx
jne 0x47db63
mov dword [0x518e18], 6
lea eax, [ecx + 6]
mov dword [0x518dfc], 0x518f28
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
mov dword [ebp - 0x18], esi
xor edi, edi
call fcn.0047cef0
mov ebx, eax
mov ecx, 0x477f90
mov dword [ebp - 0x10], ebx
call fcn.0047cef0
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x47db96
cmp dword [0x518e14], esi
jne 0x47dd86
jmp 0x47dd65
push 0x18
call fcn.0048cdd1
mov edi, eax
add esp, 4
test edi, edi
jne 0x47dbae
lea esi, [eax + 8]
jmp 0x47dd65
mov ecx, ebx
call fcn.0047d4a0
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x47dbc6
lea esi, [eax + 8]
jmp 0x47dd65
mov esi, dword [ebp - 0x10]
lea eax, [ebx + 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movq qword [eax], xmm0
mov edx, ebx
lea eax, [ebx + 0x1e]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x47dbf0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push ecx
mov ebx, esi
mov ecx, edx
push esi
mov dword [ebp - 0x28], ebx
call fcn.0047eaa0
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebp - 0xc]
sub eax, ebx
mov ebx, esi
sub ebx, dword [ebp - 0x10]
add eax, esi
add ecx, eax
mov al, bl
mov dl, cl
mov dword [ebp - 0x14], ecx
sub dl, byte [ebp - 0x18]
and al, 7
mov ecx, dword [ebp - 0x20]
shl dl, 3
xor dl, al
mov eax, dword [ebp - 0x1c]
mov byte [ecx + eax], dl
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 8
jae 0x47dc55
mov ecx, dword [ebp - 0x28]
call fcn.0047cff0
test eax, eax
jne 0x47dc55
mov edx, dword [ebp - 0x14]
cmp ebx, 5
jb 0x47dbf0
jmp 0x47dc8a
cmp ebx, 5
jae 0x47dc87
lea ebx, [ebx]
mov ecx, esi
call fcn.0047d050
test eax, eax
je 0x47dc7e
mov ecx, dword [ebp - 0x10]
add esi, eax
mov ebx, esi
sub ebx, ecx
cmp ebx, 5
jb 0x47dc60
mov edx, dword [ebp - 0x14]
jmp 0x47dc8d
cmp ebx, 5
jb 0x47dd57
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], 8
ja 0x47dd57
mov esi, dword [ebp - 0x24]
cmp edx, esi
jbe 0x47dc9f
int3
mov eax, dword [ebp - 0x18]
sub dl, al
push ebx
push ecx
mov byte [esi], dl
mov byte [eax + 0x36], bl
add eax, 0x20
push eax
call fcn.0048f670
add esp, 0xc
cmp ebx, 0x19
jbe 0x47dcc6
mov esi, 6
jmp 0x47dd65
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 0x1e]
mov esi, dword [ebp - 0x10]
add esi, ebx
mov dword [eax + 0x44], ecx
movzx ecx, byte [edx]
add ecx, eax
mov dword [eax + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.0047cec0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push ebx
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x47dd18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x47dd65
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 4], 0
mov dword [edi + 8], 0x518f28
mov eax, dword [ebp - 8]
mov dword [edi + 0x14], eax
mov eax, dword [0x518e10]
mov dword [edi], eax
xor eax, eax
mov dword [0x518e10], edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x518e14], 0
mov esi, 9
jne 0x47dd6b
mov dword [0x518e18], esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47dd79
mov ecx, eax
call fcn.0047d5b0
test edi, edi
je 0x47dd86
push edi
call fcn.0048b08b
add esp, 4
pop edi
mov dword [0x518dfc], 0x518f28
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc