Function at 0x503274
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
test ebx, ebx
js 0x503297
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x503290
mov edx, esp
mov dword [ebp - 0x68], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x503495
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x533864]
mov dword [0x5338fc], eax
mov eax, dword [ebp - 0x58]
imul dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
imul eax, dword [ebp - 0x40], 0xfe
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, 0x96
sub eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0xa
jne 0x5032d2
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0040a01c
mov eax, dword [0x5339d8]
call fcn.004071f4
mov dword [0x5339d8], eax
lea eax, [ebp - 0x64]
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 - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.0040a01c
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x50]
cmp eax, 0xcc
jge 0x503359
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x54]
call fcn.00502970
mov dword [0x533a28], eax
mov eax, dword [ebp - 0x38]
sub eax, 0x90
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
add eax, 0x3d
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x58]
imul dword [ebp - 0x48]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x48]
mov edx, 0x53386c
lea eax, [ebp - 0x4c]
call fcn.004f8b78
xor eax, eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 6
jge 0x5033d1
inc dword [ebp - 0x44]
mov eax, dword [0x5339c4]
sub eax, dword [0x5339b4]
mov edx, dword [0x533974]
sub edx, dword [0x5339b4]
cmp eax, edx
jle 0x5033c5
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 1
jge 0x5033cb
inc dword [ebp - 0x60]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x10]
call fcn.0040a01c
cmp dword [ebp - 0x60], 1
jl 0x5033af
jmp 0x5033cb
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x44], 6
jl 0x503386
cmp byte [ebp - 9], 0
je 0x503472
mov eax, dword [ebp - 0x14]
mov edx, 0x5034b8
call fcn.0040aba0
jne 0x5033f4
mov eax, dword [0x53395c]
mov dword [0x53386c], eax
mov eax, dword [0x533904]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [0x5338cc]
push eax
mov eax, dword [0x533974]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x5338b4]
mov eax, dword [0x5338e4]
call fcn.004fac14
mov dword [0x533a30], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.0040a01c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
call fcn.004fd838
mov dword [0x533a08], eax
mov eax, dword [ebp - 0x18]
sub eax, 0x4d
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, 5
call fcn.00406fb0
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x64]
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 - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50349c
lea eax, [ebp - 0x6c]
call fcn.00409bf4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409c54
ret