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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x26c
push ebx
push esi
push edi
mov ebx, dword [eax + 0x14]
mov esi, dword [esp + 0x284]
push ebp
mov cx, word [esi + 0x1c]
lea edi, [esp + 0x28]
mov word [esp + 0x16], cx
mov eax, dword [esi + 0x28]
mov ecx, 0x95
mov dword [esp + 0x20], eax
xor eax, eax
rep stosd dword es:[edi], eax
test ebx, ebx
je 0x445098
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x445098
mov ecx, dword [eax + 0x2c]
jmp 0x44509a
xor ecx, ecx
mov edi, dword [esp + 0x284]
lea edx, [esp + 0x130]
mov eax, dword [edi + 0x6c]
push eax
push edx
push ecx
call fcn.004ade40
mov cx, word [esp + 0x22]
add esp, 0xc
mov eax, dword [ebx + 0x44]
push 0x3e
lea edx, [ecx*4 + 4]
push edx
push eax
push ebx
call fcn.004aa140
add esp, 0x10
mov dword [esi + 0x2c], eax
test eax, eax
je 0x4452cb
push 1
push 0
push 1
push 3
push edi
call fcn.00430870
mov word [esp + 0x26], 0
mov word [esp + 0x28], 0
add esp, 0x14
cmp word [esp + 0x16], 0
jle 0x445298
push 0x51aebc
mov eax, dword [edi + 0x70]
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
call fcn.004372d0
add esp, 0x10
test eax, eax
jne 0x4452b5
lea ecx, [esp + 0x30]
push 0x3e
movsx eax, word [esp + 0x18]
push ecx
lea ebp, [eax*4]
mov eax, dword [ebx + 0x44]
push eax
push ebx
call fcn.004aa900
add esp, 0x10
mov ecx, dword [esi + 0x2c]
mov dword [ecx + ebp], eax
mov ecx, dword [esi + 0x2c]
cmp dword [ecx + ebp], 0
je 0x4452cb
movsx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
lea edx, [eax + ecx*4]
mov dword [esp + 0x18], edx
mov eax, dword [edx]
push eax
push 0xffff9904
push 4
push ebx
call fcn.004bda00
add esp, 0x10
push ebx
call sub.KERNEL32.dll_GetTickCount
mov dword [esp + 0x28], eax
add esp, 4
cmp byte [esp + 0x28c], 0
je 0x4451db
mov eax, dword [esp + 0x28c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
push eax
push 1
push ecx
push edx
push edi
call fcn.00446250
add esp, 0x14
test ax, ax
jne 0x4452db
push ebx
call sub.KERNEL32.dll_GetTickCount
add esp, 4
push eax
push edi
call fcn.00428260
add esp, 8
test ax, ax
je 0x4451f9
jmp 0x4452db
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
mov eax, dword [ecx]
push eax
push edx
push edi
call fcn.00445840
add esp, 0xc
test ax, ax
jne 0x4452db
cmp byte [esp + 0x30], 0
jne 0x445232
push 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + ebp]
push ecx
push ebx
call fcn.004d7230
add esp, 0xc
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebx + 0x44]
mov edx, dword [ecx + ebp]
push edx
push eax
push ebx
call fcn.004aa460
add esp, 0xc
mov ecx, dword [esi + 0x2c]
mov dword [ecx + ebp], 0
jmp 0x445237
inc word [esp + 0x14]
push ebx
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esp + 0x1c]
sub eax, dword [esp + 0x28]
add esp, 4
mov edx, dword [ecx]
push edx
push eax
push 0xffff9905
push 4
push ebx
call fcn.004bda00
mov eax, dword [esp + 0x30]
add esp, 0x14
lea edx, [eax + eax*4 + 5]
inc eax
movsx ecx, word [esp + 0x16]
lea eax, [eax + edx*2]
lea eax, [eax + eax*8]
cdq
idiv ecx
push eax
push 0
push 1
push 3
push edi
call fcn.00430870
inc word [esp + 0x26]
mov cx, word [esp + 0x26]
add esp, 0x14
cmp word [esp + 0x16], cx
jg 0x445108
movsx ecx, word [esp + 0x14]
mov eax, dword [esi + 0x2c]
pop ebp
pop edi
pop esi
pop ebx
mov dword [eax + ecx*4], 0
xor ax, ax
add esp, 0x26c
ret
mov eax, dword [edi + 0x70]
push eax
push 0xffff9903
push 2
push ebx
call fcn.004bda00
add esp, 0x10
jmp 0x4452db
push 0xffff9800
push 2
push ebx
call fcn.004bda00
add esp, 0xc
push edi
call fcn.00445510
add esp, 4
push esi
push edi
call fcn.00445550
mov ax, 0xfffe
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x26c
ret