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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
mov eax, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, eax
mov dword [ebp - 0x1c], 0
mov dl, dl
cmp dword [ebp + 0xc], 9
je 0x1005c37e
cmp dword [ebp + 0xc], 0
jne 0x1005c688
cmp dword [ebp + 0x10], 0xffffffff
jne 0x1005c395
cmp dword [ebp + 0x14], 0xffffffff
jne 0x1005c395
cmp dword [ebp + 0xc], 9
je 0x1005c395
jmp 0x1005c7d1
cmp dword [ebp + 0xc], 9
jne 0x1005c5b8
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov ebp, ebp
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x14], edx
mov al, al
mov dword [ebp - 0x30], 0
mov al, al
mov dword [ebp - 0x20], 0
push ebx
pop ebx
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0x70
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
pop ebx
push eax
pop eax
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov esi, esi
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 3
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
pop ebx
cmp dword [ebp - 0x2c], 0
jne 0x1005c411
cmp dword [ebp - 0x28], 0
jne 0x1005c411
cmp dword [ebp - 0x24], 0
jne 0x1005c411
mov dword [ebp - 0x20], 0
mov edx, edx
jmp 0x1005c41a
mov dword [ebp - 0x20], 1
push ebx
pop ebx
mov edi, edi
cmp dword [ebp - 0x20], 0
jne 0x1005c5b3
cmp dword [ebp - 0x30], 1
jl 0x1005c5b3
cmp dword [ebp - 0x30], 0x14
jg 0x1005c5b3
fldz
fstp qword [ebp - 0xe8]
fld qword [0x10179a50]
fstp qword [ebp - 0xe0]
fld qword [0x10179a48]
fstp qword [ebp - 0xd8]
fld qword [0x10179a40]
fstp qword [ebp - 0xd0]
fld qword [0x10179a38]
fstp qword [ebp - 0xc8]
fld qword [0x10179a30]
fstp qword [ebp - 0xc0]
fld qword [0x10179908]
fstp qword [ebp - 0xb8]
fld qword [0x10179a28]
fstp qword [ebp - 0xb0]
fld qword [0x10179a20]
fstp qword [ebp - 0xa8]
fld qword [0x10179a18]
fstp qword [ebp - 0xa0]
fld1
fstp qword [ebp - 0x98]
fld qword [0x10179a10]
fstp qword [ebp - 0x90]
fld qword [0x10179a08]
fstp qword [ebp - 0x88]
fld qword [0x10179a00]
fstp qword [ebp - 0x80]
fld qword [0x101799f8]
fstp qword [ebp - 0x78]
fld qword [0x101799f0]
fstp qword [ebp - 0x70]
fld qword [0x101799e8]
fstp qword [ebp - 0x68]
fld qword [0x101799e0]
fstp qword [ebp - 0x60]
fld qword [0x101799d8]
fstp qword [ebp - 0x58]
fld qword [0x101799d0]
fstp qword [ebp - 0x50]
fld qword [0x101799c8]
fstp qword [ebp - 0x48]
mov ah, ah
cmp dword [ebp - 0x20], 1
jne 0x1005c528
fld1
fstp qword [ebp - 0x110]
jmp 0x1005c538
mov eax, dword [ebp - 0x30]
fld qword [ebp + eax*8 - 0xe8]
fstp qword [ebp - 0x110]
fld qword [ebp - 0x110]
fstp qword [ebp - 0xf8]
nop
cmp dword [ebp - 0x20], 1
jne 0x1005c55c
fild dword [ebp - 0x30]
fmul qword [0x10179a38]
fstp qword [ebp - 0x118]
jmp 0x1005c564
fld1
fstp qword [ebp - 0x118]
fld qword [ebp - 0x118]
fstp qword [ebp - 0x40]
mov ebx, ebx
fild dword [ebp + 0x10]
fdiv qword [ebp - 0xf8]
fdiv qword [ebp - 0x40]
fstp qword [ebp - 0x38]
mov eax, eax
fild dword [ebp + 0x14]
fdiv qword [ebp - 0xf8]
fdiv qword [ebp - 0x40]
fstp qword [ebp - 0xf0]
mov ecx, ecx
fld qword [ebp - 0x38]
call fcn.10112170
mov dword [ebp - 0x18], eax
mov edi, edi
fld qword [ebp - 0xf0]
call fcn.10112170
mov dword [ebp - 0x14], eax
mov eax, eax
mov ah, ah
jmp 0x1005c686
mov ecx, dword [ebp - 0xc]
or ecx, 0x8000
mov dword [ebp - 0xc], ecx
nop
mov edx, dword [ebp - 0xc]
or edx, 0x4000
mov dword [ebp - 0xc], edx
mov dh, dh
mov eax, dword [ebp + 8]
cmp dword [eax + 0x32d4], 2
jne 0x1005c630
mov esi, esi
cmp dword [ebp + 0x18], 0xffffffff
jne 0x1005c5fd
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x1005c5fd
lea ecx, [ebp - 0x100]
push ecx
call fcn.100596b0
mov bh, bh
jmp 0x1005c613
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x100], edx
mov ebx, ebx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xfc], eax
mov esi, esi
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x100]
mov dword [ebp - 0x18], ecx
nop
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp - 0xfc]
mov dword [ebp - 0x14], edx
mov edx, edx
jmp 0x1005c686
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
mov dword [ebp - 0x104], eax
push ecx
pop ecx
push 0x4f
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
mov dword [ebp - 0x108], eax
mov esi, esi
mov eax, dword [ebp + 0x10]
imul eax, eax, 0xffff
cdq
idiv dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x18], eax
push ebx
pop ebx
mov eax, dword [ebp + 0x14]
imul eax, eax, 0xffff
cdq
idiv dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x14], eax
mov ebx, ebx
jmp 0x1005c698
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1001cc20
add esp, 8
mov ebp, ebp
cmp dword [ebp + 0xc], 0
je 0x1005c6a4
cmp dword [ebp + 0xc], 9
jne 0x1005c6b4
mov ecx, dword [ebp - 0xc]
or ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, edx
jmp 0x1005c79c
cmp dword [ebp + 0xc], 1
jne 0x1005c6ca
mov edx, dword [ebp - 0xc]
or edx, 2
mov dword [ebp - 0xc], edx
mov edi, edi
jmp 0x1005c79c
cmp dword [ebp + 0xc], 2
jne 0x1005c6e0
mov eax, dword [ebp - 0xc]
or eax, 4
mov dword [ebp - 0xc], eax
mov ah, ah
jmp 0x1005c79c
cmp dword [ebp + 0xc], 3
jne 0x1005c6f6
mov ecx, dword [ebp - 0xc]
or ecx, 8
mov dword [ebp - 0xc], ecx
mov al, al
jmp 0x1005c79c
cmp dword [ebp + 0xc], 4
jne 0x1005c70c
mov edx, dword [ebp - 0xc]
or edx, 0x10
mov dword [ebp - 0xc], edx
push ecx
pop ecx
jmp 0x1005c79c
cmp dword [ebp + 0xc], 5
jne 0x1005c71f
mov eax, dword [ebp - 0xc]
or eax, 0x20
mov dword [ebp - 0xc], eax
mov bl, bl
jmp 0x1005c79c
cmp dword [ebp + 0xc], 6
jne 0x1005c732
mov ecx, dword [ebp - 0xc]
or ecx, 0x40
mov dword [ebp - 0xc], ecx
mov ch, ch
jmp 0x1005c79c
cmp dword [ebp + 0xc], 7
jne 0x1005c768
mov edx, dword [ebp - 0xc]
or edx, 0x800
mov dword [ebp - 0xc], edx
mov ah, ah
mov eax, dword [ebp + 8]
cmp dword [eax + 0x32d4], 2
jne 0x1005c75d
mov dword [ebp - 0x10], 1
mov ecx, ecx
jmp 0x1005c766
mov dword [ebp - 0x10], 0xffffff88
mov ah, ah
jmp 0x1005c79c
cmp dword [ebp + 0xc], 8
jne 0x1005c79c
mov ecx, dword [ebp - 0xc]
or ecx, 0x800
mov dword [ebp - 0xc], ecx
push ebx
pop ebx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x32d4], 2
jne 0x1005c793
mov dword [ebp - 0x10], 0xffffffff
mov dh, dh
jmp 0x1005c79c
mov dword [ebp - 0x10], 0x78
mov bl, bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 8], eax
push ecx
pop ecx
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 4], eax
mov eax, eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 0x1c
lea edx, [ebp - 0x1c]
mov ecx, 1
mov edi, dword [ebp + 8]
call fcn.1005b8f0
add esp, 0xc
mov cl, cl
pop edi
mov esp, ebp
pop ebp
ret