Function at 0x50258c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5028e6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jge 0x5026f8
inc dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x34], eax
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, 0x502904
call fcn.0040ade8
cmp eax, 0x6e
jge 0x502619
mov eax, dword [ebp - 0x20]
sub eax, 0x95
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jge 0x502600
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x50260a
mov eax, dword [0x533a08]
mov dword [0x53397c], eax
mov eax, dword [0x5338e4]
sub eax, 6
mov dword [0x533a28], eax
jmp 0x502630
mov eax, dword [0x533894]
mov dword [0x53388c], eax
mov eax, dword [0x53388c]
add eax, 4
mov dword [0x5338dc], eax
mov eax, dword [0x53396c]
mov dword [0x533974], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.0040aba0
jne 0x502665
mov eax, dword [0x5339e0]
cmp eax, dword [0x533964]
jle 0x50266f
mov eax, dword [0x533864]
add eax, 0xc7
mov dword [0x533874], eax
jmp 0x50266f
mov eax, dword [0x533a00]
mov dword [0x5338d4], eax
inc dword [ebp - 0x34]
cmp dword [ebp - 0x34], 0xa
jne 0x5025c8
mov eax, dword [0x533a40]
add eax, 0xf5
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x3c]
call fcn.0040762c
mov dword [0x533984], eax
mov eax, dword [0x533a38]
sub eax, 0x59
mov dword [0x5339f8], eax
lea eax, [ebp - 0x10]
mov edx, 0x502934
call fcn.0040a01c
mov eax, dword [0x5338c4]
mov dword [0x533a38], eax
mov eax, dword [0x533a30]
mov dword [0x53385c], eax
mov eax, dword [0x53385c]
cmp eax, dword [0x533a38]
jle 0x5026de
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.0040a01c
jmp 0x5026ee
mov eax, dword [0x53386c]
imul dword [0x5338b4]
mov dword [0x5338ec], eax
cmp dword [ebp - 0x30], 1
jl 0x5025c0
lea eax, [ebp - 0x10]
mov edx, 0x502954
call fcn.0040a01c
mov eax, dword [0x53393c]
mov dword [0x5339f8], eax
mov eax, dword [0x533984]
add eax, 4
mov dword [0x533a48], eax
mov eax, dword [0x5339e0]
add eax, 0x18
mov dword [0x533894], eax
lea eax, [ebp - 0x38]
push eax
push 0x40
push 5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
mov eax, dword [ebp - 0x1c]
sub eax, 0x13
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [0x5339c4]
sub eax, dword [0x5338c4]
cmp eax, dword [0x5339c4]
jge 0x502796
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
cmp eax, 0x4c
jge 0x50279f
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x50279f
inc dword [ebp - 0x34]
mov eax, dword [0x53387c]
call fcn.004071f4
mov dword [0x53387c], eax
jmp 0x50279f
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, 0x3c
sub eax, dword [0x53397c]
mov dword [0x533984], eax
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0xf
jne 0x502751
mov eax, dword [0x5339f8]
call fcn.004071f4
mov dword [0x5339f8], eax
mov eax, dword [0x53387c]
cmp eax, dword [0x5339f8]
jge 0x50281f
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x5339d0]
mov dword [0x533a50], eax
mov eax, dword [0x53387c]
cmp eax, dword [0x533a50]
jle 0x502807
lea ecx, [ebp - 0x18]
mov edx, 0x53387c
lea eax, [ebp - 0x1c]
call fcn.004ebb6c
mov dword [0x5339d8], eax
jmp 0x502816
mov eax, dword [0x53394c]
sub eax, 0xce
mov dword [0x5338fc], eax
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0x5027d9
lea ecx, [ebp - 0x18]
mov edx, 0x5338a4
lea eax, [ebp - 0x34]
call fcn.004fb7d8
mov dword [0x5338c4], eax
mov eax, dword [0x533a38]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x533874]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x53385c]
mov eax, dword [ebp - 0x28]
call fcn.004fe4cc
mov dword [0x53394c], eax
cmp byte [ebp - 0xa], 0
je 0x5028d0
mov eax, dword [ebp - 0x34]
imul dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x53396c]
mov dword [0x5338dc], eax
mov eax, dword [ebp - 0x24]
add eax, eax
lea eax, [eax + eax*2]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.0040a01c
mov eax, dword [0x533934]
add eax, 0x31
cmp eax, dword [0x5339c4]
jge 0x5028a4
mov eax, 0x8e
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
lea eax, [ebp - 9]
mov ecx, 5
call fcn.00406fb0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x38]
push eax
push 5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5028ed
lea eax, [ebp - 0x10]
call fcn.00409bf4
ret