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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52d28e
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x4df48f
xor eax, eax
jmp 0x4df780
mov edi, dword [esp + 0xb4]
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4df4a5
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x4df4ae
mov ecx, dword [ebp + 0x58]
mov dword [esp + 0x10], ecx
mov esi, ecx
test eax, eax
je 0x4df4b8
mov ebx, dword [ebp + 0x64]
dec ebx
jmp 0x4df4bb
mov ebx, dword [ebp + 0x58]
cmp esi, ebx
jg 0x4df4cc
push esi
mov ecx, ebp
call fcn.004e10c0
inc esi
cmp esi, ebx
jle 0x4df4bf
xor eax, eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.004df300
test eax, eax
mov dword [ebp + 0x54], eax
jge 0x4df4f3
xor eax, eax
jmp 0x4df780
push 0x580
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xac], 0
je 0x4df524
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push ecx
mov ecx, eax
call fcn.004ea6a0
jmp 0x4df526
xor eax, eax
mov esi, dword [esp + 0x10]
mov ecx, ebp
push esi
mov dword [esp + 0xb0], 0xffffffff
mov dword [ebp + 0x44], eax
mov dword [esp + 0x14], esi
call fcn.004dfeb0
test eax, eax
jne 0x4df6e9
jmp 0x4df552
mov esi, dword [esp + 0x10]
cmp esi, dword [ebp + 0x64]
jge 0x4df563
test esi, esi
jl 0x4df563
mov edx, dword [ebp + 0x60]
mov esi, dword [edx + esi*4]
jmp 0x4df565
xor esi, esi
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push eax
push ecx
call fcn.004de650
add esp, 0x10
lea ecx, [esp + 0x20]
mov ebx, eax
mov dword [esp + 0x18], edx
call fcn.004ea670
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x20], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x24], ebx
test ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], edx
je 0x4df5e0
mov dword [esp + 0x40], 1
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x4df5f6
cmp eax, 8
jne 0x4df5f6
mov eax, dword [esp + 0x40]
or al, 2
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4df607
mov eax, dword [esp + 0x40]
or al, 4
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4df618
mov eax, dword [esp + 0x40]
or al, 8
mov dword [esp + 0x40], eax
mov ecx, dword [ebp + 0x44]
lea edx, [esp + 0x20]
push edx
call fcn.004ea820
mov dword [ebp + 0x54], eax
mov eax, dword [esi + 0x18]
or al, 1
push 1
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0x44]
call fcn.004ec4e0
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 0x44]
push 1
call fcn.004ec520
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0x44]
push 1
call fcn.004ec500
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], eax
test ecx, ecx
je 0x4df662
or dword [esi + 0x18], 2
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4df66d
or dword [esi + 0x18], 8
test eax, eax
je 0x4df679
mov eax, dword [esi + 0x18]
or al, 0x24
mov dword [esi + 0x18], eax
lea eax, [esp + 0x50]
push eax
push 0x54
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4df6ac
mov ecx, dword [esp + 0x6c]
mov dword [esi], ecx
mov eax, dword [esp + 0x70]
cdq
xor eax, edx
sub eax, edx
mov dword [esi + 4], eax
mov edx, dword [esp + 0x76]
and edx, 0xffff
mov dword [esi + 8], edx
jmp 0x4df6bc
mov eax, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], 0x18
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x54]
xor ebx, ebx
inc ecx
cmp eax, ebx
mov dword [esp + 0x10], ecx
jl 0x4df6f0
cmp dword [edi + 0x24], ebx
je 0x4df6f0
test byte [ebp + 0x10], 3
je 0x4df6f0
push ecx
mov ecx, ebp
call fcn.004dfeb0
test eax, eax
je 0x4df54e
xor eax, eax
jmp 0x4df780
mov esi, dword [ebp + 0x44]
cmp esi, ebx
je 0x4df70d
mov ecx, esi
call fcn.004ea7d0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x50], ebx
mov edx, dword [ebp + 0x4c]
push edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp + 8]
add esp, 4
cmp ecx, ebx
mov dword [ebp + 0x4c], ebx
je 0x4df730
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4df730
push eax
call fcn.004c9800
mov ecx, dword [ebp]
mov dword [ebp + 0xc], ebx
cmp ecx, ebx
je 0x4df73f
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [ebp + 0x54], 0xfffffff7
jne 0x4df74d
cmp dword [edi + 0x24], ebx
je 0x4df74d
mov dword [ebp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
mov esi, dword [ebp + 0x44]
sub eax, ecx
cmp esi, ebx
mov dword [ebp + 0x50], eax
je 0x4df773
mov ecx, esi
call fcn.004ea7d0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp + 0x54]
xor eax, eax
cmp ecx, ebx
mov dword [ebp + 0x44], ebx
sete al
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret 4