Function at 0x40ca30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446d48
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45a4b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0040c880
test eax, eax
je 0x40cd32
push 7
push str._iSpeed
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401710
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040f650
mov edi, eax
cmp dword [edi + 0x28], 0
je 0x40caaf
mov esi, 1
jmp 0x40cd1f
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 2
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x2c], 1
mov dword [edi + 0x34], 1
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40cafd
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
sub esp, 0x18
mov dword [edi + 0xc], eax
mov ecx, esp
mov dword [ebp - 0x4c], esp
push str.8B_44_24_04_3B_0D_00_04_1C_03_75_50_83_3D_00_02_1D_03_01_75_20_C7_05_00_03_1D_03_00_00_60_40_D9_00_D8_0D_00_03_1D_03_D9_18_D9_40_08_D8_0D_00_03_1D_03_D9_58_08_83_3D_04_02_1D_03_01_75_2E_83_78_04_00_7E_28_C7_05_00_03_1D_03_00_00_20_41_D9_40_04_D8_0D_00_03_1D_03_D9_58_04_EB_10_83_3D_08_02_1D_03_01_75_07_D9_EE_D9_10_D9_58_08_D9_00
call fcn.00408cc0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.8B_44_24_04_D9_00
call fcn.00408cc0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push str.8B_44_24_04_D9_00
call fcn.00408cc0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004026f0
push dword [edi + 0xc]
lea esi, [edi + 0x74]
push ecx
push 0x31d0000
push esi
call fcn.00402960
push 0xb
push 0x45222c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040f5a0
mov eax, dword [eax + 0xc]
add eax, 0x400
push eax
push 0x31c0400
push esi
call fcn.00402b30
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x40cbb1
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
push 1
push 0x4523f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x200
call fcn.0040f5a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 1
mov dword [eax + 0x30], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40cc24
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
push 1
push 0x4523f4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x204
call fcn.0040f5a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 1
mov dword [eax + 0x30], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40cc97
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
push 6
push str.Insert
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x208
call fcn.0040f5a0
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 0
mov dword [eax + 0x38], 1
mov dword [eax + 0x30], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40cd0a
push dword [ebp - 0x28]
call fcn.0042d411
add esp, 4
sub esp, 0x10
lea eax, [ebp - 0x40]
push 1
push ecx
push 1
push eax
mov ecx, ebx
call fcn.0040e4c0
mov esi, eax
cmp dword [ebp - 0x2c], 0x10
jb 0x40cd30
push dword [ebp - 0x40]
call fcn.0042d411
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d416
mov esp, ebp
pop ebp
ret