Function at 0x100522e6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 0x10052626
call fcn.100521ca
mov ebx, eax
xor ecx, ecx
mov edx, 0x10052642
mov eax, ebx
call fcn.1003d146
mov edi, eax
xor ecx, ecx
mov edx, 0x10052656
mov eax, ebx
call fcn.1003d146
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov edx, 0x10052676
mov eax, ebx
call fcn.1003d146
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov edx, 0x1005268a
mov eax, ebx
call fcn.1003d146
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov edx, 0x100526aa
mov eax, ebx
call fcn.1003d146
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov edx, 0x100526c6
mov eax, ebx
call fcn.1003d146
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov edx, 0x100526ea
mov eax, ebx
call fcn.1003d146
mov dword [ebp - 0x2c], eax
push esi
push 0x4c3
call fcn.10041ffe
mov ebx, eax
test ebx, ebx
je 0x10052616
test edi, edi
je 0x10052604
cmp dword [ebp - 0x18], 0
je 0x10052604
cmp dword [ebp - 0x1c], 0
je 0x10052604
mov word [ebp - 0x2b9], 0xb848
mov eax, edi
xor edx, edx
mov dword [ebp - 0x2b7], eax
mov dword [ebp - 0x2b3], edx
mov byte [ebp - 0x2af], 0x50
mov byte [ebp - 0x2ae], 0x51
mov byte [ebp - 0x2ad], 0x52
mov word [ebp - 0x2ac], 0x5041
mov word [ebp - 0x2aa], 0x5141
mov dword [ebp - 0x2a8], 0x28ec8348
mov word [ebp - 0x2a4], 0xb948
mov eax, ebx
xor edx, edx
mov dword [ebp - 0x2a2], eax
mov dword [ebp - 0x29e], edx
mov word [ebp - 0x29a], 0xba48
lea eax, [ebx + 0x28c]
xor edx, edx
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], edx
mov word [ebp - 0x290], 0xe2ff
xor eax, eax
mov dword [ebp - 0x28e], eax
mov dword [ebp - 0x28a], 0
mov dword [ebp - 0x286], 0
mov eax, dword [ebp - 0x2b7]
mov dword [ebp - 0x282], eax
mov eax, dword [ebp - 0x2b3]
mov dword [ebp - 0x27e], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.KERNEL32.dll_lstrlenW
mov edi, eax
add edi, edi
mov word [ebp - 0x275], di
add di, 2
mov word [ebp - 0x273], di
xor eax, eax
mov dword [ebp - 0x271], eax
lea eax, [ebx + 0x54]
xor edx, edx
mov dword [ebp - 0x26d], eax
mov dword [ebp - 0x269], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x10]
push eax
lea eax, [ebp - 0x265]
push eax
call sub.KERNEL32.dll_lstrcpyW
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x5d], eax
mov dword [ebp - 0x59], edx
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x55], eax
mov dword [ebp - 0x51], edx
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x4d], eax
mov dword [ebp - 0x49], edx
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x45], eax
mov dword [ebp - 0x41], edx
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x3d], eax
mov dword [ebp - 0x39], edx
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x35], eax
mov dword [ebp - 0x31], edx
lea eax, [ebp - 0x10]
push eax
push 0x28d
lea eax, [ebp - 0x2b9]
push eax
push ebx
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10052604
cmp dword [ebp - 0x10], 0x28d
jne 0x10052604
lea eax, [ebp - 0x10]
push eax
push 0x236
push 0x10067ab8
lea eax, [ebx + 0x28c]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10052604
cmp dword [ebp - 0x10], 0x236
jne 0x10052604
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 0x282]
push eax
push esi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x10052604
cmp dword [ebp - 0x10], 5
jne 0x10052604
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
lea eax, [ebx + 0x3f]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x10052604
cmp dword [ebp - 0x10], 5
jne 0x10052604
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
mov eax, dword [ebp - 0x282]
push eax
push esi
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x10052604
mov byte [ebp - 9], 0xe9
mov eax, dword [ebp - 0x282]
mov edx, ebx
sub edx, eax
sub edx, 5
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 0x282]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
mov eax, dword [ebp - 0x282]
push eax
push esi
call sub.KERNEL32.dll_VirtualProtectEx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push 0x20
push 0x4c3
push ebx
push esi
call sub.KERNEL32.dll_VirtualProtectEx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret