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

Disassembly:
mov eax, 0x200a0958
call fcn.2007d394
sub esp, 0xc8
mov eax, dword [0x200cc84c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, ebp
mov edi, ecx
mov ecx, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa4], esi
call fcn.200342ea
test eax, eax
je 0x20059de0
mov eax, dword [esi]
mov dword [ebp - 0xa8], eax
movzx eax, word [esi + 4]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.20034401
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 0x10
jb 0x20059786
mov eax, dword [eax + 4]
jmp 0x20059789
add eax, 4
push eax
lea eax, [ebp - 0x9c]
push eax
mov ecx, edi
call fcn.2004448d
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.2000275e
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 4]
sub esi, dword [ebx + 8]
cmp esi, 0x1c
jl 0x20059dcc
mov ecx, ebx
call fcn.200012b7
add esi, 0xfffffffe
push 0x18
push esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xa0], eax
mov eax, dword [ebx + 8]
push eax
call fcn.2001762c
add esp, 0xc
cmp word [ebp - 0xa0], ax
jne 0x20059dcc
mov ecx, ebx
call fcn.2000131e
mov ecx, ebx
call fcn.200012b7
mov ecx, ebx
call fcn.2000131e
cmp eax, dword [edi + 0x10b14]
jne 0x20059dcc
mov ecx, ebx
call fcn.20001279
mov ecx, ebx
mov byte [ebp - 0x91], al
call fcn.20001279
mov ecx, ebx
mov byte [ebp - 0x92], al
call fcn.200012b7
mov ecx, ebx
call fcn.2000131e
mov ecx, ebx
call fcn.200012b7
mov ecx, ebx
mov si, ax
call fcn.200012b7
mov ecx, ebx
mov word [ebp - 0x16], ax
call fcn.200012b7
mov ecx, ebx
mov word [ebp - 0x14], ax
call fcn.200012b7
mov word [ebp - 0x12], ax
xor eax, eax
inc eax
cmp si, ax
mov dword [ebp - 0xa0], eax
ja 0x2005988c
xor eax, eax
cmp word [ebp - 0x16], ax
jbe 0x2005987e
mov dword [ebp - 0xa0], eax
jmp 0x20059893
cmp word [ebp - 0x14], ax
ja 0x20059876
cmp word [ebp - 0x12], 0x86e
jb 0x20059893
and dword [ebp - 0xa0], 0
cmp byte [ebp - 0x92], 0
jne 0x20059b45
push 0
mov ecx, edi
call fcn.2003c5bc
cmp eax, 0x50
jle 0x200598b5
xor esi, esi
jmp 0x20059dcf
push 0
mov ecx, edi
call fcn.2003c5bc
mov dword [ebp - 0xb0], eax
fild dword [ebp - 0xb0]
fild dword [edi + 0x198d0]
fmul qword [0x200aa030]
fcompp
fnstsw ax
test ah, 5
jnp 0x200598ae
mov ecx, edi
call fcn.2003c635
mov dword [ebp - 0xb0], eax
fild dword [ebp - 0xb0]
fild dword [edi + 0x198d4]
fmul qword [0x200aa028]
fcompp
fnstsw ax
test ah, 5
jnp 0x200598ae
push 1
push dword [ebp - 0xb4]
mov ecx, edi
push dword [ebp - 0xa8]
call fcn.20040a1e
mov eax, dword [ebp - 0x9c]
test eax, eax
jne 0x200599a1
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0xd4]
push eax
call fcn.20034401
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x20059947
mov eax, dword [eax + 4]
jmp 0x2005994a
add eax, 4
push eax
lea eax, [ebp - 0xac]
push eax
mov ecx, edi
call fcn.20058bc2
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x9c]
call fcn.20020cef
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xac]
call fcn.20001efb
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0xd4]
call fcn.2000275e
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x20059dcc
inc byte [eax + 0x274]
jmp 0x20059a0f
cmp dword [eax + 0x88], 0
jne 0x20059a0f
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0xd4]
push eax
call fcn.20034401
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x200599cb
mov eax, dword [eax + 4]
jmp 0x200599ce
add eax, 4
push eax
lea eax, [ebp - 0xac]
push eax
mov ecx, edi
call fcn.20058bc2
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x9c]
call fcn.20020cef
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xac]
call fcn.20001efb
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0xd4]
call fcn.2000275e
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x20059dcc
cmp dword [ebp - 0xa0], 0
jne 0x20059aab
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, si
push eax
lea eax, [ebp - 0x90]
push str._d._d._d._d
push eax
call fcn.2007d900
mov ecx, dword [ebp - 0x9c]
add esp, 0x18
lea eax, [ebp - 0x90]
add ecx, 0x1c0
push eax
call fcn.20003a20
mov eax, dword [ebp - 0x9c]
mov cx, word [ebp - 0x16]
mov word [eax + 0x1dc], si
mov eax, dword [ebp - 0x9c]
mov word [eax + 0x1de], cx
mov eax, dword [ebp - 0x9c]
mov cx, word [ebp - 0x14]
mov word [eax + 0x1e0], cx
mov eax, dword [ebp - 0x9c]
mov cx, word [ebp - 0x12]
mov word [eax + 0x1e2], cx
jmp 0x20059abb
add ecx, 0x1c0
push 0x200a8808
call fcn.20003a20
lea eax, [edi + 0x10938]
push eax
lea ecx, [ebp - 0xa8]
call fcn.200011c0
mov byte [ebp - 4], 7
push dword [ebp - 0xa4]
lea ecx, [edi + 0x10e4c]
call fcn.2004c3c5
mov esi, dword [ebp - 0x9c]
cmp word [esi + 0x66], 2
jae 0x20059afa
and word [esi + 0x64], 0
mov esi, dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x9c]
mov byte [eax + 0x69], 0
mov al, byte [ebp - 0x91]
and al, 0x10
mov byte [ebp - 0x92], al
jne 0x20059b2a
test byte [ebp - 0x91], 0xc0
je 0x20059cd0
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x109cc]
call fcn.20048f98
jmp 0x20059cd0
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x20059dcc
cmp dword [ebp - 0xa0], 0
jne 0x20059be1
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, si
push eax
lea eax, [ebp - 0x90]
push str._d._d._d._d
push eax
call fcn.2007d900
mov ecx, dword [ebp - 0x9c]
add esp, 0x18
lea eax, [ebp - 0x90]
add ecx, 0x1c0
push eax
call fcn.20003a20
mov eax, dword [ebp - 0x9c]
mov cx, word [ebp - 0x16]
mov word [eax + 0x1dc], si
mov eax, dword [ebp - 0x9c]
mov word [eax + 0x1de], cx
mov eax, dword [ebp - 0x9c]
mov cx, word [ebp - 0x14]
mov word [eax + 0x1e0], cx
mov eax, dword [ebp - 0x9c]
mov cx, word [ebp - 0x12]
mov word [eax + 0x1e2], cx
jmp 0x20059bf1
lea ecx, [eax + 0x1c0]
push 0x200a8808
call fcn.20003a20
lea eax, [edi + 0x10938]
push eax
lea ecx, [ebp - 0xa8]
call fcn.200011c0
mov byte [ebp - 4], 8
push dword [ebp - 0xa4]
lea ecx, [edi + 0x10e4c]
call fcn.2004c3c5
lea eax, [ebp - 0x9c]
push eax
lea ecx, [edi + 0x1099c]
call fcn.2004c378
lea eax, [ebp - 0x9c]
push eax
lea ecx, [edi + 0x109c0]
call fcn.2004c378
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x109b4]
call fcn.20048f98
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x109a8]
call fcn.20048f98
mov al, byte [ebp - 0x91]
and al, 0x10
mov byte [ebp - 0x92], al
jne 0x20059c81
test byte [ebp - 0x91], 0xc0
je 0x20059c97
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x109cc]
call fcn.20048f98
mov ecx, dword [ebp - 0x9c]
push 2
pop eax
mov dword [ecx + 0x88], eax
mov esi, dword [ebp - 0x9c]
cmp word [esi + 0x66], ax
jae 0x20059cbd
and word [esi + 0x64], 0
mov esi, dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x9c]
mov byte [eax + 0x69], 0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0xa8]
test esi, esi
je 0x20059ce8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
cmp dword [ebp - 0x9c], 0
je 0x20059dcc
cmp dword [ebp - 0xb8], 0x24
jb 0x20059d6d
lea ecx, [ebp - 0x20]
call fcn.200765d5
mov byte [ebp - 4], 9
push ebx
lea ecx, [ebp - 0x20]
call fcn.200766f0
test eax, eax
je 0x20059d61
add edi, 0x194f0
mov ecx, edi
call fcn.2007660a
test eax, eax
jne 0x20059d3f
lea ecx, [ebp - 0x20]
call fcn.2007660a
test eax, eax
je 0x20059d3f
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.2007678f
lea ecx, [ebp - 0x20]
call fcn.200767d4
test ax, ax
jbe 0x20059d61
mov esi, dword [ebp - 0x9c]
lea ecx, [ebp - 0x20]
call fcn.200767d4
mov word [esi + 0x278], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.2007660f
mov al, byte [ebp - 0x91]
mov ecx, dword [ebp - 0x9c]
shr al, 6
not al
and al, 2
cmp byte [ebp - 0x92], 0
mov byte [ecx + 0xc0], al
mov ecx, dword [ebp - 0x9c]
setne al
inc al
test byte [ebp - 0x91], 0x20
mov byte [ecx + 0xbf], al
mov ecx, dword [ebp - 0x9c]
sete al
inc al
test byte [ebp - 0x91], 0x40
mov byte [ecx + 0xbd], al
je 0x20059dcc
mov eax, dword [ebp - 0x9c]
mov byte [eax + 0xbf], 3
xor esi, esi
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.20001efb
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 0xc