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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ab8b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x110dc
call fcn.10062090
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x11058], eax
mov eax, dword [ebp + 0x20]
mov esi, ecx
mov dword [ebp - 0x11034], eax
lea eax, [esi + 0x11fa4]
push eax
lea ecx, [ebp - 0x110ec]
mov dword [ebp - 0x11054], esi
mov dword [ebp - 0x11068], ebx
mov dword [ebp - 0x1108c], ebx
mov dword [ebp - 0x11064], ebx
mov byte [ebp - 0x1102d], bl
mov byte [ebp - 0x11039], bl
mov byte [ebp - 0x1103b], bl
mov dword [ebp - 0x110a0], ebx
mov dword [ebp - 0x11024], ebx
mov dword [ebp - 0x11098], ebx
mov dword [ebp - 0x11070], ebx
mov dword [ebp - 0x1106c], ebx
mov dword [ebp - 0x1107c], ebx
mov byte [ebp - 0x1103a], 0xff
mov dword [ebp - 0x11050], ebx
mov dword [ebp - 0x1104c], ebx
mov dword [ebp - 0x11048], ebx
mov dword [ebp - 0x11090], ebx
call fcn.10037ac7
mov edi, 0x4000000
cmp dword [esi + 0x11fc8], edi
mov dword [ebp - 4], ebx
jge 0x100567cc
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x11038], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x100567b0
push edi
push dword [esi + 0x11fc8]
push 0x10009798
push ebx
push 0x27
push eax
call fcn.10037a50
add esp, 0x18
jmp 0x100567b2
xor eax, eax
mov dword [ebp - 0x110bc], eax
mov byte [ebp - 4], bl
push 0x1008bdb8
lea eax, [ebp - 0x110bc]
push eax
call fcn.1006330f
mov ecx, esi
call fcn.1004074d
mov ecx, esi
call fcn.100455c5
mov edi, eax
cmp edi, 3
jle 0x10056826
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x11038], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x1005680e
push edi
push 0x10009740
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x14
jmp 0x10056810
xor eax, eax
mov dword [ebp - 0x1109c], eax
mov byte [ebp - 4], bl
push 0x1008bdb8
lea eax, [ebp - 0x1109c]
jmp 0x100567c6
mov eax, dword [esi + 8]
cmp byte [ebp + 0xc], 1
mov dword [eax + 0x10], 0xf000
setne al
dec al
and al, 0x20
push edi
mov ecx, esi
mov byte [esi + 0x11c76], bl
mov byte [esi + 0x11c75], 3
mov dword [esi + 0x11fcc], 0x990
mov byte [ebp - 0x1102c], al
mov byte [ebp - 4], 3
call fcn.10045169
push ebx
push ebx
push dword [esi + 0x11fd4]
push 0x20
call dword [esi + 0x11fd0]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x1102c]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push 3
push 3
call fcn.10044f52
push ebx
push ebx
push dword [esi + 0x11fd4]
push 4
call dword [esi + 0x11fd0]
mov ecx, dword [ebp - 0x11058]
add ecx, 0x38
mov eax, dword [ecx]
lea edx, [ebp - 0x11044]
push edx
mov dword [ebp - 0x1102c], ecx
call dword [eax + 8]
mov ecx, dword [eax]
push ebx
push dword [esi + 0x11fcc]
mov dword [ebp - 0x110c4], ecx
mov eax, dword [eax + 4]
push eax
push ecx
mov dword [ebp - 0x110c0], eax
call fcn.10063260
mov dword [ebp - 0x11078], eax
lea eax, [ebp - 0x11078]
push eax
lea eax, [ebp - 0x110c4]
push eax
push dword [esi + 0x11fd4]
mov dword [ebp - 0x11074], edx
push 5
call dword [esi + 0x11fd0]
mov edi, 0x1000
push edi
lea eax, [ebp - 0x11014]
push ebx
push eax
call fcn.100620c0
add esp, 0xc
push 0xff
push 1
push edi
lea eax, [ebp - 0x11014]
push eax
mov ecx, esi
call fcn.100410d1
lea eax, [ebp - 0x11090]
push eax
lea eax, [ebp - 0x1103a]
push eax
lea eax, [ebp - 0x11098]
push eax
lea eax, [ebp - 0x11024]
push eax
lea eax, [ebp - 0x110a0]
push eax
lea eax, [ebp - 0x1103b]
push eax
lea eax, [ebp - 0x11039]
push eax
lea eax, [ebp - 0x11014]
push eax
call fcn.100378c1
push edi
lea eax, [ebp - 0x1014]
push ebx
push eax
call fcn.100620c0
add esp, 0xc
push edi
lea eax, [ebp - 0x1014]
push eax
mov ecx, esi
call fcn.1004b18c
push ebx
push dword [ebp - 0x1001]
mov ecx, esi
push dword [ebp - 0x1002]
push dword [ebp - 0x1003]
call fcn.10046669
mov edi, eax
lea eax, [edi + 0x97]
cdq
xor eax, edx
sub eax, edx
inc eax
push 0x14800
mov dword [ebp - 0x11028], eax
mov dword [ebp - 0x11024], edi
mov dword [ebp - 0x11070], edi
call fcn.10062b5c
pop ecx
mov ecx, eax
mov dword [ebp - 0x11038], ecx
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x10056a07
lea eax, [esi + 0x11fd8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x11034]
push dword [ebp - 0x11078]
push dword [ebp - 0x11028]
push edi
call fcn.1004f319
jmp 0x10056a09
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x11050], eax
cmp eax, ebx
jne 0x10056a5d
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x10056a43
push 0x100096d8
push ebx
push 4
push eax
call fcn.10037a50
add esp, 0x10
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x110b4], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110b4]
jmp 0x100567c6
push 0x1108
call fcn.10062b5c
pop ecx
mov ecx, eax
mov dword [ebp - 0x11038], ecx
mov byte [ebp - 4], 6
cmp ecx, ebx
je 0x10056a9c
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x11034]
movzx eax, byte [eax + 0x31d]
push eax
push 1
push 0x96
push 0xffffff6a
call fcn.1004f633
jmp 0x10056a9e
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1104c], eax
cmp eax, ebx
jne 0x10056af2
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x10056ad8
push 0x10009670
push ebx
push 4
push eax
call fcn.10037a50
add esp, 0x10
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x11080], ebx
push 0x1008bdb8
lea eax, [ebp - 0x11080]
jmp 0x100567c6
push 0x1100
call fcn.10062b5c
pop ecx
mov ecx, eax
mov dword [ebp - 0x11038], ecx
mov byte [ebp - 4], 8
cmp ecx, ebx
je 0x10056b2b
mov eax, dword [ebp - 0x11034]
push dword [ebp + 0xc]
movzx eax, byte [eax + 0x31d]
push eax
push dword [ebp - 0x11078]
call fcn.1004f91c
jmp 0x10056b2d
xor eax, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x11048], eax
cmp eax, ebx
jne 0x10056b81
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x10056b67
push 0x10009608
push ebx
push 4
push eax
call fcn.10037a50
add esp, 0x10
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x110b8], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110b8]
jmp 0x100567c6
push dword [esi + 0x11fbc]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
test eax, eax
jne 0x10056be2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x10056bc8
push esi
push 0x100095a8
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x110a4], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110a4]
jmp 0x100567c6
push dword [esi + 0x11fc0]
call edi
test eax, eax
jne 0x10056c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x10056c23
push esi
push 0x10009540
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x11088], ebx
push 0x1008bdb8
lea eax, [ebp - 0x11088]
jmp 0x100567c6
lea ecx, [esi + 0x3020]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0x11c78]
call fcn.10041c43
mov eax, dword [ebp - 0x1102c]
mov dword [esi + 0x11c7c], eax
lea eax, [ebp - 0x1108c]
push eax
push ebx
push esi
push 0x10044a2b
push ebx
push ebx
mov dword [esi + 0x11fc4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x11068], eax
cmp eax, ebx
jne 0x10056cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x10056cba
push esi
push 0x100094e8
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x110a8], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110a8]
jmp 0x100567c6
lea eax, [ebp - 0x11068]
push eax
lea ecx, [ebp - 0x110e0]
call fcn.100379a4
mov eax, dword [esi + 0x11fc8]
cdq
mov ecx, 0xb0
idiv ecx
push ebx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x11064], eax
lea eax, [ebp - 0x11064]
push eax
push dword [esi + 0x11fd4]
push 6
call dword [esi + 0x11fd0]
push dword [ebp - 0x11064]
push dword [esi + 0x11fbc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x10056d7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x1102c], eax
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x10056d62
push edi
push esi
push 0x10009480
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x18
mov ebx, eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x11094], ebx
push 0x1008bdb8
lea eax, [ebp - 0x11094]
jmp 0x100567c6
push ebx
push ebx
push dword [esi + 0x11fd4]
push 7
call dword [esi + 0x11fd0]
push ebx
push ebx
push dword [esi + 0x11fd4]
push 0x28
call dword [esi + 0x11fd0]
mov dword [ebp - 0x11060], ebx
mov dword [ebp - 0x1105c], ebx
mov dword [ebp - 0x11034], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x11058], eax
mov dword [ebp - 0x1102c], eax
mov eax, dword [ebp - 0x11028]
mov dword [ebp - 0x11028], eax
mov edi, 0x9900
push 0xf000
lea eax, [ebp - 0x10014]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x11050]
add esp, 0xc
add ecx, 0x38
cmp dword [ebp - 0x11028], 0x10
jle 0x10056e31
mov edx, dword [ecx]
lea eax, [ebp - 0x10014]
push eax
xor eax, eax
push eax
mov eax, edi
push eax
call dword [edx + 4]
push edi
push dword [ebp - 0x11024]
lea eax, [ebp - 0x10014]
push 0x10
push eax
mov ecx, esi
call fcn.10041963
sub dword [ebp - 0x11028], 0x10
add dword [ebp - 0x11024], 0x10
jmp 0x10056dd1
mov edi, dword [ebp - 0x11028]
imul edi, edi, 0x990
mov eax, edi
cdq
mov dword [ebp - 0x11040], edx
lea edx, [ebp - 0x10014]
push edx
push dword [ebp - 0x11040]
mov dword [ebp - 0x11044], eax
push dword [ebp - 0x11044]
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push dword [ebp - 0x11024]
lea eax, [ebp - 0x10014]
push dword [ebp - 0x11028]
mov ecx, esi
push eax
call fcn.10041963
mov eax, dword [ebp - 0x11028]
add dword [ebp - 0x11024], eax
mov dword [ebp - 0x11028], 0x96
mov edi, 0x9900
push 0xf000
lea eax, [ebp - 0x10014]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x1104c]
add esp, 0xc
add ecx, 0x38
cmp dword [ebp - 0x11028], 0x10
jle 0x10056efa
mov edx, dword [ecx]
lea eax, [ebp - 0x10014]
push eax
xor eax, eax
push eax
mov eax, edi
push eax
call dword [edx + 4]
push edi
push dword [ebp - 0x11024]
lea eax, [ebp - 0x10014]
push 0x10
push eax
mov ecx, esi
call fcn.10041963
sub dword [ebp - 0x11028], 0x10
add dword [ebp - 0x11024], 0x10
jmp 0x10056e9a
mov edi, dword [ebp - 0x11028]
imul edi, edi, 0x990
mov eax, edi
cdq
mov dword [ebp - 0x11040], edx
lea edx, [ebp - 0x10014]
push edx
push dword [ebp - 0x11040]
mov dword [ebp - 0x11044], eax
push dword [ebp - 0x11044]
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push dword [ebp - 0x11024]
mov edi, dword [ebp - 0x11028]
push edi
lea eax, [ebp - 0x10014]
push eax
mov ecx, esi
call fcn.10041963
add dword [ebp - 0x11024], edi
lea ecx, [esi + 0x3020]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
mov dword [ebp - 0x11038], edi
cmp edi, ebx
je 0x100571be
cmp byte [edi + 0x19], 1
jne 0x10056f89
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x110ac], eax
push 0x1008bdb8
lea eax, [ebp - 0x110ac]
jmp 0x100567c6
push dword [edi + 0x24]
mov ecx, esi
push dword [ebp - 0x11024]
push dword [edi + 0x28]
push dword [edi + 0x2c]
call fcn.10041963
mov al, byte [edi + 0x18]
mov byte [ebp - 0x1102d], al
mov eax, dword [edi + 0x28]
add dword [ebp - 0x11024], eax
mov eax, dword [edi + 0x28]
cdq
add dword [ebp - 0x11060], eax
adc dword [ebp - 0x1105c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x11028], eax
cmp dword [ebp + 0x18], ebx
jbe 0x10057009
mov edx, dword [ebp + 0x18]
imul edx, edx, 0x3e8
mov ecx, eax
sub ecx, dword [ebp - 0x11058]
cmp ecx, edx
jbe 0x10057009
mov dword [ebp - 0x11058], eax
lea eax, [ebp - 0x11060]
push eax
lea eax, [ebp - 0x11078]
push eax
push dword [esi + 0x11fd4]
push 0xc
call dword [esi + 0x11fd0]
cmp dword [ebp + 0x1c], ebx
jbe 0x10057139
inc dword [ebp - 0x11034]
cmp dword [ebp - 0x11034], 8
jle 0x10057096
xor eax, eax
lea edi, [ebp - 0x11020]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xc
lea eax, [ebp - 0x11020]
push eax
mov ecx, esi
mov dword [ebp - 0x11034], ebx
mov byte [ebp - 4], 0xf
call fcn.10041551
mov dword [ebp - 4], 0xd
jmp 0x10057096
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x11028]
imul edx, edx, 0x3e8
mov ecx, eax
sub ecx, dword [ebp - 0x1102c]
cmp ecx, edx
jbe 0x10057139
movzx ecx, byte [ebp - 0x1101b]
mov dword [ebp - 0x1102c], eax
movzx eax, byte [ebp - 0x1101c]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x1101a]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x11019]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x11017]
mov dword [ebp - 0x1106c], eax
movzx eax, byte [ebp - 0x11018]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x11016]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x11015]
shl eax, 8
or eax, ecx
mov dword [ebp - 0x1107c], eax
lea eax, [ebp - 0x1107c]
push eax
lea eax, [ebp - 0x1106c]
push eax
push dword [esi + 0x11fd4]
push 0xd
call dword [esi + 0x11fd0]
push dword [ebp - 0x11038]
mov ecx, dword [esi + 0x11c78]
call fcn.10041c7a
push ebx
push dword [esi + 0x11fc0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10056f4f
cmp byte [esi + 0x11c76], 1
jne 0x10056f4f
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x11038], eax
mov byte [ebp - 4], 0x11
cmp eax, ebx
je 0x100571a4
push dword [ebp - 0x1105c]
push dword [ebp - 0x11060]
push 0x10009430
push ebx
push 0xe
push eax
call fcn.10037a50
add esp, 0x18
mov ebx, eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x110b0], ebx
push 0x1008bdb8
lea eax, [ebp - 0x110b0]
jmp 0x100567c6
cmp byte [ebp - 0x1102d], bl
jne 0x100571e7
push ebx
push ebx
push dword [esi + 0x11fd4]
push 0x19
call dword [esi + 0x11fd0]
push dword [0x10097748]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10056f4f
mov dword [ebp - 0x11028], 0x1a5e
mov edi, 0x9900
push 0xf000
lea eax, [ebp - 0x10014]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x11048]
add esp, 0xc
add ecx, 0x38
cmp dword [ebp - 0x11028], 0x10
jle 0x10057256
mov edx, dword [ecx]
lea eax, [ebp - 0x10014]
push eax
xor eax, eax
push eax
mov eax, edi
push eax
call dword [edx + 4]
push edi
push dword [ebp - 0x11024]
lea eax, [ebp - 0x10014]
push 0x10
push eax
mov ecx, esi
call fcn.10041963
sub dword [ebp - 0x11028], 0x10
add dword [ebp - 0x11024], 0x10
jmp 0x100571f6
mov edi, dword [ebp - 0x11028]
imul edi, edi, 0x990
mov eax, edi
cdq
mov dword [ebp - 0x11040], edx
lea edx, [ebp - 0x10014]
push edx
push dword [ebp - 0x11040]
mov dword [ebp - 0x11044], eax
push dword [ebp - 0x11044]
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push dword [ebp - 0x11024]
mov edi, dword [ebp - 0x11028]
push edi
lea eax, [ebp - 0x10014]
push eax
mov ecx, esi
call fcn.10041963
add dword [ebp - 0x11024], edi
push ebx
push ebx
push dword [esi + 0x11fd4]
push 0x29
call dword [esi + 0x11fd0]
push ebx
push ebx
push dword [esi + 0x11fd4]
push 8
call dword [esi + 0x11fd0]
mov ecx, esi
call fcn.10053bef
push ebx
push ebx
push dword [esi + 0x11fd4]
push 9
call dword [esi + 0x11fd0]
lea ecx, [ebp - 0x110e0]
mov byte [ebp - 4], 3
call fcn.100379c7
mov ecx, dword [ebp - 0x11050]
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x10057304
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x1104c]
cmp ecx, ebx
je 0x10057314
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x11048]
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
call fcn.10044f16
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110ec]
call fcn.10037af5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10062074
leave
ret 0x1c