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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x56]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x74]
dec edx
cmp eax, edx
jg 0x472c6e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 7], 2
jne 0x472c61
fld qword [0x4d6e78]
fcomp dword [0x4731c0]
fnstsw ax
sahf
jb 0x472c61
mov eax, dword [ebp - 4]
cmp byte [eax + 0x49], 0
je 0x4731bb
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 1
je 0x4731bb
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
cmp eax, 0x32
ja 0x472ce1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x99]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x9d]
jge 0x472ce1
fld qword [0x4d6e78]
fcomp dword [0x4731c0]
fnstsw ax
sahf
jae 0x4731bb
mov eax, dword [0x4d3f24]
cmp dword [eax], 1
je 0x4731bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x10], 0
jne 0x4731bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
cmp byte [eax + 7], 2
jne 0x4731bb
mov eax, dword [ebp - 4]
cmp dword [eax + 0x99], 0
jle 0x4731bb
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x74]
dec eax
test ax, ax
jb 0x47316f
inc eax
mov word [ebp - 0x34], ax
mov word [ebp - 0xe], 0
mov byte [ebp - 0x31], 0
mov word [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x62]
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x72]
dec eax
test ax, ax
jb 0x473127
inc eax
mov word [ebp - 0x36], ax
mov word [ebp - 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov ax, word [eax + edx]
mov word [ebp - 0x1e], ax
cmp word [ebp - 0x1e], 0
jl 0x472e7a
mov ax, word [ebp - 0x20]
cmp ax, word [ebp - 0x1e]
jle 0x472d87
mov ax, word [ebp - 0x1e]
mov word [ebp - 0x20], ax
cmp byte [ebp - 0x31], 0
jne 0x472e28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x2c]
lea edx, [eax + edx]
mov eax, dword [ebp - 4]
add eax, 0x58
mov ecx, 2
call fcn.00402d4c
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x2c]
lea edx, [eax + edx]
lea eax, [ebp - 0x10]
mov ecx, 2
call fcn.00402d4c
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
add dword [ebp - 0x2c], 2
add dword [ebp - 0x2c], 2
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov eax, dword [eax + edx + 3]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov eax, dword [eax + edx + 7]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x31], 1
inc word [ebp - 0x18]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov word [eax + edx], 0xffff
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x88]
mov eax, dword [edx + eax*4]
movzx edx, word [ebp - 0x10]
imul edx, edx, 0xb
mov byte [eax + edx + 2], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x66]
mov edx, dword [ebp - 4]
sub dword [edx + 0x99], eax
cmp word [ebp - 0x1e], 0xffff
je 0x472e95
movzx eax, word [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x72]
dec edx
cmp eax, edx
jne 0x473119
cmp byte [ebp - 0x31], 0
je 0x473104
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x1c]
lea edx, [eax + edx]
lea eax, [ebp - 0x18]
mov ecx, 2
call fcn.00402d4c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x1c]
lea edx, [eax + edx + 2]
lea eax, [ebp - 0x20]
mov ecx, 2
call fcn.00402d4c
movzx eax, word [ebp - 0x18]
mov edx, dword [ebp - 4]
imul dword [edx + 0x66]
add dword [ebp - 0x28], eax
mov ax, word [ebp - 0x18]
mov edx, dword [ebp - 4]
cmp ax, word [edx + 0x72]
jne 0x472fe9
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x62]
movsx edx, word [ebp - 0x20]
sub eax, edx
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x79]
imul edx
mov dword [ebp - 0x24], eax
movsx eax, word [ebp - 0x20]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x79]
imul edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x2c]
lea edx, [eax + edx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x24]
call fcn.00438820
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd4], 0
je 0x472fc5
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x472f54
add eax, 3
sar eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x24]
and eax, 0x80000003
jns 0x472f6a
dec eax
or eax, 0xfffffffc
inc eax
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
lea edx, [eax + edx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
movzx ecx, word [ebp - 0x14]
call fcn.00438b4c
cmp word [ebp - 0x16], 0
je 0x472fc5
push ebp
movzx eax, word [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
add edx, eax
movzx eax, word [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x95]
lea eax, [ecx + eax]
movzx ecx, word [ebp - 0x16]
call fcn.00472bc8
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
lea edx, [eax + edx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x24]
call fcn.00438820
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x2c], eax
jmp 0x473104
movzx eax, word [ebp - 0x18]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x64]
imul edx
mov dword [ebp - 0x24], eax
movsx eax, word [ebp - 0x20]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x79]
imul edx
mov dword [ebp - 0x30], eax
mov ax, word [ebp - 0x20]
inc eax
mov edx, dword [ebp - 4]
mov dx, word [edx + 0x62]
sub dx, ax
jb 0x473104
inc edx
mov word [ebp - 0x38], dx
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov edx, dword [ebp - 0x2c]
lea edx, [eax + edx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x24]
call fcn.00438820
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd4], 0
je 0x4730cd
mov eax, dword [ebp - 0x24]
test eax, eax
jns 0x47305c
add eax, 3
sar eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x24]
and eax, 0x80000003
jns 0x473072
dec eax
or eax, 0xfffffffc
inc eax
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
lea edx, [eax + edx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x95]
mov ecx, dword [ebp - 0x2c]
add eax, ecx
movzx ecx, word [ebp - 0x14]
call fcn.00438b4c
cmp word [ebp - 0x16], 0
je 0x4730cd
push ebp
movzx eax, word [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
add edx, eax
movzx eax, word [ebp - 0x14]
shl eax, 2
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x95]
lea eax, [ecx + eax]
movzx ecx, word [ebp - 0x16]
call fcn.00472bc8
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
lea edx, [eax + edx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [ebp - 0x24]
call fcn.00438820
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x79]
add dword [ebp - 0x30], eax
inc word [ebp - 0x12]
dec word [ebp - 0x38]
jne 0x473027
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x62]
mov word [ebp - 0x20], ax
mov word [ebp - 0x18], 0
mov byte [ebp - 0x31], 0
inc word [ebp - 0x10]
dec word [ebp - 0x36]
jne 0x472d48
mov eax, dword [ebp - 4]
inc word [eax + 0x58]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x58]
mov edx, dword [ebp - 4]
movzx edx, word [edx + 0x74]
dec edx
cmp eax, edx
jle 0x47314a
mov eax, dword [ebp - 4]
mov word [eax + 0x58], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 0
jne 0x473161
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x9d]
jge 0x47316f
inc word [ebp - 0xe]
dec word [ebp - 0x34]
jne 0x472d17
mov eax, dword [ebp - 4]
mov byte [eax + 0x48], 0
cmp dword [ebp - 0x28], 0
jle 0x4731bb
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd8]
mov eax, dword [eax + 0x54]
mov al, byte [eax + 7]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xa4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x95]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xd8]
mov al, 1
call dword [ebx + 0x4c]
pop ebx
mov esp, ebp
pop ebp
ret