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

Disassembly:
push 0xb0
mov eax, 0x1008add9
call fcn.10063092
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x40]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x78], eax
movzx eax, byte [ebp + 0x10]
xor ebx, ebx
imul eax, eax, 0x22
add eax, esi
cmp dword [ebp + 0x20], ebx
mov edx, dword [eax - 0x13]
mov dword [ebp - 0x64], edx
mov edx, dword [eax - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x44]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x68], 0x1f
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], bl
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], bl
jle 0x10059b8f
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
cmp edi, ebx
je 0x10059b98
mov eax, dword [edi]
mov dword [ebp - 0x70], eax
cmp ecx, ebx
je 0x10059bab
push 6
push ecx
lea eax, [ebp - 0x24]
push eax
call fcn.10062770
add esp, 0xc
push 0xf000
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x10059c02
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x10059be5
push 0x10009ff8
push ebx
push 4
push eax
call fcn.10037a50
add esp, 0x10
jmp 0x10059be7
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xb4], eax
push 0x1008bdb8
lea eax, [ebp - 0xb4]
push eax
call fcn.1006330f
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
cmp edi, ebx
je 0x10059c18
mov dword [ecx + 0x10], 0x8000
jmp 0x10059c1f
mov dword [ecx + 0x10], 0xf000
cmp byte [esi + 1], bl
jne 0x10059c30
mov ecx, dword [ebp - 0x54]
mov edx, dword [eax + 8]
shl ecx, 4
mov dword [edx + 0x10], ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x10]
xor edx, edx
div dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
xor eax, eax
inc eax
cmp dword [ebp + 0x20], ebx
jle 0x10059c53
cmp dword [ebp + 0x20], eax
jne 0x10059c50
cmp byte [ebp + 0x3c], al
je 0x10059c53
mov dword [ebp - 0x34], eax
cmp byte [ebp + 0x34], 1
jne 0x10059c5c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x50]
sub eax, esi
inc eax
cdq
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x30], esi
mov edi, 0xf000
push edi
xor esi, esi
push ebx
push dword [ebp - 0x40]
inc esi
mov dword [ebp - 4], esi
mov byte [ebp - 0x41], 1
call fcn.100620c0
add esp, 0xc
cmp byte [ebp - 0x35], bl
jne 0x10059e87
cmp byte [0x1009c319], 1
jne 0x10059cc0
mov ecx, dword [ebp - 0x3c]
call fcn.1004074d
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
cmp byte [eax + 1], bl
jne 0x10059ced
mov eax, dword [ebp - 0x54]
imul eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x40]
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push ebx
call fcn.1004122b
jmp 0x10059e8a
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push edi
push dword [ebp - 0x40]
call fcn.10040862
cmp dword [ebp - 0x78], 0xffffffff
je 0x10059e8a
cmp dword [ebp + 0x20], ebx
jne 0x10059d11
cmp byte [ebp + 0x3c], bl
je 0x10059d24
cmp dword [ebp + 0x20], esi
jne 0x10059e8a
cmp byte [ebp + 0x3c], 1
jne 0x10059e8a
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x3c]
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
call fcn.1004ce1b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x64]
jne 0x10059d60
push 6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10062770
add esp, 0xc
push 3
pop ecx
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x1c]
xor eax, eax
repe cmpsw word [esi], word es:[edi]
mov ecx, dword [ebp - 0x30]
jne 0x10059d7c
cmp ecx, dword [ebp - 0x50]
jne 0x10059e8a
mov eax, dword [ebp - 0x48]
inc word [eax + 2]
lea edx, [ebp - 0x84]
push edx
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
sub ecx, dword [ebp - 0x34]
inc ecx
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.10053415
mov esi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi - 1]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call fcn.10045f86
push 6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10062770
mov eax, dword [ebp - 0x88]
mov dword [eax], esi
push 6
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0x70], esi
call fcn.10062770
add esp, 0x18
jmp 0x10059e8a
mov byte [ebp - 0x41], bl
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x41], bl
jne 0x1005a050
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
inc eax
cmp edi, eax
jge 0x10059fb6
cmp byte [ebp - 0x35], bl
jne 0x10059fb6
mov esi, dword [ebp - 0x3c]
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x11fd4]
mov dword [ebp - 4], 3
push 0x14
call dword [esi + 0x11fd0]
push dword [ebp - 0x8c]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x88]
mov ecx, dword [ebp - 0x34]
push dword [ebp + 0x3c]
lea ecx, [ecx + eax - 1]
push dword [ebp - 0x78]
inc edi
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push ecx
push eax
push dword [ebp + 0x24]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x48]
push ebx
push dword [ebp - 0x6c]
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x90]
push dword [ebp - 0x80]
call fcn.10059acd
mov eax, dword [ebp - 0x34]
or dword [ebp - 4], 0xffffffff
add dword [ebp - 0x5c], eax
adc dword [ebp - 0x58], ebx
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x50]
jg 0x1005a195
movzx eax, byte [ebp + 0x10]
imul eax, eax, 0x22
mov eax, dword [eax + edi - 0xc]
sub eax, dword [ebp - 0x30]
cmp eax, 0x96
jge 0x10059f48
mov dword [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0x1c], ebx
jbe 0x10059c8a
mov edx, dword [ebp + 0x1c]
imul edx, edx, 0x3e8
mov ecx, eax
sub ecx, dword [ebp - 0x60]
cmp ecx, edx
jbe 0x10059c8a
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xb0]
push eax
mov eax, esi
push dword [eax + 0x11fd4]
push 0xb
call dword [eax + 0x11fd0]
jmp 0x10059c8a
cmp byte [ebp + 0x30], bl
jne 0x1005a026
movzx eax, byte [ebp + 0x10]
mov ecx, dword [ebp - 0x48]
imul eax, eax, 0x22
mov eax, dword [eax + ecx - 0xc]
sub eax, dword [ebp - 0x30]
cmp eax, 0xc8
jle 0x1005a026
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 5
cmp eax, ebx
je 0x1005a002
push dword [ebp - 0x30]
push 0x10009fa8
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
push dword [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.1006213f
mov dword [ebp - 0xa0], ebx
mov dword [esp], 0x1008bdb8
lea eax, [ebp - 0xa0]
jmp 0x10059bfc
push 0xf000
push ebx
push dword [ebp - 0x40]
call fcn.100620c0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x11fd4]
push 0x12
call dword [eax + 0x11fd0]
mov edi, dword [ebp - 0x54]
mov esi, edi
imul esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x4c]
push dword [ebp - 0x6c]
call dword [ebp - 0x80]
test eax, eax
jne 0x1005a0c5
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 6
cmp eax, ebx
je 0x1005a0a1
push dword [ebp - 0x68]
push 0x10009f50
push dword [ebp - 0x68]
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
push dword [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.1006213f
mov dword [ebp - 0xa8], ebx
mov dword [esp], 0x1008bdb8
lea eax, [ebp - 0xa8]
jmp 0x10059bfc
cmp dword [ebp - 0x74], esi
je 0x1005a122
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 7
cmp eax, ebx
je 0x1005a0fe
imul edi, dword [ebp - 0x34]
push edi
push dword [ebp - 0x74]
push 0x10009ee8
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x18
mov ebx, eax
push dword [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.1006213f
mov dword [ebp - 0x9c], ebx
mov dword [esp], 0x1008bdb8
lea eax, [ebp - 0x9c]
jmp 0x10059bfc
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x11c76], 1
jne 0x1005a181
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 8
cmp eax, ebx
je 0x1005a15d
push dword [ebp - 0x30]
push 0x10009e98
push ebx
push 0xe
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
push dword [ebp - 0x40]
or dword [ebp - 4], 0xffffffff
call fcn.1006213f
mov dword [ebp - 0x94], ebx
mov dword [esp], 0x1008bdb8
lea eax, [ebp - 0x94]
jmp 0x10059bfc
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x5c], eax
adc dword [ebp - 0x58], ebx
add dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x50]
jle 0x1005a1b3
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x6c]
call dword [ebp - 0x90]
push dword [ebp - 0x40]
call fcn.1006213f
pop ecx
call fcn.100630fd
ret 0x40
movzx ecx, byte [ebp + 0x10]
mov edx, dword [ebp - 0x48]
imul ecx, ecx, 0x22
mov ecx, dword [ecx + edx - 0xc]
sub ecx, dword [ebp - 0x30]
cmp ecx, 0x96
jge 0x1005a1fa
lea edx, [ecx + 1]
cmp edx, eax
jae 0x1005a1fa
mov ecx, dword [ebp - 0x50]
sub ecx, eax
inc ecx
cmp ecx, dword [ebp - 0x64]
jge 0x1005a1e9
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x7c], eax
jmp 0x1005a1fa
sub eax, edx
imul eax, edi
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 0x1c], ebx
jbe 0x10059c8a
mov edx, dword [ebp + 0x1c]
imul edx, edx, 0x3e8
mov ecx, eax
sub ecx, dword [ebp - 0x60]
cmp ecx, edx
jbe 0x10059c8a
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x11fd4]
push 0xb
call dword [eax + 0x11fd0]
jmp 0x10059c8a