Function at 0x409cb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474840
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov edi, dword [ebp + 8]
cmp edx, eax
je 0x409d63
mov esi, dword [edi + 0x20]
lea esp, [esp]
mov ecx, dword [edx]
cmp dword [ecx + 0x20], esi
jne 0x409d01
mov cx, word [ecx + 0x28]
cmp cx, word [edi + 0x28]
je 0x409d08
add edx, 8
cmp edx, eax
jne 0x409cf0
cmp edx, eax
je 0x409d63
push edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.00402640
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x34]
mov al, byte [edi + 0x1d]
mov byte [esi + 0x1d], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2c], eax
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x409e63
lea eax, [esi + 0x38]
push eax
lea eax, [esi + 0x30]
push eax
movzx eax, word [esi + 0x28]
push eax
push 0
push dword [esi + 0x20]
call fcn.0040d510
jmp 0x409e63
push 0x40
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x409d87
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
jmp 0x409d89
xor eax, eax
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.0040bee0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0
push dword [edi + 0x18]
call fcn.00409110
mov esi, dword [ebp - 0x34]
add esp, 8
mov dword [ebp - 0x38], eax
cmp esi, eax
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
je 0x409df5
cmp dword [esi + 0x14], 8
jb 0x409dd3
push dword [esi]
call eax
add esp, 4
push dword [ebp - 0x38]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
call fcn.0040adf0
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp dword [ebp - 0x18], 8
jb 0x409e03
push dword [ebp - 0x2c]
call eax
add esp, 4
fldz
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
movzx eax, byte [edi + 0x1c]
mov byte [esi + 0x1c], al
movzx eax, byte [edi + 0x1d]
mov byte [esi + 0x1d], al
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
movzx eax, word [edi + 0x28]
mov word [esi + 0x28], ax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
movzx eax, word [edi + 0x2a]
mov word [esi + 0x2a], ax
fst qword [esi + 0x30]
fstp qword [esi + 0x38]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2c], eax
mov ecx, ebx
lea eax, [ebp - 0x34]
push eax
call fcn.0040a5c0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x409e96
or esi, 0xffffffff
lea ecx, [edi + 4]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x409e96
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], esi
dec esi
jne 0x409e96
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047259d
mov esp, ebp
pop ebp
ret 4