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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
mov esi, dword [0x68fdf8]
cmp dword [esi], 0
je 0x50392d
mov eax, dword [0x6903e4]
cmp byte [eax], 0
je 0x5032bd
mov eax, ebx
call fcn.0050d8f4
test al, al
je 0x5032bd
mov eax, ebx
call fcn.0050d890
test al, al
je 0x5032bd
mov eax, dword [0x68f620]
cmp byte [eax], 0
jne 0x5032bd
mov eax, ebx
call fcn.005026c0
mov eax, dword [0x68fee0]
cmp dword [eax], 0
jl 0x5037c4
mov eax, ebx
call fcn.0050d8f4
test al, al
je 0x5037c4
mov eax, ebx
call fcn.0050d890
test al, al
je 0x5037c4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov edx, dword [0x68fee0]
cmp eax, dword [edx]
jne 0x50330b
mov edx, dword [0x68fdd4]
mov edx, dword [edx]
mov ecx, dword [esi]
cmp edx, dword [ecx + 0x10]
je 0x5037c4
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
mov edi, dword [0x68fee0]
mov edi, dword [edi]
mov ebp, dword [0x68fdd4]
mov ebp, dword [ebp]
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.005b5e80
mov byte [esp + 0xc], al
mov eax, dword [0x690450]
movzx eax, byte [eax]
sub al, 1
jb 0x50335b
je 0x503594
sub al, 5
je 0x50370f
jmp 0x5037c4
mov eax, dword [esi]
call fcn.005a1da4
mov dword [esp + 8], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
movzx ecx, byte [esp + 0xc]
mov edx, 2
mov eax, ebx
call fcn.0050d9fc
test al, al
je 0x503584
cmp dword [esp + 8], 0
jle 0x503584
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.005b5d48
mov byte [esp + 0xf], 0
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [0x79adf4]
call fcn.0052c684
test al, al
jne 0x503550
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
cmp byte [esp + 0xe], 0
jne 0x503412
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.005b5d48
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, ebx
call fcn.005076a8
test al, al
je 0x503412
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x5034ca
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [0x79adf4]
call fcn.0052c6cc
test al, al
jne 0x5034ca
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0xc]
call fcn.005b65a4
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xd]
call fcn.005b5d48
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [0x79ae18]
call fcn.00523850
test al, al
jne 0x5034c5
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0xc]
call fcn.005b65b4
mov byte [esp + 0xd], al
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xd]
call fcn.005b5d48
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [0x79ae18]
call fcn.00523850
test al, al
je 0x5034ca
mov byte [esp + 0xe], 1
jmp 0x5034ca
mov byte [esp + 0xe], 1
cmp byte [esp + 0xe], 0
je 0x503505
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x11]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 2
call fcn.005a0ad4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68fac0]
mov dword [edx], eax
jmp 0x5037c4
push ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov ecx, edi
call fcn.005b5e80
mov edx, dword [esi]
cmp al, byte [edx + 0x14]
je 0x503540
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push edx
movzx eax, al
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi]
mov dx, 1
call fcn.005a09f8
mov eax, dword [0x68fee0]
mov dword [eax], 0xffffffff
jmp 0x5037c4
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 2
call fcn.005a0ad4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68fac0]
mov dword [edx], eax
jmp 0x5037c4
mov eax, dword [0x68fee0]
mov dword [eax], 0xffffffff
jmp 0x5037c4
mov eax, dword [esi]
call fcn.005a1dc8
mov dword [esp + 8], eax
mov eax, dword [esi]
cmp byte [eax + 0x37], 0
je 0x50365d
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.005b5cd8
cmp eax, 3
jl 0x50335b
cmp dword [esp + 8], 0
jle 0x50335b
movzx ecx, byte [esp + 0xc]
mov edx, 5
mov eax, ebx
call fcn.0050d9fc
test al, al
je 0x50364d
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.005b5e14
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [0x79adf4]
call fcn.0052c234
test al, al
je 0x50335b
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 5
call fcn.005a0ad4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68fac0]
mov dword [edx], eax
jmp 0x5037c4
mov eax, dword [0x68fee0]
mov dword [eax], 0xffffffff
jmp 0x5037c4
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.005b5cd8
cmp eax, 2
jl 0x50335b
cmp dword [esp + 8], 0
jle 0x50335b
movzx ecx, byte [esp + 0xc]
mov edx, 4
mov eax, ebx
call fcn.0050d9fc
test al, al
je 0x5036ff
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.005b5da8
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [0x79adf4]
call fcn.0052c39c
test al, al
je 0x50335b
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 4
call fcn.005a0ad4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68fac0]
mov dword [edx], eax
jmp 0x5037c4
mov eax, dword [0x68fee0]
mov dword [eax], 0xffffffff
jmp 0x5037c4
mov eax, dword [esi]
call fcn.005a1dc8
mov dword [esp + 8], eax
push ebp
mov ecx, edi
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.005b5cd8
cmp eax, 2
jl 0x50335b
cmp dword [esp + 8], 0
jle 0x50335b
movzx ecx, byte [esp + 0xc]
mov edx, 6
mov eax, ebx
call fcn.0050d9fc
test al, al
je 0x5037b9
lea ecx, [esp + 4]
mov edx, esp
movzx eax, byte [esp + 0xc]
call fcn.005b5da8
mov eax, dword [esp]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov eax, dword [0x79adf4]
call fcn.0052c36c
test al, al
je 0x50335b
mov eax, dword [esp + 4]
push eax
movzx eax, byte [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dx, 6
call fcn.005a0ad4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x68fac0]
mov dword [edx], eax
jmp 0x5037c4
mov eax, dword [0x68fee0]
mov dword [eax], 0xffffffff
mov eax, dword [0x68fee0]
mov dword [eax], 0xffffffff
mov eax, dword [esi]
mov eax, dword [eax + 0x35c]
test eax, eax
jle 0x50392d
mov dword [ebx + 0x3b4], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x368]
mov dword [ebx + 0x3b8], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x35c]
cmp eax, 0x18
jne 0x50382e
mov edx, dword [esi]
mov edx, dword [edx + 0x364]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x368]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x36c]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x360]
mov edx, eax
mov eax, ebx
call fcn.0050c010
jmp 0x503881
cmp eax, 3
jne 0x50385e
mov eax, dword [esi]
mov eax, dword [eax + 0x364]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x368]
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x360]
mov eax, dword [esi]
mov edx, dword [eax + 0x370]
mov eax, ebx
call fcn.0050bee4
jmp 0x503881
mov edx, dword [esi]
mov edx, dword [edx + 0x364]
push edx
mov edx, dword [esi]
mov edx, dword [edx + 0x368]
push edx
mov edx, dword [esi]
mov ecx, dword [edx + 0x360]
mov edx, eax
mov eax, ebx
call fcn.0050bf78
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x35c], edx
mov eax, dword [0x690398]
cmp dword [eax], 0xffffffff
je 0x5038d8
mov eax, dword [0x690398]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x5038c1
mov eax, dword [0x690234]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x5038d8
mov eax, dword [0x690414]
mov eax, dword [eax]
call fcn.0057b444
mov eax, dword [0x690398]
mov dword [eax], 0xffffffff
mov eax, dword [0x6903bc]
cmp dword [eax], 0xffffffff
je 0x50392d
mov eax, dword [0x6903bc]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0xc]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jge 0x50390e
mov eax, dword [0x690260]
mov eax, dword [eax]
mov edx, dword [esi]
sub eax, dword [edx + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 8
jl 0x50392d
mov eax, dword [0x6900f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c0]
xor edx, edx
call fcn.0048977c
mov eax, dword [0x6903bc]
mov dword [eax], 0xffffffff
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret