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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
mov ecx, 7
lea eax, [ebp - 0x20]
mov edx, dword [0x4010ac]
call fcn.004071ec
xor eax, eax
push ebp
push 0x51bc78
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x59e184], 0
je 0x51b391
xor eax, eax
call fcn.004f6730
mov byte [ebp - 0x21], 0
mov eax, dword [0x596dac]
mov eax, dword [eax]
shr eax, 0x10
cmp eax, 0x600
mov eax, dword [0x596a00]
setae byte [eax]
xor edx, edx
push ebp
push 0x51bbb9
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x59e194], 0
je 0x51b3cf
mov dl, 1
mov eax, dword [0x59e194]
call fcn.004d5e58
cmp byte [0x59e182], 0
je 0x51b43c
xor eax, eax
push ebp
push 0x51b40f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x59e188], 0
jne 0x51b3fb
mov eax, 0x51bc94
call fcn.004d6940
jmp 0x51b405
mov eax, dword [0x59e188]
call fcn.004d6b24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51b43c
mov eax, 0x51bcfc
call fcn.004d6b80
lea eax, [ebp - 0x2c]
mov ecx, dword [0x59e16c]
mov edx, 0x51bd78
call fcn.00406914
mov eax, dword [ebp - 0x2c]
call fcn.004d6b80
lea eax, [ebp - 0x30]
mov ecx, dword [0x59e170]
mov edx, 0x51bdb8
call fcn.00406914
mov eax, dword [ebp - 0x30]
call fcn.004d6b80
lea eax, [ebp - 0x38]
call fcn.0049d11c
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 0x51bde4
call fcn.00406914
mov eax, dword [ebp - 0x34]
call fcn.004d6b80
call fcn.004f67f8
xor eax, eax
call fcn.0051ac6c
mov dword [0x59e178], eax
mov dl, 1
mov eax, dword [0x519f94]
call fcn.004d8940
mov dword [0x5969b0], eax
mov ecx, dword [0x59e170]
mov edx, dword [0x59e178]
mov eax, dword [0x5969b0]
call fcn.004db560
lea ecx, [ebp - 0x3c]
mov eax, dword [0x5969b0]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.004a0e54
mov edx, dword [ebp - 0x3c]
mov eax, 0x59e17c
call fcn.00406448
mov eax, dword [0x5969b0]
test byte [eax + 0x1d], 0x20
je 0x51b537
mov eax, dword [0x596ae0]
cmp byte [eax], 0
jne 0x51b537
push 1
push 1
mov eax, dword [0x59e17c]
call fcn.004064d4
push eax
mov eax, dword [0x596e88]
mov eax, dword [eax + 0x2fc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004f70e0
call fcn.0042e4b8
mov eax, dword [0x5969b0]
test byte [eax + 0x1d], 1
je 0x51b57a
call fcn.0049e1cc
test al, al
jne 0x51b57a
push 1
push 1
mov eax, dword [0x59e17c]
call fcn.004064d4
push eax
mov eax, dword [0x596e88]
mov eax, dword [eax + 0x1dc]
call fcn.004064d4
mov ecx, 0x30
pop edx
call fcn.004f70e0
call fcn.0042e4b8
mov eax, dword [0x59e178]
xor edx, edx
mov dword [0x59e178], edx
call fcn.00404098
mov al, 2
call fcn.0051ac6c
mov dword [0x59e178], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov ecx, 0x85050a00
mov dx, 0x20
mov eax, dword [0x5969b0]
call fcn.004d8e0c
test al, al
jne 0x51b5bf
mov eax, 0x51be24
call fcn.004d1d2c
cmp dword [0x59e194], 0
je 0x51b5da
lea eax, [ebp - 4]
mov edx, dword [0x596d58]
mov edx, dword [edx]
call fcn.0040532c
jmp 0x51b5e5
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x20]
call fcn.0051b2e0
mov eax, dword [0x5969b0]
cmp byte [eax + 0x10], 0
je 0x51b60d
mov eax, dword [0x596ae0]
cmp byte [eax], 0
jne 0x51b604
mov eax, 0x51bebc
call fcn.004d1d2c
mov al, 1
call fcn.004f75d0
jmp 0x51b614
xor eax, eax
call fcn.004f75d0
call fcn.004f48e8
cmp dword [ebp - 4], 0
je 0x51b71c
call fcn.004f42c4
call fcn.004f4c20
mov eax, dword [0x596a10]
mov edx, dword [0x59e16c]
call fcn.00406448
mov eax, dword [0x596dec]
mov edx, dword [0x5969b0]
mov edx, dword [edx + 0x14]
call fcn.00406448
movzx eax, byte [0x59e183]
or al, byte [0x59e184]
mov edx, dword [0x596b6c]
mov byte [edx], al
mov eax, dword [0x596fe4]
mov edx, dword [ebp - 0x18]
call fcn.00406448
mov eax, dword [0x596c98]
mov edx, dword [ebp - 0x14]
call fcn.00406448
mov eax, dword [0x596af8]
mov edx, dword [ebp - 0x10]
call fcn.00406448
mov eax, dword [0x596b98]
mov edx, dword [ebp - 0xc]
call fcn.00406448
mov eax, dword [ebp - 8]
test eax, eax
je 0x51b6a5
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 8]
call fcn.0051b228
mov dl, 1
mov eax, dword [0x516418]
call fcn.00516c30
mov edx, dword [0x596bbc]
mov dword [edx], eax
mov eax, 0x4f61d0
mov edx, dword [0x596bbc]
mov edx, dword [edx]
mov dword [edx + 0xc], eax
mov eax, 0x4f63e8
mov edx, dword [0x596bbc]
mov edx, dword [edx]
mov dword [edx + 0x10], eax
mov eax, 0x4f63f4
mov edx, dword [0x596bbc]
mov edx, dword [edx]
mov dword [edx + 0x14], eax
mov eax, 0x4f6400
mov edx, dword [0x596bbc]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov ecx, dword [0x596c5c]
mov ecx, dword [ecx]
mov eax, dword [0x596bbc]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
call fcn.00516d28
xor edx, edx
push ebp
push 0x51bb65
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x51ba98
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x596bbc]
cmp dword [eax], 0
je 0x51b7ab
xor edx, edx
push ebp
push 0x51b77f
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 1
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x596bbc]
mov eax, dword [eax]
mov edx, 0x51bf50
call fcn.00516ee4
pop dword fs:[0]
add esp, 8
jmp 0x51b798
test al, al
jne 0x51b7ab
mov eax, 0x51bfe0
call fcn.004d6b80
call fcn.0042e4b8
cmp byte [0x59e183], 0
jne 0x51b7e5
cmp byte [0x59e184], 0
jne 0x51b7e5
push 0x124
push 1
push 6
mov eax, dword [0x5969b0]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x59e17c]
mov al, 0x27
call fcn.0051a378
cmp eax, 6
je 0x51b7e5
call fcn.0042e4b8
xor edx, edx
xor eax, eax
call fcn.0051aae0
jmp 0x51b813
push 0x31
push 1
push 2
mov eax, dword [0x5969b0]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x59e17c]
mov al, 0xbd
call fcn.0051a378
dec eax
je 0x51b813
call fcn.0042e4b8
mov eax, dword [0x5969b0]
call fcn.004d8e60
test al, al
jne 0x51b7f0
jmp 0x51b836
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x596e78]
mov eax, dword [eax]
call fcn.0049a348
mov eax, dword [0x597064]
cmp byte [eax], 0
jne 0x51b823
mov eax, dword [0x596a00]
mov byte [eax], 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x5969b0]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.004a0e54
mov edx, dword [ebp - 0x48]
mov eax, dword [0x596e78]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.0049ea20
call fcn.0051a1bc
xor edx, edx
mov al, 1
call fcn.0051aae0
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov eax, dword [0x5969b0]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x24], edx
mov ecx, 0x51a5fc
mov dl, 1
mov eax, dword [0x5969b0]
call fcn.004d9c30
mov byte [ebp - 0x22], al
movzx eax, byte [ebp - 0x22]
mov edx, dword [0x596da0]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x51c048
call fcn.004d6e04
mov eax, dword [0x5969b0]
cmp byte [eax + 0x1c], 0
jne 0x51b8e1
mov eax, dword [0x5969b0]
test byte [eax + 0x1d], 8
jne 0x51b8e1
xor eax, eax
jmp 0x51b8e3
mov al, 1
mov byte [ebp - 0x23], al
mov eax, dword [0x596bbc]
cmp dword [eax], 0
je 0x51b981
mov eax, dword [0x596bbc]
mov eax, dword [eax]
mov edx, 0x51c074
call fcn.00516dd4
test al, al
je 0x51b981
cmp byte [ebp - 0x23], 0
jne 0x51b977
xor eax, eax
push ebp
push 0x51b95c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x596bbc]
mov eax, dword [eax]
mov edx, 0x51c074
call fcn.00516ee4
test al, al
je 0x51b952
mov byte [ebp - 0x23], 1
mov eax, 0x51c098
call fcn.004d6b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51b981
mov eax, 0x51c178
call fcn.004d6b80
movzx eax, byte [ebp - 0x23]
mov edx, dword [0x596da0]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea edx, [ebp - 0x44]
xor ecx, ecx
mov eax, 0x51c230
call fcn.004d6e04
cmp byte [0x59e184], 0
jne 0x51b9dc
mov eax, dword [0x596e78]
mov eax, dword [eax]
call fcn.0049a348
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x28]
cmp eax, 0x3e8
jae 0x51b9dc
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x51b9ad
mov eax, dword [0x596b0c]
mov eax, dword [eax]
mov edx, dword [0x596b0c]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
mov dl, 1
mov al, 2
call fcn.0051aae0
cmp byte [ebp - 0x23], 0
jne 0x51ba3c
cmp byte [0x59e183], 0
jne 0x51ba85
cmp byte [0x59e184], 0
jne 0x51ba85
push 0x10040
push 1
push 1
mov eax, dword [0x5969b0]
mov edx, dword [eax + 0x18]
movzx eax, byte [ebp - 0x22]
movzx eax, byte [eax + 0x5969bc]
mov ecx, dword [0x59e17c]
call fcn.0051a378
jmp 0x51ba85
cmp byte [0x59e185], 0
jne 0x51ba75
cmp byte [0x59e184], 0
jne 0x51ba71
push 0x10024
push 1
push 6
mov eax, dword [0x5969b0]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x59e17c]
mov al, 0xbb
call fcn.0051a378
cmp eax, 6
jne 0x51ba75
mov byte [ebp - 0x21], 1
cmp byte [ebp - 0x21], 0
jne 0x51ba85
mov eax, 0x51c274
call fcn.004d6b80
mov dl, 1
mov al, 3
call fcn.0051aae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51baac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bb6f
xor edx, edx
push ebp
push 0x51bae7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x596b0c]
mov eax, dword [eax]
mov edx, dword [0x596b0c]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51baf6
mov eax, dword [0x596bbc]
cmp dword [eax], 0
je 0x51bb52
xor eax, eax
push ebp
push 0x51bb39
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
xor eax, eax
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0x11
lea ecx, [ebp - 0x44]
mov eax, dword [0x596bbc]
mov eax, dword [eax]
mov edx, 0x51c2d0
call fcn.00516e30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51bb52
mov eax, dword [0x596e78]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
call fcn.0049eab0
ret