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

Disassembly:
mov eax, 0x2009ffc5
call fcn.2007d394
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.200342ea
test eax, eax
je 0x20056a27
cmp dword [ebp + 0xc], 0
je 0x20056a27
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
movzx eax, word [esi + 4]
mov esi, dword [ebp + 0x14]
mov ebx, dword [esi + 0xc]
add ebx, dword [esi + 4]
mov dword [ebp - 0x1c], eax
sub ebx, dword [esi + 8]
cmp ebx, 0x80
jl 0x2005618c
cmp dword [edi + 0x1c], 0
je 0x2005618c
push dword [ebp + 0x18]
mov ecx, edi
push esi
push eax
push dword [ebp - 0x20]
call fcn.20055570
jmp 0x20056a22
cmp ebx, 0x3e
jl 0x20056a22
mov ecx, esi
call fcn.200012b7
lea ecx, [ebx - 2]
push 0x18
push ecx
mov dword [ebp + 8], eax
mov eax, dword [esi + 8]
push eax
call fcn.2001762c
add esp, 0xc
cmp word [ebp + 8], ax
jne 0x20056a22
mov ecx, esi
call fcn.2000131e
cmp eax, dword [edi + 0x10b14]
jne 0x20056a22
mov ecx, esi
call fcn.20001279
mov ecx, esi
mov byte [ebp + 0xb], al
call fcn.20001279
movzx eax, al
mov ecx, eax
mov ebx, eax
and eax, 0x40
and ecx, 0x80
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
push eax
lea ecx, [ebp - 0x38]
and ebx, 2
call fcn.20020cb6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x200568f5
cmp byte [eax + 0x1e4], 0
jne 0x200568f5
mov cl, byte [ebp + 0xb]
mov byte [ebp + 0x1b], cl
and byte [ebp + 0x1b], 0x80
mov byte [ebp + 0xb], cl
mov byte [ebp + 0x17], cl
setne dl
dec dl
and edx, 2
and byte [ebp + 0xb], 0x10
mov byte [eax + 0xc0], dl
mov edx, dword [ebp - 0x38]
setne al
inc al
mov byte [edx + 0xbf], al
mov edx, dword [ebp - 0x38]
test cl, 0x20
sete al
inc al
and byte [ebp + 0x17], 0x40
mov byte [edx + 0xbd], al
je 0x20056271
mov eax, dword [ebp - 0x38]
mov byte [eax + 0xbf], 3
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0xc0], 0
jne 0x20056284
mov byte [eax + 0xbf], 2
lea eax, [edi + 0x10938]
push eax
lea ecx, [ebp - 0x10]
call fcn.200011c0
mov byte [ebp - 4], 2
cmp byte [ebp + 0xb], 0
jne 0x200562a9
cmp byte [ebp + 0x17], 0
jne 0x200562a9
cmp byte [ebp + 0x1b], 0
je 0x200562bc
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x109cc]
call fcn.20048f98
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x200562d5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
dec dword [eax + 0x18]
test ebx, ebx
je 0x20056a16
mov ecx, esi
call fcn.2000131e
mov ecx, esi
mov ebx, eax
call fcn.2000131e
mov ecx, esi
mov dword [ebp + 0x14], eax
call fcn.2000131e
mov ecx, esi
mov dword [ebp + 0x18], eax
call fcn.2000131e
push 0x10
mov ecx, esi
call fcn.2000135f
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x20056324
mov byte [ebp - 4], al
lea ecx, [ebp - 0x38]
call fcn.20001efb
or esi, 0xffffffff
jmp 0x20056a29
mov ecx, esi
call fcn.200012b7
mov ecx, dword [ebp - 0x38]
mov word [ecx + 0xe8], ax
mov ecx, esi
call fcn.200012b7
mov ecx, dword [ebp - 0x38]
mov word [ecx + 0xea], ax
mov ecx, esi
call fcn.200012fd
mov eax, dword [ebp - 0x38]
mov ecx, esi
fstp dword [eax + 0xec]
call fcn.200012fd
mov eax, dword [ebp - 0x38]
mov ecx, esi
fstp dword [eax + 0xf0]
call fcn.20001279
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0xf4], al
mov ecx, esi
call fcn.20001279
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0xf5], al
mov ecx, esi
call fcn.20001279
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0xf6], al
mov ecx, esi
call fcn.20001279
movzx ax, al
mov ecx, esi
mov word [ebp - 0x20], ax
call fcn.200012b7
mov ecx, esi
call fcn.2000131e
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x108], eax
mov dword [ebp + 8], eax
je 0x200563fb
lea eax, [ecx + 0x98]
cmp dword [eax + 0x18], 0x10
jb 0x200563d2
mov eax, dword [eax + 4]
jmp 0x200563d5
add eax, 4
mov esi, dword [ebp + 8]
push eax
push esi
push 0x200a9f74
call fcn.2002eb98
push eax
call fcn.2002ebe0
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x108], esi
mov ecx, dword [ebp - 0x38]
add esp, 0x10
jmp 0x200563fe
mov esi, dword [ebp + 8]
mov eax, dword [edi + 0x19244]
xor edx, edx
cmp eax, edx
je 0x20056420
cmp esi, 0xffffffff
je 0x20056468
cmp esi, edx
je 0x20056468
cmp esi, eax
jbe 0x20056468
add eax, 0x5265c00
cmp esi, eax
jae 0x20056468
cmp dword [edi + 0x2a0], edx
jne 0x20056468
cmp dword [edi + 0x548], edx
jne 0x20056468
mov byte [ecx + 0xfc], 0
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x100], edx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x108]
cmp dword [edi + 0x19244], eax
jae 0x20056457
mov dword [edi + 0x19244], eax
push dword [edi + 0x19244]
lea ecx, [edi + 0x688]
call fcn.2001c3b8
push dword [edi + 0x2a0]
lea ecx, [edi + 0x688]
push ebx
call fcn.2001c08e
and dword [ebp - 0x14], 0
cmp dword [edi + 0x2bc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
jne 0x2005649e
mov dword [edi + 0x2bc], ebx
call esi
mov dword [edi + 0x2c0], eax
call esi
call esi
sub eax, dword [edi + 0x2c0]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov edx, dword [edi + 0x2a0]
add eax, dword [edi + 0x2bc]
test edx, edx
je 0x200564c7
cmp dword [ebp - 0x18], 0
jne 0x200564fb
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + 0xc0], 0
je 0x200564fb
cmp byte [ecx + 0xbf], 3
jne 0x200564e8
test edx, edx
jne 0x200564e8
cmp dword [edi + 0x548], edx
je 0x200564fb
lea ecx, [eax - 0xf0]
cmp ebx, ecx
jbe 0x20056502
add eax, 0xf0
cmp ebx, eax
jae 0x20056502
mov dword [ebp - 0x14], 1
test edx, edx
je 0x20056510
cmp dword [ebp - 0x18], 0
je 0x20056a16
cmp dword [ebp - 0x14], 0
je 0x20056a16
test ebx, ebx
je 0x20056a16
cmp dword [ebp - 0x18], 0
je 0x20056a16
push ebx
lea ecx, [edi + 0x688]
call fcn.2001bb16
xor ecx, ecx
inc ecx
cmp dword [edi + 0x2a0], 0
mov esi, eax
je 0x20056548
xor ecx, ecx
cmp dword [edi + 0x548], 0
je 0x20056568
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0xc0], 0
je 0x20056568
cmp byte [eax + 0xbf], 3
je 0x20056568
xor ecx, ecx
test ecx, ecx
jne 0x20056574
test esi, esi
je 0x20056a16
push ebx
push ecx
push ecx
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.20020cb6
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.2004d4dc
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x200566cc
push dword [ebp + 8]
lea ecx, [edi + 0x688]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.2001fdae
mov esi, eax
test esi, esi
je 0x20056825
push dword [esi + 8]
lea ecx, [ebp - 0x14]
call fcn.200011c0
mov byte [ebp - 4], 4
cmp dword [esi + 0x70], 0
je 0x200565dd
lea eax, [esi + 0x44]
test eax, eax
jne 0x20056605
mov eax, dword [ebp + 0x14]
xor edx, edx
div dword [ebp + 0x18]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x18], eax
xor eax, eax
test edx, edx
setne al
add eax, dword [ebp - 0x18]
push eax
call fcn.2003ab2e
push 0
lea ecx, [esi + 0x40]
call fcn.2003ac10
mov eax, dword [ebp + 0x14]
xor edx, edx
div dword [ebp + 0x18]
xor ecx, ecx
test edx, edx
setne cl
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x28
call fcn.2003ab2e
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x1c]
add ecx, 0x28
call fcn.2003ac79
mov eax, dword [ebp - 0x38]
add eax, 0x28
push eax
mov ecx, esi
call fcn.2001a392
mov ax, word [ebp - 0x20]
mov word [esi + 0x78], ax
mov eax, dword [ebp + 8]
mov dword [esi + 0xb0], eax
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x20], ebx
mov eax, dword [edi + 0x548]
test eax, eax
mov ecx, dword [ebp - 0x38]
je 0x2005666f
cmp byte [ecx + 0xc0], 0
je 0x2005668a
test eax, eax
jne 0x200566a5
cmp dword [edi + 0x2a0], 0
jne 0x200566a5
cmp byte [ecx + 0xc0], 0
je 0x2005668a
cmp byte [ecx + 0xbf], 3
jne 0x200566a5
lea eax, [edi + 0x6cc]
cmp byte [eax], 0
jne 0x200566a5
and dword [edi + 0x6d0], 0
mov dword [edi + 0x6c4], ebx
mov byte [eax], 1
lea eax, [edi + 0x6c4]
cmp dword [eax], 0
jne 0x200566c0
and dword [edi + 0x6d0], 0
mov dword [eax], ebx
mov byte [edi + 0x6cc], 0
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x14]
jmp 0x20056809
cmp ebx, eax
jne 0x20056766
push eax
lea ecx, [edi + 0x688]
call fcn.2001bb16
mov esi, eax
test esi, esi
je 0x20056825
push dword [esi + 8]
lea ecx, [ebp + 0x14]
call fcn.200011c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x38]
add eax, 0x28
push eax
mov ecx, esi
call fcn.2001a3dc
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
xor edx, edx
div ecx
xor ecx, ecx
test edx, edx
setne cl
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x28
call fcn.2003ab2e
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x1c]
add ecx, 0x28
call fcn.2003ac79
mov eax, dword [ebp - 0x38]
add eax, 0x28
push eax
mov ecx, esi
call fcn.2001a392
mov ax, word [ebp - 0x20]
mov word [esi + 0x78], ax
lea eax, [esi + 0xb0]
cmp dword [eax], 0
jne 0x2005675a
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 0x14]
jmp 0x20056809
jbe 0x20056817
push dword [ebp + 8]
lea ecx, [edi + 0x688]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.2001fdae
mov esi, eax
test esi, esi
je 0x20056825
push dword [esi + 8]
lea ecx, [ebp - 0x18]
call fcn.200011c0
mov byte [ebp - 4], 6
cmp dword [esi + 0x70], 0
je 0x200567a7
lea eax, [esi + 0x44]
test eax, eax
jne 0x200567cf
mov eax, dword [ebp + 0x14]
xor edx, edx
div dword [ebp + 0x18]
lea ecx, [esi + 0x40]
mov dword [ebp + 0x14], eax
xor eax, eax
test edx, edx
setne al
add eax, dword [ebp + 0x14]
push eax
call fcn.2003ab2e
push 0
lea ecx, [esi + 0x40]
call fcn.2003ac10
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x1c]
add ecx, 0x28
call fcn.2003ac79
mov eax, dword [ebp - 0x38]
add eax, 0x28
push eax
mov ecx, esi
call fcn.2001a392
mov ax, word [ebp - 0x20]
mov word [esi + 0x78], ax
mov eax, dword [ebp + 8]
mov dword [esi + 0xb0], eax
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x20], ebx
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x20056817
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [ebx + 0x18]
test esi, esi
je 0x20056825
cmp dword [ebp - 0x28], 0
setne al
mov byte [esi + 0x21], al
cmp dword [ebp - 0x2c], 0
jne 0x200568bb
lea ebx, [edi + 0x688]
push 0
mov ecx, ebx
call fcn.2001c76a
test eax, eax
je 0x200568bb
push eax
mov ecx, ebx
call fcn.2001bb16
mov esi, eax
test esi, esi
je 0x200568bb
push 1
push esi
push ecx
push ecx
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.20020cb6
mov byte [ebp - 4], 7
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.200422a8
test al, al
je 0x200568bb
and dword [ebp + 8], 0
push esi
mov ecx, ebx
call fcn.2001be8e
mov esi, eax
test esi, esi
je 0x200568bb
cmp dword [esi + 0x74], 0
jle 0x200568bb
push esi
push ecx
push ecx
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.20020cb6
mov byte [ebp - 4], 8
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.20041351
test eax, eax
je 0x200568bb
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x2005687a
mov esi, dword [ebp - 0x38]
lea ecx, [esi + 0x28]
call fcn.2003acb4
call fcn.2007f3d0
push ecx
push ecx
mov byte [esi + 0xf7], al
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.20020cb6
mov byte [ebp - 4], 9
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.2004b5ba
jmp 0x20056a16
xor ebx, ebx
lea ecx, [edi + 0x688]
push ebx
call fcn.2001c76a
cmp eax, ebx
je 0x20056a16
push eax
lea ecx, [edi + 0x688]
call fcn.2001bb16
mov esi, eax
cmp esi, ebx
je 0x20056a16
push 0x3a8
call fcn.2008f9ce
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x20056940
mov ecx, eax
call fcn.20021b53
jmp 0x20056942
xor eax, eax
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x30]
call fcn.20021d2d
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov byte [eax + 0x1e4], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xb4], ecx
mov eax, dword [ebp - 0x30]
mov cx, word [ebp - 0x1c]
mov word [eax + 0xb8], cx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x214], ebx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x21c], ebx
mov eax, dword [ebp - 0x30]
push 0x10
add eax, 0x1dc
push ebx
push eax
call fcn.2007e690
add esp, 0xc
push 1
push esi
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp + 0x14], esp
push eax
call fcn.20020cb6
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xb
mov ecx, edi
call fcn.200422a8
test al, al
je 0x20056a0a
mov dword [ebp + 8], ebx
push esi
lea ecx, [edi + 0x688]
call fcn.2001be8e
mov esi, eax
cmp esi, ebx
je 0x20056a0a
cmp dword [esi + 0x74], ebx
jle 0x20056a0a
push esi
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.20020cb6
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xb
mov ecx, edi
call fcn.20041351
cmp eax, ebx
je 0x20056a0a
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x200569c6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.20001efb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.20001efb
xor esi, esi
inc esi
jmp 0x20056a29
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.20001efb
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14