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

Disassembly:
sub esp, 8
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x102d1988
mov ebx, eax
call ebp
cmp eax, 1
jne 0x1005e175
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, 0x3e8
ja 0x1005e175
push 1
push 0x102d1988
call ebp
cmp eax, 1
je 0x1005e154
sub dword [0x102d198c], 1
jns 0x1005e188
mov dword [0x102d198c], 0
push 0
push 0x102d1988
call ebp
push esi
call fcn.1006bb60
push 0
push esi
call fcn.1000d030
add esp, 0xc
lea edi, [esi + 0x8c]
mov ebp, 0x65
lea ecx, [ecx]
mov ebx, dword [edi]
call fcn.100523e0
mov eax, dword [edi]
test eax, eax
je 0x1005e1cc
push eax
call fcn.1011163c
add esp, 4
mov dword [edi], 0
add edi, 4
sub ebp, 1
jne 0x1005e1b0
push esi
call fcn.1005a840
push esi
call fcn.1005aa00
mov eax, dword [esi + 0x25ec]
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x1005e1f6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.100647b0
push esi
call fcn.10020120
mov eax, dword [esi + 0x3274]
add esp, 8
cmp eax, ebx
je 0x1005e21e
push eax
call fcn.1011163c
add esp, 4
mov dword [esi + 0x3274], ebx
mov eax, dword [esi + 0x326c]
cmp eax, ebx
je 0x1005e237
push eax
call fcn.1011163c
add esp, 4
mov dword [esi + 0x326c], ebx
mov eax, dword [esi + 0x3278]
cmp eax, ebx
je 0x1005e253
add eax, 0xfffffff0
push eax
call fcn.1011163c
add esp, 4
mov dword [esi + 0x3278], ebx
mov eax, dword [esi + 0x327c]
cmp eax, ebx
je 0x1005e26c
push eax
call fcn.1011163c
add esp, 4
mov dword [esi + 0x327c], ebx
mov eax, dword [esi + 0x37fc]
cmp eax, ebx
je 0x1005e285
push eax
call fcn.1011163c
add esp, 4
mov dword [esi + 0x37fc], ebx
mov eax, dword [esi + 0x3290]
cmp eax, ebx
je 0x1005e29e
push eax
call fcn.1011163c
add esp, 4
mov dword [esi + 0x3290], ebx
xor ebp, ebp
mov edi, dword [esi + 0x3280]
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x1005e2e3
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x1005e2e3
cmp ecx, ebx
je 0x1005e2c9
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x1005e2ce
call fcn.1011323c
mov eax, dword [edi + 4]
mov ecx, dword [eax + ebp*4]
push ecx
push esi
call fcn.1009d110
add esp, 8
add ebp, 1
jmp 0x1005e2a0
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x1005e2f0
call fcn.1011323c
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x1005e2fd
call fcn.1011323c
cmp ebx, ebp
je 0x1005e32e
mov eax, dword [edi + 8]
sub eax, ebp
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + ebx]
mov dword [esp + 0x10], edx
jle 0x1005e327
push ecx
push ebp
push ecx
push ebx
call fcn.10112f43
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
xor ebp, ebp
mov edi, dword [esi + 0x3284]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1005e373
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x1005e373
test ecx, ecx
je 0x1005e359
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x1005e35e
call fcn.1011323c
mov ecx, dword [edi + 4]
mov edx, dword [ecx + ebp*4]
push edx
push esi
call fcn.1006ca00
add esp, 8
add ebp, 1
jmp 0x1005e330
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x1005e380
call fcn.1011323c
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x1005e38d
call fcn.1011323c
cmp ebx, ebp
je 0x1005e3be
mov eax, dword [edi + 8]
sub eax, ebp
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + ebx]
mov dword [esp + 0x10], edx
jle 0x1005e3b7
push ecx
push ebp
push ecx
push ebx
call fcn.10112f43
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x37d0]
test eax, eax
je 0x1005e3db
push eax
call fcn.1011163c
add esp, 4
mov dword [esi + 0x37d0], 0
mov edi, dword [esi + 0x32d0]
test edi, edi
mov ebp, 0x10
lea ebx, [ebp - 1]
je 0x1005e415
cmp dword [edi + 0x18], ebp
jb 0x1005e3fe
mov ecx, dword [edi + 4]
push ecx
call fcn.10100548
add esp, 4
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], 0
push edi
mov byte [edi + 4], 0
call fcn.10100548
add esp, 4
mov edi, dword [esi + 0x263c]
test edi, edi
je 0x1005e447
cmp dword [edi + 0x18], ebp
jb 0x1005e430
mov edx, dword [edi + 4]
push edx
call fcn.10100548
add esp, 4
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], 0
push edi
mov byte [edi + 4], 0
call fcn.10100548
add esp, 4
mov edi, dword [esi + 0x2648]
test edi, edi
je 0x1005e479
cmp dword [edi + 0x18], ebp
jb 0x1005e462
mov eax, dword [edi + 4]
push eax
call fcn.10100548
add esp, 4
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], 0
push edi
mov byte [edi + 4], 0
call fcn.10100548
add esp, 4
mov edi, dword [esi + 0x261c]
test edi, edi
je 0x1005e4a7
mov eax, dword [edi + 4]
test eax, eax
je 0x1005e493
push eax
call fcn.10100548
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.10100548
add esp, 4
mov edi, dword [esi + 0x2620]
test edi, edi
je 0x1005e4d5
mov eax, dword [edi + 4]
test eax, eax
je 0x1005e4c1
push eax
call fcn.10100548
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.10100548
add esp, 4
mov edi, dword [esi + 0x3280]
test edi, edi
je 0x1005e503
mov eax, dword [edi + 4]
test eax, eax
je 0x1005e4ef
push eax
call fcn.10100548
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.10100548
add esp, 4
mov edi, dword [esi + 0x3284]
test edi, edi
je 0x1005e531
mov eax, dword [edi + 4]
test eax, eax
je 0x1005e51d
push eax
call fcn.10100548
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.10100548
add esp, 4
mov edi, dword [esi + 0x3300]
test edi, edi
je 0x1005e55f
mov eax, dword [edi + 4]
test eax, eax
je 0x1005e54b
push eax
call fcn.10100548
add esp, 4
xor eax, eax
push edi
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.10100548
add esp, 4
mov edi, dword [esi + 0x37e8]
test edi, edi
je 0x1005e591
cmp dword [edi + 0x18], ebp
jb 0x1005e57a
mov ecx, dword [edi + 4]
push ecx
call fcn.10100548
add esp, 4
mov dword [edi + 0x18], ebx
mov dword [edi + 0x14], 0
push edi
mov byte [edi + 4], 0
call fcn.10100548
add esp, 4
mov esi, dword [esi + 0x37ec]
test esi, esi
je 0x1005e5c6
cmp dword [esi + 0x18], 8
jb 0x1005e5ad
mov edx, dword [esi + 4]
push edx
call fcn.10100548
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], eax
push esi
mov word [esi + 4], ax
call fcn.10100548
add esp, 4
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10111b17
add esp, 8
ret