Function at 0x518a14
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x518a1c
push ebx
push esi
mov ebx, dword [0x52a9f0]
xor eax, eax
push ebp
push 0x518c6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52a6d8]
cmp byte [eax], 0
jne 0x518b54
lea edx, [ebp - 0xc]
mov eax, dword [0x52aa68]
mov eax, dword [eax]
call fcn.0051a68c
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov edx, 0x518c80
call fcn.00519b08
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00408b1c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x10]
call fcn.00409058
mov esi, eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebx]
call fcn.00408b1c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x18]
call fcn.00409058
cmp esi, eax
jne 0x518af2
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.00408b1c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x20]
call fcn.00409058
cdq
push edx
push eax
mov eax, dword [0x52a968]
mov eax, dword [eax]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x518aee
cmp eax, dword [esp]
pop edx
pop eax
je 0x518b4c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00408b1c
mov eax, dword [ebp - 0x28]
mov edx, 0x518c98
call fcn.00404b04
je 0x518b4c
lea edx, [ebp - 0x2c]
mov eax, dword [0x52aa6c]
mov eax, dword [eax]
call fcn.0051a68c
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x52a8d8]
call fcn.0040474c
mov eax, dword [0x52a8d8]
mov eax, dword [eax]
call fcn.005191c0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x51afc0
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov eax, dword [0x52a6d8]
mov byte [eax], 1
mov ecx, dword [ebx]
lea eax, [ebp - 0x30]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x30]
call fcn.00409058
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x34]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x34]
call fcn.00409058
mov dword [ebx + 0xc], eax
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x38]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x38]
call fcn.00409058
mov dword [ebx + 0x14], eax
mov ecx, dword [ebx + 0x18]
lea eax, [ebp - 0x3c]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x3c]
call fcn.00409058
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x40]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x40]
call fcn.00409058
mov dword [ebx + 0x24], eax
mov ecx, dword [ebx + 0x28]
lea eax, [ebp - 0x44]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x44]
call fcn.00409058
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x30]
call fcn.0051850c
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x38]
call fcn.0051850c
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x40]
call fcn.0051850c
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x48]
call fcn.0051850c
mov dword [ebx + 0x4c], eax
mov ecx, dword [ebx + 0x50]
lea eax, [ebp - 0x48]
mov edx, 0x518c8c
call fcn.00404a04
mov eax, dword [ebp - 0x48]
call fcn.00409058
mov dword [ebx + 0x54], eax
call fcn.00518230
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518c71
lea eax, [ebp - 0x48]
mov edx, 0x10
call fcn.0040471c
lea eax, [ebp - 8]
mov edx, dword [0x495940]
call fcn.00405ab8
ret