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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov byte [ebp - 5], cl
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov word [eax + 0x4cc], 0
mov eax, dword [ebp + 0xc]
mov dword [0x53606c], eax
mov eax, dword [ebp + 8]
mov dword [0x536070], eax
mov byte [0x5360a9], 0
cmp byte [ebp - 5], 1
sete al
and al, byte [0x535f48]
je 0x4b0da6
mov eax, dword [0x52bf20]
mov eax, dword [eax]
call fcn.004dddb8
jmp 0x4b1465
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov cl, byte [ebp + 0x10]
mov dl, byte [ebp - 5]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.0048e2b0
test al, al
jne 0x4b1465
cmp dword [0x534350], 0
je 0x4b1465
mov eax, dword [0x5342d8]
mov eax, dword [eax + 0x28]
cmp eax, dword [0x5342e8]
jne 0x4b1465
xor edx, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x498]
call fcn.0042fdf8
mov eax, dword [ebp - 4]
call fcn.004c1a60
test byte [ebp + 0x10], 0x10
je 0x4b0fae
mov al, byte [0x4b146c]
cmp al, byte [ebp + 0x10]
jne 0x4b0e1d
inc dword [0x5360f4]
mov eax, dword [0x5360f4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x5342e8]
call fcn.004c6090
mov dword [ebp - 0x20], eax
mov eax, dword [0x5360f4]
cmp eax, dword [ebp - 0x1c]
je 0x4b0e4d
xor eax, eax
mov dword [0x5360f4], eax
cmp dword [0x53608c], 0
je 0x4b0e68
mov eax, dword [0x53608c]
cmp byte [eax + 0xe], 0
je 0x4b0e68
xor eax, eax
mov dword [0x53608c], eax
cmp dword [ebp - 0x20], 0
je 0x4b0ec9
test byte [ebp + 0x10], 4
je 0x4b0ed0
call fcn.00406bb0
sub eax, dword [0x535f44]
cmp eax, 0x3e8
jbe 0x4b0ed0
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xe], 0
jne 0x4b0ed0
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2c], 0
jne 0x4b0ed0
mov byte [0x536180], 1
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 8]
push eax
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 0xa]
push eax
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, 0x52
mov eax, dword [ebp - 4]
call fcn.004b2ce4
jmp 0x4b1465
xor eax, eax
mov dword [0x5360f4], eax
push 0x536064
push 0x536068
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x5342e8]
call fcn.004c5e3c
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
sub eax, dword [0x536064]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x4b0f8e
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
sub eax, dword [0x536068]
cdq
xor eax, edx
sub eax, edx
dec eax
jg 0x4b0f8e
mov eax, dword [0x536068]
push eax
mov eax, dword [0x534350]
movzx edx, word [eax + 0xa]
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov ecx, dword [0x536064]
call fcn.0050b410
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b5354
test al, al
je 0x4b0fae
mov eax, dword [ebp - 4]
call fcn.004b5310
test al, al
je 0x4b0fae
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x534350]
movzx ecx, word [eax + 8]
mov dx, 0xbc2
mov eax, dword [0x534350]
call fcn.00500504
jmp 0x4b0fae
mov byte [0x5360bc], 1
mov eax, dword [0x536064]
mov dword [0x536074], eax
mov eax, dword [0x536068]
mov dword [0x536080], eax
jmp 0x4b1465
test byte [ebp + 0x10], 8
je 0x4b1465
mov eax, dword [0x5360f4]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x5342e8]
call fcn.004c6090
mov dword [ebp - 0x20], eax
push 0x536064
push 0x536068
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x5342e8]
call fcn.004c5e3c
xor eax, eax
mov dword [0x53608c], eax
cmp byte [0x534398], 0
je 0x4b10e0
cmp dword [ebp - 0x20], 0
jne 0x4b10e0
cmp byte [0x5343a8], 0x13
jne 0x4b10e0
mov eax, dword [0x536068]
push eax
mov eax, dword [0x534350]
movzx edx, word [eax + 0xa]
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov ecx, dword [0x536064]
call fcn.0050b410
and eax, 0xff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x534350]
movzx edx, word [eax + 0xa]
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov ecx, dword [ebp - 0xc]
call fcn.0050b738
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [0x534348]
call fcn.005099a4
test al, al
je 0x4b1083
test byte [ebp + 0x10], 1
je 0x4b10e0
mov eax, dword [ebp - 4]
call fcn.004b53b0
test al, al
je 0x4b10d4
mov eax, dword [ebp - 4]
call fcn.004b5310
test al, al
je 0x4b10d4
mov eax, dword [ebp - 4]
call fcn.004b5420
test al, al
je 0x4b10d4
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x534350]
movzx ecx, word [eax + 8]
mov dx, 0xbc7
mov eax, dword [0x534350]
call fcn.00500504
mov byte [0x5360a9], 1
jmp 0x4b1465
test byte [ebp + 0x10], 2
je 0x4b11f0
mov eax, dword [0x536068]
push eax
mov eax, dword [0x534350]
movzx edx, word [eax + 0xa]
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov ecx, dword [0x536064]
call fcn.0050b410
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b5354
test al, al
je 0x4b11e1
mov eax, dword [ebp - 4]
call fcn.004b5310
test al, al
je 0x4b11e1
mov eax, dword [0x534350]
cmp byte [eax + 0x1e], 0
jne 0x4b11e1
mov ecx, dword [0x536068]
mov edx, dword [0x536064]
mov eax, dword [0x5342e8]
call fcn.004c70f8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4b11b4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
push eax
mov ecx, dword [0x536068]
mov edx, dword [0x536064]
mov eax, dword [ebp - 4]
call fcn.004b3ed4
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x534350]
movzx ecx, word [eax + 8]
mov dx, 0xbc4
mov eax, dword [0x534350]
call fcn.00500504
jmp 0x4b1465
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x534350]
movzx ecx, word [eax + 8]
mov dx, 0xbc4
mov eax, dword [0x534350]
call fcn.00500504
mov dword [0x536074], 0xffffffff
jmp 0x4b1465
cmp dword [ebp - 0x20], 0
jne 0x4b1200
test byte [ebp + 0x10], 1
je 0x4b13ba
mov dword [0x536074], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x4b12c7
call fcn.00406bb0
sub eax, dword [0x535f44]
cmp eax, 0x1f4
jbe 0x4b124d
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xe], 0x32
jne 0x4b124d
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, 0x3f2
mov eax, dword [ebp - 4]
call fcn.004b2ce4
jmp 0x4b1465
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2c], 0
jne 0x4b1465
mov eax, dword [ebp - 0x20]
mov dword [0x53608c], eax
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xe], 0
je 0x4b1291
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xe], 0
je 0x4b1291
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xe], 0x32
je 0x4b1291
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x40]
mov eax, 0x4b1478
call fcn.00404c88
test eax, eax
je 0x4b12ad
test byte [ebp + 0x10], 1
jne 0x4b12ad
cmp byte [0x54d845], 1
je 0x4b12ad
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x48], 0x45
jne 0x4b1465
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004b0988
call fcn.00406bb0
mov dword [0x536038], eax
jmp 0x4b1465
mov eax, dword [0x536068]
push eax
mov eax, dword [0x534350]
movzx edx, word [eax + 0xa]
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov ecx, dword [0x536064]
call fcn.0050b410
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b53b0
test al, al
je 0x4b13ab
mov eax, dword [ebp - 4]
call fcn.004b5310
test al, al
je 0x4b13ab
mov eax, dword [ebp - 4]
call fcn.004b5420
test al, al
je 0x4b13ab
mov eax, 3
call fcn.00403198
add eax, 0xbc6
mov dword [ebp - 0x18], eax
cmp byte [0x53617d], 0
je 0x4b1353
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b0494
test al, al
je 0x4b1353
mov dword [ebp - 0x18], 0xbcb
cmp byte [0x53617e], 0
je 0x4b137e
mov eax, dword [0x534350]
cmp word [eax + 0x64], 3
jb 0x4b137e
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b055c
test al, al
je 0x4b137e
mov dword [ebp - 0x18], 0xbd0
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x534350]
movzx ecx, word [eax + 8]
mov dx, word [ebp - 0x18]
mov eax, dword [0x534350]
call fcn.00500504
call fcn.00406bb0
mov dword [0x535f40], eax
jmp 0x4b1465
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
cmp eax, dword [0x536064]
jne 0x4b1429
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
cmp eax, dword [0x536068]
jne 0x4b1429
mov eax, dword [0x536068]
push eax
mov eax, dword [0x534350]
movzx edx, word [eax + 0xa]
mov eax, dword [0x534350]
movzx eax, word [eax + 8]
mov ecx, dword [0x536064]
call fcn.0050b410
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004b5354
test al, al
je 0x4b1465
mov eax, dword [ebp - 4]
call fcn.004b5310
test al, al
je 0x4b1465
mov eax, dword [ebp - 4]
call fcn.004b3c68
jmp 0x4b1465
call fcn.00406bb0
sub eax, dword [0x535f40]
cmp eax, 0x3e8
jbe 0x4b1465
test byte [ebp + 0x10], 4
je 0x4b144a
mov byte [0x5360bc], 1
jmp 0x4b1451
mov byte [0x5360bc], 0
mov eax, dword [0x536064]
mov dword [0x536074], eax
mov eax, dword [0x536068]
mov dword [0x536080], eax
mov esp, ebp
pop ebp
ret 0xc