Function at 0x4085da
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Execute shellcode via indirect call

Disassembly:
jmp 0x4b2080
sub esp, 0x3cc
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x3c8], eax
mov eax, dword [esp + 0x3d0]
push ebx
mov dword [esp + 0x34], ecx
push esi
mov ebx, dword [eax]
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], ebx
mov cl, byte [ebx + 0x16]
mov esi, dword [ebx + 0xc]
cmp cl, 0xe9
mov dword [esp + 0x54], esi
setne al
add eax, 5
mov dword [esp + 0x10], eax
mov eax, dword [esi]
cmp eax, dword [ebx + 0x16]
jne 0x4b20f4
cmp cl, 0xe9
jne 0x4b20e3
mov cl, byte [esi + 4]
cmp cl, byte [ebx + 0x1a]
jne 0x4b20f4
xor eax, eax
jmp 0x4b24ff
mov ax, word [esi + 4]
cmp ax, word [ebx + 0x1a]
jne 0x4b20f4
xor eax, eax
jmp 0x4b24ff
lea eax, [esp + 0x28]
push eax
push 0x40
push 8
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4b24fd
push ebp
push edi
push dword [ebx + 0xc]
lea ecx, [esp + 0x64]
call fcn.00409160
mov ecx, dword [esp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x38], 0
cmp byte [ecx + 0x3c], 0
je 0x4b22f6
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x60]
cmp eax, ebp
jae 0x4b22f6
push dword [ecx + 0x4c]
lea eax, [esp + 0x3c]
push dword [ebx + 0xc]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00403670
test eax, eax
je 0x4b22f6
push 1
push dword [ebx + 0xc]
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0xf4
push eax
call fcn.004094b7
test eax, eax
jne 0x4b218b
mov ecx, dword [ebx + 0xc]
mov al, byte [esp + 0x13]
mov byte [ecx], al
mov esi, dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x1c]
mov dword [esp + 0x44], 0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], 0
push eax
push 1
mov dword [esp + 0x58], 0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x20], 1
call fcn.00408e86
add esp, 0xc
test al, al
je 0x4b22ba
xor ebp, ebp
mov dword [esp + 0x14], 1
cmp dword [esp + 0x20], ebp
jle 0x4b22b6
mov dword [esp + 0x14], 1
call edi
push 0x15
mov dword [esp + 0x38], eax
call fcn.004018ed
mov ebx, eax
lea esi, [ebp*4]
nop
test ebx, ebx
je 0x4b2244
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x34]
cmp eax, ebx
jae 0x4b2294
lea eax, [esp + 0x10c]
mov dword [esp + 0x10c], 0x10001
push eax
mov eax, dword [esp + 0x20]
lea esi, [ebp*4]
mov edi, esi
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4b2294
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c4]
mov eax, dword [eax + 0xc]
cmp ecx, eax
jbe 0x4b2294
add eax, 5
cmp ecx, eax
jae 0x4b2294
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b2230
mov eax, dword [esp + 0x1c]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x4b2218
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b22d3
push eax
call fcn.00407351
add esp, 4
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
test eax, eax
je 0x4b22fe
push eax
call fcn.00407351
add esp, 4
jmp 0x4b22fe
mov dword [esp + 0x14], 0
push ebp
push dword [ebx + 0xc]
lea esi, [ebx + 0x16]
push esi
call fcn.004094b7
test eax, eax
jne 0x4b231c
push ebp
push esi
push dword [ebx + 0xc]
call fcn.00409f98
add esp, 0xc
mov esi, dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x4b24c1
push 0
push 0x5677f8
call fcn.004072fc
mov dword [esp + 0x18], eax
lea ecx, [eax + 0xa]
mov dword [esp + 0x54], ecx
mov ecx, dword [ecx]
add ecx, 0xe
mov dword [esp + 0x44], 0
add eax, ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x50], 0
push eax
push 1
mov byte [esp + 0x5c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 0
call fcn.00408e86
add esp, 0xc
test al, al
je 0x4b2470
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jle 0x4b246c
nop
call edi
push 0x15
mov dword [esp + 0x38], eax
call fcn.004018ed
mov ebx, eax
lea esi, [ebp*4]
test ebx, ebx
je 0x4b23ea
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x34]
cmp eax, ebx
jae 0x4b244a
lea eax, [esp + 0x10c]
mov dword [esp + 0x10c], 0x10001
push eax
mov eax, dword [esp + 0x20]
lea esi, [ebp*4]
mov edi, esi
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4b244a
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c4]
cmp eax, dword [ecx + 0xc]
je 0x4b2440
cmp eax, dword [esp + 0x18]
jb 0x4b2433
cmp eax, dword [esp + 0x54]
jbe 0x4b2440
xor eax, dword [esp + 0x58]
mov edi, esi
test eax, 0xffff0000
jne 0x4b244a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b23d6
mov eax, dword [esp + 0x1c]
push dword [edi + eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x4b23c0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4b2489
push eax
call fcn.00407351
add esp, 4
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
test eax, eax
je 0x4b24c1
push eax
call fcn.00407351
add esp, 4
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x34]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
push dword [ebx + 0xc]
call eax
jmp 0x4b24da
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x34]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 8
push dword [ebx + 0xc]
call eax
test ebp, ebp
je 0x4b24ec
push dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x40]
push eax
call fcn.0040b181
lea ecx, [esp + 0x60]
call fcn.0040a835
mov eax, dword [esp + 0x5c]
pop edi
pop ebp
jmp 0x4b24ff
mov eax, esi
mov ecx, dword [esp + 0x3d0]
pop esi
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x3cc
ret 4