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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov byte [esp + 4], cl
mov dword [esp], edx
mov ebx, eax
mov byte [esp + 5], 0
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
cmp byte [ebx + 0xd4], 0
je 0x530e20
mov ebp, 0xe
mov eax, dword [esp]
sub eax, 1
je 0x530e16
sub eax, 2
je 0x530e16
sub eax, 2
je 0x530e16
sub eax, 2
jne 0x531036
mov ebp, 0xc
jmp 0x531036
mov ebp, 0xa
mov eax, dword [esp]
sub eax, 1
je 0x530e40
sub eax, 2
je 0x530e40
sub eax, 2
je 0x530e40
sub eax, 2
jne 0x531036
mov ebp, 8
jmp 0x531036
mov eax, dword [esp]
cmp eax, 7
ja case.default.0x530e56
jmp dword [eax*4 + 0x530e5d]
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
sub edi, ebp
jmp case.default.0x530e56
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
add esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
sub edi, ebp
jmp case.default.0x530e56
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
add esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
jmp case.default.0x530e56
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
add esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
add edi, ebp
jmp case.default.0x530e56
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
add edi, ebp
jmp case.default.0x530e56
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
sub esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
add edi, ebp
jmp case.default.0x530e56
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
sub esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
jmp case.default.0x530e56
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
sub esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
sub edi, ebp
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov ecx, edi
mov edx, esi
call fcn.00512420
test al, al
je 0x531030
cmp byte [ebx + 0x75], 0
jne 0x530ff5
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebx + 0x98]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebx + 0x9c]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fild dword [ebx + 0x60]
fcompp
wait
fnstsw ax
sahf
jb 0x531030
cmp byte [ebx + 0xd4], 0
jne 0x531029
push 0x28
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov ecx, edi
mov edx, esi
call fcn.0051849c
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jle 0x531030
cmp dword [esp + 8], 0x3c
jge 0x531030
mov byte [esp + 5], 1
jmp 0x531040
mov byte [esp + 5], 1
jmp 0x531040
inc ebp
cmp ebp, 0x18
jg 0x531040
cmp byte [ebx + 0xd], 0
je 0x530e4a
cmp byte [esp + 5], 0
jne 0x53129e
cmp byte [ebx + 0xd4], 0
je 0x53107e
mov ebp, 0xe
mov eax, dword [esp]
sub eax, 1
je 0x531074
sub eax, 2
je 0x531074
sub eax, 2
je 0x531074
sub eax, 2
jne 0x531294
mov ebp, 0xc
jmp 0x531294
mov ebp, 0xa
mov eax, dword [esp]
sub eax, 1
je 0x53109e
sub eax, 2
je 0x53109e
sub eax, 2
je 0x53109e
sub eax, 2
jne 0x531294
mov ebp, 8
jmp 0x531294
mov eax, dword [esp]
cmp eax, 7
ja case.default.0x5310b4
jmp dword [eax*4 + 0x5310bb]
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
sub edi, ebp
jmp case.default.0x5310b4
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
add esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
sub edi, ebp
jmp case.default.0x5310b4
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
add esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
jmp case.default.0x5310b4
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
add esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
add edi, ebp
jmp case.default.0x5310b4
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
add edi, ebp
jmp case.default.0x5310b4
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
sub esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
add edi, ebp
jmp case.default.0x5310b4
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
sub esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
jmp case.default.0x5310b4
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov esi, eax
sub esi, ebp
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov edi, eax
sub edi, ebp
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov ecx, edi
mov edx, esi
call fcn.00512420
test al, al
je 0x53128e
cmp byte [ebx + 0x75], 0
jne 0x531253
mov dword [esp + 0x10], esi
fild dword [esp + 0x10]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebx + 0x98]
add esp, 0xfffffffc
fstp dword [esp]
wait
fild dword [ebx + 0x9c]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fild dword [ebx + 0x60]
fcompp
wait
fnstsw ax
sahf
jb 0x53128e
cmp byte [ebx + 0xd4], 0
jne 0x531287
push 0x28
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov ecx, edi
mov edx, esi
call fcn.0051849c
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jle 0x53128e
cmp dword [esp + 8], 0x3c
jge 0x53128e
mov byte [esp + 5], 1
jmp 0x53129e
mov byte [esp + 5], 1
jmp 0x53129e
dec ebp
cmp ebp, 5
jl 0x53129e
cmp byte [ebx + 0xd], 0
je 0x5310a8
cmp byte [esp + 5], 0
je 0x53153c
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c74
cmp al, 4
jne 0x531387
lea edx, [esp + 0xc]
mov eax, dword [0x586a98]
mov eax, dword [eax]
call fcn.00515f1c
test al, al
je 0x531387
cmp byte [ebx + 0x6c], 0
je 0x531309
mov eax, dword [esp + 0xc]
call fcn.0052431c
mov ebp, eax
mov eax, dword [esp + 0xc]
call fcn.005243b4
imul dword [ebx + 0x70]
mov ecx, 0x64
cdq
idiv ecx
cmp ebp, eax
jg 0x531309
mov eax, ebx
call fcn.00531550
test al, al
jne 0x53137e
mov eax, dword [esp + 0xc]
call fcn.005242f8
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov eax, dword [esp + 0x10]
call fcn.00524308
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov dword [esp + 0x20], esi
fild dword [esp + 0x20]
add esp, 0xfffffffc
fstp dword [esp]
wait
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
add esp, 0xfffffffc
fstp dword [esp]
wait
call fcn.004b7ec4
fcomp dword [0x53154c]
wait
fnstsw ax
sahf
jbe 0x53137e
mov edx, esi
mov eax, dword [esp + 0xc]
call fcn.00524458
mov edx, edi
mov eax, dword [esp + 0xc]
call fcn.00524468
mov eax, dword [esp + 0xc]
call fcn.004041e0
mov ebp, 2
cmp byte [ebx + 0xd4], 0
je 0x5313af
push 0x3e8
push 0
push 0
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.005306f8
mov byte [esp + 5], al
jmp 0x5313f4
cmp byte [esp + 4], 0
je 0x5313d7
push edi
push 3
push 0
push ebx
push 0x530d88
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov ecx, esi
mov edx, ebx
call fcn.00522bb0
mov byte [esp + 5], al
jmp 0x5313f4
push edi
push 3
push 0
push 0
push 0
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov ecx, esi
mov edx, ebx
call fcn.00522bb0
mov byte [esp + 5], al
cmp byte [esp + 5], 0
jne 0x53146d
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c74
cmp al, 4
jne 0x53146d
lea edx, [esp + 0xc]
mov eax, dword [0x586a98]
mov eax, dword [eax]
call fcn.00515f1c
test al, al
je 0x53146d
cmp byte [esp + 4], 0
je 0x531447
push edi
push 3
push 0
push ebx
push 0x530d88
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov ecx, esi
mov edx, ebx
call fcn.00522bb0
mov byte [esp + 5], al
jmp 0x531464
push edi
push 3
push 0
push 0
push 0
mov eax, dword [0x586a98]
mov eax, dword [eax]
mov ecx, esi
mov edx, ebx
call fcn.00522bb0
mov byte [esp + 5], al
mov eax, dword [esp + 0xc]
call fcn.004041e0
cmp byte [esp + 5], 0
jne 0x53147b
dec ebp
jne 0x53138c
cmp byte [esp + 5], 0
jne 0x53150d
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
cmp eax, dword [ebx + 0xbc]
jne 0x5314dc
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
cmp eax, dword [ebx + 0xc0]
jne 0x5314dc
call fcn.004b9988
sub eax, dword [ebx + 0xb8]
cmp eax, 0x1388
jbe 0x53153c
mov eax, dword [0x5865d0]
mov eax, dword [eax]
mov ecx, edi
mov edx, esi
call fcn.0050f220
push 0x3e8
call sub.kernel32.dll_Sleep_2
jmp 0x53153c
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov dword [ebx + 0xbc], eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov dword [ebx + 0xc0], eax
call fcn.004b9988
mov dword [ebx + 0xb8], eax
jmp 0x53153c
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511c88
mov dword [ebx + 0xbc], eax
mov eax, dword [0x5865d0]
mov eax, dword [eax]
call fcn.00511cb0
mov dword [ebx + 0xc0], eax
call fcn.004b9988
mov dword [ebx + 0xb8], eax
movzx eax, byte [esp + 5]
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret