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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x1b4]
push ebp
cdq
push esi
xor eax, edx
push edi
sub eax, edx
imul eax, dword [ebx + 0x1d4]
push 0
push 0
push 0x258
push 0x320
push 0
mov dword [esp + 0x2c], eax
lea ecx, [ebx + 0x2a8]
lea eax, [ebx + 0x188]
push 0
call fcn.00408dc0
mov esi, 0x4a6e08
mov ecx, dword [esi - 8]
mov edi, dword [esi - 4]
mov ebp, dword [esi - 0xc]
mov edx, dword [esi - 0x10]
test ecx, ecx
jl 0x419c50
mov eax, dword [ebx + 0x2d0]
sub eax, edx
cmp ecx, eax
jle 0x419be5
mov ecx, eax
test ecx, ecx
je 0x419c50
test edi, edi
jl 0x419c50
mov eax, dword [ebx + 0x2d4]
cdq
xor eax, edx
sub eax, edx
sub eax, ebp
cmp edi, eax
jle 0x419c00
mov edi, eax
test edi, edi
je 0x419c50
mov eax, dword [ebx + 0x46c]
push 0x60
push 0
push 0
test eax, eax
mov eax, dword [esi + 4]
push 0
push eax
mov eax, dword [esi]
push eax
jne 0x419c37
mov eax, dword [esi - 0x10]
push edi
push ecx
push ebp
push eax
lea eax, [ebx + 0x248]
lea edx, [ebx + 0x2a8]
call fcn.004183c0
jmp 0x419c50
lea eax, [ebx + 0x248]
push eax
mov eax, dword [esi - 0x10]
push edi
push ecx
push ebp
push eax
lea eax, [ebx + 0x2a8]
call fcn.00418510
add esi, 0x38
cmp esi, 0x4a6fc8
jl 0x419bc7
mov eax, dword [0x4a6d2c]
mov ecx, dword [0x4a6d28]
mov edx, dword [0x4a6d24]
push eax
mov eax, dword [0x4a6d20]
push ecx
mov ecx, dword [0x4a6d1c]
lea esi, [ebx + 0x1e8]
push esi
push edx
push eax
mov eax, dword [0x4a6d18]
push ecx
lea edi, [ebx + 0x2a8]
mov ecx, edi
call fcn.0040a1b0
mov edx, dword [0x4a6d64]
mov eax, dword [0x4a6d60]
mov ecx, dword [0x4a6d5c]
push edx
mov edx, dword [0x4a6d58]
push eax
mov eax, dword [0x4a6d54]
push esi
push ecx
push edx
push eax
mov eax, dword [0x4a6d50]
mov ecx, edi
call fcn.0040a1b0
mov ecx, dword [0x4a6d9c]
mov edx, dword [0x4a6d98]
mov eax, dword [0x4a6d94]
push ecx
mov ecx, dword [0x4a6d90]
push edx
mov edx, dword [0x4a6d8c]
push esi
push eax
mov eax, dword [0x4a6d88]
push ecx
push edx
mov ecx, edi
call fcn.0040a1b0
mov eax, dword [0x4a6dd4]
mov ecx, dword [0x4a6dd0]
mov edx, dword [0x4a6dcc]
push eax
mov eax, dword [0x4a6dc8]
push ecx
mov ecx, dword [0x4a6dc4]
push esi
push edx
push eax
mov eax, dword [0x4a6dc0]
push ecx
mov ecx, edi
call fcn.0040a1b0
cmp dword [0x4b3d98], 0
jne 0x419e1d
mov dword [esp + 0x14], 0x2000
lea esp, [esp]
call fcn.00428cb0
test eax, eax
je 0x419e5a
cmp dword [0x4b5a90], 1
jne 0x419d5e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x419d64
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 0x2b8]
mov ebp, eax
mov eax, dword [ebx + 0x78]
test edi, edi
jle 0x419d96
jmp 0x419d80
movzx edx, byte [esi]
add edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x60]
mov dl, byte [edx + ecx]
mov byte [eax], dl
inc eax
inc esi
sub edi, 1
jne 0x419d80
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call edx
lea esi, [ebp + 0xf]
cmp dword [0x4b5a90], 1
jne 0x419dc7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x419dcd
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp esi, eax
jbe 0x419de2
call fcn.00428cb0
test eax, eax
jne 0x419db6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 1
call fcn.004037d0
mov ecx, dword [ebx + 0x24]
push 0
mov eax, 0x80
call fcn.004037d0
cmp eax, 1
je 0x419e1d
mov eax, dword [esp + 0x14]
add eax, 0x2000
cmp eax, 0x10000
mov dword [esp + 0x14], eax
jl 0x419d40
push 0
push 0
push 0x258
push 0x320
push 0
push 0
lea ecx, [ebx + 0x68]
lea eax, [ebx + 0x2a8]
call fcn.00408dc0
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0
push 0
push 0
push 0x258
push 0x320
push 0
push 0
mov ecx, ebx
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret