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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x586d8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5abe30]
cmp byte [eax], 0
je 0x5864f2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab858]
sub eax, dword [edx]
cmp eax, 0x1388
jbe 0x5864f2
mov eax, dword [0x5abe30]
mov byte [eax], 0
call fcn.005069f0
mov eax, dword [ebp - 8]
sub eax, 0x34
jae 0x586753
mov eax, dword [0x5abe30]
cmp byte [eax], 0
jne 0x5869cb
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8], 0
je 0x5869cb
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8 + 0xf], 3
jbe 0x58655f
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8 + 0xf], 0x3c
je 0x58655f
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8 + 0xf], 0x1f
jne 0x5869cb
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov ecx, dword [0x5abe30]
lea esi, [edx + eax*8]
mov edi, ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov byte [edx + eax*8], 0
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8 + 0xf], 4
jne 0x5866e8
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8 + 0x10], 0x64
jae 0x5866e8
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8 + 0x10], 0x32
jae 0x58665f
mov edx, 0x586d9c
lea eax, [ebp - 0x40]
call fcn.004030ac
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
lea edx, [edx + eax*8]
lea eax, [ebp - 0x40]
mov cl, 0xf
call fcn.0040307c
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64]
call fcn.004030ac
mov edx, 0x586da0
lea eax, [ebp - 0x64]
mov cl, 0x23
call fcn.0040307c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x30]
call fcn.004049ec
mov edx, dword [ebp - 0x30]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov cx, word [0x586db8]
call fcn.0051bde4
cmp eax, 6
je 0x5866e8
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov ecx, dword [0x5abe30]
lea edi, [edx + eax*8]
mov esi, ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
jmp 0x586d6c
mov edx, 0x586d9c
lea eax, [ebp - 0x40]
call fcn.004030ac
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
lea edx, [edx + eax*8]
lea eax, [ebp - 0x40]
mov cl, 0xf
call fcn.0040307c
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64]
call fcn.004030ac
mov edx, 0x586da0
lea eax, [ebp - 0x64]
mov cl, 0x23
call fcn.0040307c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x68]
call fcn.004049ec
mov edx, dword [ebp - 0x68]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov cx, word [0x586db8]
call fcn.0051bde4
cmp eax, 6
je 0x5866e8
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov ecx, dword [0x5abe30]
lea edi, [edx + eax*8]
mov esi, ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
jmp 0x586d6c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab858]
mov dword [edx], eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 8]
lea edx, [edx + edx*8]
mov ecx, dword [0x5ac178]
lea edx, [ecx + edx*8]
call fcn.004049ec
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov edx, dword [edx + eax*8 + 0x40]
mov eax, dword [ebp - 4]
call fcn.0058d7e0
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
movzx edx, byte [edx + eax*8 + 0x10]
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov ecx, dword [0x5ac178]
movzx eax, byte [ecx + eax*8 + 0xf]
call fcn.00502cd0
jmp 0x5869cb
mov eax, dword [0x5abe30]
cmp byte [eax], 0
jne 0x5869cb
cmp dword [ebp - 8], 0xffffffff
jne 0x5869cb
mov eax, dword [0x5abf88]
cmp byte [eax], 0
je 0x5869cb
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
cmp byte [eax + 0x26c], 0
jne 0x5869cb
mov eax, dword [0x5abf88]
mov byte [eax], 0
mov eax, dword [0x5abe34]
mov edx, dword [0x5abe30]
lea esi, [eax + 8]
mov edi, edx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x5abe34]
mov byte [eax + 8], 0
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 0x30
jne 0x586883
mov eax, dword [0x5ab5e8]
xor ecx, ecx
mov edx, 0x288
call fcn.004031c8
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x7a8]
mov byte [eax + 0x26c], 0
mov eax, dword [0x5ac220]
mov eax, dword [eax]
mov edx, 0x208
call fcn.00492fa8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x58686a
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
mov edx, 0xd7
call fcn.004488f0
mov eax, dword [ebp - 0x28]
call fcn.00486098
mov edx, 0x258
sub edx, eax
sar edx, 1
jns 0x586836
adc edx, 0
sub edx, 6
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
call fcn.00448930
mov edx, dword [0x5ac220]
mov edx, dword [edx]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
mov ecx, 0x208
call fcn.00499fc4
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x780]
mov dl, 1
call fcn.0049ad58
jmp 0x586d6c
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 4
jne 0x586984
mov eax, dword [0x5abe30]
cmp byte [eax + 0x10], 0x64
jae 0x586984
mov eax, dword [0x5abe30]
cmp byte [eax + 0x10], 0x32
jae 0x586918
mov edx, 0x586d9c
lea eax, [ebp - 0x40]
call fcn.004030ac
mov edx, dword [0x5abe30]
lea eax, [ebp - 0x40]
mov cl, 0xf
call fcn.0040307c
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64]
call fcn.004030ac
mov edx, 0x586da0
lea eax, [ebp - 0x64]
mov cl, 0x23
call fcn.0040307c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x70]
call fcn.004049ec
mov edx, dword [ebp - 0x70]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov cx, word [0x586db8]
call fcn.0051bde4
cmp eax, 6
je 0x586984
mov eax, dword [0x5abe30]
call fcn.00506590
jmp 0x586d6c
mov edx, 0x586d9c
lea eax, [ebp - 0x40]
call fcn.004030ac
mov edx, dword [0x5abe30]
lea eax, [ebp - 0x40]
mov cl, 0xf
call fcn.0040307c
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x64]
call fcn.004030ac
mov edx, 0x586da0
lea eax, [ebp - 0x64]
mov cl, 0x23
call fcn.0040307c
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x74]
call fcn.004049ec
mov edx, dword [ebp - 0x74]
mov eax, dword [0x5ac3a0]
mov eax, dword [eax]
mov cx, word [0x586db8]
call fcn.0051bde4
cmp eax, 6
je 0x586984
mov eax, dword [0x5abe30]
call fcn.00506590
jmp 0x586d6c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x5ab858]
mov dword [edx], eax
lea eax, [ebp - 0x78]
mov edx, dword [0x5abe30]
call fcn.004049ec
mov ecx, dword [ebp - 0x78]
mov edx, dword [0x5abe30]
mov edx, dword [edx + 0x40]
mov eax, dword [ebp - 4]
call fcn.0058d7e0
mov edx, dword [0x5abe30]
movzx edx, byte [edx + 0x10]
mov eax, dword [0x5abe30]
movzx eax, byte [eax + 0xf]
call fcn.00502cd0
mov eax, dword [0x5abe30]
cmp byte [eax], 0
je 0x586a67
cmp dword [ebp - 8], 0xffffffff
jne 0x586a67
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 4
jae 0x586a67
mov eax, dword [0x5abc00]
cmp byte [eax], 0x32
je 0x586a67
mov dword [ebp - 0xc], 6
mov eax, dword [0x5abe30]
mov edx, dword [ebp - 0xc]
lea edx, [edx + edx*8]
mov ecx, dword [0x5ac178]
lea edx, [ecx + edx*8]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403158
jne 0x586a5e
mov eax, dword [0x5abc00]
mov al, byte [eax]
mov edx, dword [0x5ac018]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov ecx, dword [0x5abd20]
lea esi, [edx + eax*8]
mov edi, ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov byte [edx + eax*8], 0
jmp 0x586a67
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x5869ff
mov eax, dword [0x5abe30]
cmp byte [eax], 0
je 0x586ae8
cmp dword [ebp - 8], 0xffffffff
jle 0x586ae8
cmp dword [ebp - 8], 6
jge 0x586ae8
mov dword [ebp - 0xc], 6
mov eax, dword [0x5abe30]
mov edx, dword [ebp - 0xc]
lea edx, [edx + edx*8]
mov ecx, dword [0x5ac178]
lea edx, [ecx + edx*8]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403158
jne 0x586adf
mov al, byte [ebp - 8]
mov edx, dword [0x5ac018]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov ecx, dword [0x5abd20]
lea esi, [edx + eax*8]
mov edi, ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov byte [edx + eax*8], 0
jmp 0x586ae8
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x586a84
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x22], 0
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 0
je 0x586b16
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 3
jne 0x586b58
mov eax, dword [0x5abe30]
cmp byte [eax + 0x10], 4
je 0x586b58
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
lea eax, [edx + eax*8]
mov edx, dword [0x5abe30]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403158
jne 0x586b3f
inc dword [ebp - 0x20]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x586b1b
cmp dword [ebp - 0x20], 0
jne 0x586b54
mov byte [ebp - 0x15], 1
jmp 0x586b58
mov byte [ebp - 0x15], 0
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 0
je 0x586b79
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 3
jne 0x586be3
mov eax, dword [0x5abe30]
cmp byte [eax + 0x10], 4
je 0x586be3
cmp byte [ebp - 0x15], 0
je 0x586be3
mov eax, dword [0x5ab730]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x586be3
mov eax, dword [0x5ab730]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x586be3
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x5ab730]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.0041b11c
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5abe30]
mov edx, dword [ebp - 0x1c]
add edx, 4
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403158
jne 0x586bdb
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x22], 1
inc dword [ebp - 0xc]
dec dword [ebp - 0x2c]
jne 0x586ba6
cmp dword [ebp - 0xc], 0x34
je 0x586bf3
cmp dword [ebp - 0x20], 0
jne 0x586d6c
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8], 0
jne 0x586c12
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x2f
jne 0x586bfd
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
movzx eax, byte [edx + eax*8 + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x586c52
cmp byte [ebp - 0x15], 0
je 0x586c52
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8], 0
je 0x586c52
mov byte [ebp - 0x21], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x586c20
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 0
jne 0x586c71
mov eax, dword [0x5abe30]
cmp byte [eax + 0x10], 3
jne 0x586c80
mov eax, dword [0x5abe30]
cmp byte [eax + 0xf], 3
jne 0x586d3b
cmp dword [ebp - 0x10], 5
jle 0x586d3b
cmp dword [ebp - 0x20], 0
jne 0x586d3b
mov eax, dword [0x5abcb8]
cmp byte [eax], 0
je 0x586d3b
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
movzx eax, byte [edx + eax*8 + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x586d2e
cmp byte [ebp - 0x15], 0
je 0x586d2e
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8], 0
je 0x586d2e
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
cmp byte [edx + eax*8 + 0xf], 0x1f
jne 0x586d2e
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0xc]
lea edx, [edx + edx*8]
mov ecx, dword [0x5ac178]
lea edx, [ecx + edx*8]
call fcn.004049ec
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov edx, dword [edx + eax*8 + 0x40]
mov eax, dword [ebp - 4]
call fcn.0058d7e0
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*8]
mov edx, dword [0x5ac178]
mov byte [edx + eax*8], 0
mov byte [ebp - 0x15], 0
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x34
jne 0x586ca7
cmp dword [ebp - 0x10], 5
jg 0x586d6c
cmp byte [ebp - 0x21], 0
je 0x586d6c
cmp byte [ebp - 0x22], 0
je 0x586d6c
cmp dword [ebp - 0x20], 0
jne 0x586d6c
push 0xff0000
mov ecx, 0xffffff
mov edx, 0x586dc4
mov eax, dword [0x5b6a14]
call fcn.0057ee70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x586d96
lea eax, [ebp - 0x7c]
mov edx, 6
call fcn.004047ac
lea eax, [ebp - 0x30]
call fcn.00404788
ret