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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
mov al, al
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 dl, dl
mov dword [ebp - 0x1c], 0
mov esi, esi
cmp dword [ebp + 0xc], 9
je 0x100505ee
cmp dword [ebp + 0xc], 0
jne 0x10050901
cmp dword [ebp + 0x10], 0xffffffff
jne 0x10050605
cmp dword [ebp + 0x14], 0xffffffff
jne 0x10050605
cmp dword [ebp + 0xc], 9
je 0x10050605
jmp 0x10050a50
cmp dword [ebp + 0xc], 9
jne 0x10050829
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
test cl, cl
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x14], edx
push edx
pop edx
mov dword [ebp - 0x30], 0
push eax
pop eax
mov dword [ebp - 0x20], 0
test ebx, ebx
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0x70
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test al, al
mov bl, bl
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
push ebx
pop ebx
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push 3
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov dh, dh
cmp dword [ebp - 0x2c], 0
jne 0x10050681
cmp dword [ebp - 0x28], 0
jne 0x10050681
cmp dword [ebp - 0x24], 0
jne 0x10050681
mov dword [ebp - 0x20], 0
test edi, edi
jmp 0x1005068a
mov dword [ebp - 0x20], 1
mov bh, bh
test bh, bh
cmp dword [ebp - 0x20], 0
jne 0x10050824
cmp dword [ebp - 0x30], 1
jl 0x10050824
cmp dword [ebp - 0x30], 0x14
jg 0x10050824
fldz
fstp qword [ebp - 0xe8]
fld qword [0x10159888]
fstp qword [ebp - 0xe0]
fld qword [0x10159880]
fstp qword [ebp - 0xd8]
fld qword [0x10159878]
fstp qword [ebp - 0xd0]
fld qword [0x10159870]
fstp qword [ebp - 0xc8]
fld qword [0x10159868]
fstp qword [ebp - 0xc0]
fld qword [0x10159738]
fstp qword [ebp - 0xb8]
fld qword [0x10159860]
fstp qword [ebp - 0xb0]
fld qword [0x10159858]
fstp qword [ebp - 0xa8]
fld qword [0x10159850]
fstp qword [ebp - 0xa0]
fld1
fstp qword [ebp - 0x98]
fld qword [0x10159848]
fstp qword [ebp - 0x90]
fld qword [0x10159840]
fstp qword [ebp - 0x88]
fld qword [0x10159838]
fstp qword [ebp - 0x80]
fld qword [0x10159830]
fstp qword [ebp - 0x78]
fld qword [0x10159828]
fstp qword [ebp - 0x70]
fld qword [0x10159820]
fstp qword [ebp - 0x68]
fld qword [0x10159818]
fstp qword [ebp - 0x60]
fld qword [0x10159810]
fstp qword [ebp - 0x58]
fld qword [0x10159808]
fstp qword [ebp - 0x50]
fld qword [0x10159800]
fstp qword [ebp - 0x48]
test edi, edi
cmp dword [ebp - 0x20], 1
jne 0x10050798
fld1
fstp qword [ebp - 0x110]
jmp 0x100507a8
mov eax, dword [ebp - 0x30]
fld qword [ebp + eax*8 - 0xe8]
fstp qword [ebp - 0x110]
fld qword [ebp - 0x110]
fstp qword [ebp - 0xf8]
mov ebx, ebx
cmp dword [ebp - 0x20], 1
jne 0x100507cd
fild dword [ebp - 0x30]
fmul qword [0x10159870]
fstp qword [ebp - 0x118]
jmp 0x100507d5
fld1
fstp qword [ebp - 0x118]
fld qword [ebp - 0x118]
fstp qword [ebp - 0x40]
test al, al
fild dword [ebp + 0x10]
fdiv qword [ebp - 0xf8]
fdiv qword [ebp - 0x40]
fstp qword [ebp - 0x38]
test bh, bh
fild dword [ebp + 0x14]
fdiv qword [ebp - 0xf8]
fdiv qword [ebp - 0x40]
fstp qword [ebp - 0xf0]
test ebx, ebx
fld qword [ebp - 0x38]
call fcn.100f8070
mov dword [ebp - 0x18], eax
mov esi, esi
fld qword [ebp - 0xf0]
call fcn.100f8070
mov dword [ebp - 0x14], eax
test bh, bh
mov ah, ah
jmp 0x100508ff
mov ecx, dword [ebp - 0xc]
or ecx, 0x8000
mov dword [ebp - 0xc], ecx
mov bl, bl
mov edx, dword [ebp - 0xc]
or edx, 0x4000
mov dword [ebp - 0xc], edx
mov ah, ah
mov eax, dword [ebp + 8]
cmp dword [eax + 0x32d4], 2
jne 0x100508a3
push ecx
pop ecx
cmp dword [ebp + 0x18], 0xffffffff
jne 0x1005086f
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x1005086f
lea ecx, [ebp - 0x100]
push ecx
call fcn.1004d910
test ecx, ecx
jmp 0x10050885
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x100], edx
test dh, dh
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xfc], eax
mov al, al
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x100]
mov dword [ebp - 0x18], ecx
mov bl, bl
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp - 0xfc]
mov dword [ebp - 0x14], edx
mov dl, dl
jmp 0x100508ff
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
mov dword [ebp - 0x104], eax
test eax, 0x5866
push 0x4f
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
mov dword [ebp - 0x108], eax
test eax, 0x45c
mov eax, dword [ebp + 0x10]
imul eax, eax, 0xffff
cdq
idiv dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x18], eax
test bh, bh
mov eax, dword [ebp + 0x14]
imul eax, eax, 0xffff
cdq
idiv dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x14], eax
test dh, dh
jmp 0x10050911
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.1001c620
add esp, 8
mov edx, edx
cmp dword [ebp + 0xc], 0
je 0x1005091d
cmp dword [ebp + 0xc], 9
jne 0x1005092d
mov ecx, dword [ebp - 0xc]
or ecx, 1
mov dword [ebp - 0xc], ecx
test edx, edx
jmp 0x10050a1b
cmp dword [ebp + 0xc], 1
jne 0x10050943
mov edx, dword [ebp - 0xc]
or edx, 2
mov dword [ebp - 0xc], edx
xchg ebx, eax
xchg ebx, eax
jmp 0x10050a1b
cmp dword [ebp + 0xc], 2
jne 0x10050959
mov eax, dword [ebp - 0xc]
or eax, 4
mov dword [ebp - 0xc], eax
test bh, bh
jmp 0x10050a1b
cmp dword [ebp + 0xc], 3
jne 0x1005096f
mov ecx, dword [ebp - 0xc]
or ecx, 8
mov dword [ebp - 0xc], ecx
mov dh, dh
jmp 0x10050a1b
cmp dword [ebp + 0xc], 4
jne 0x10050985
mov edx, dword [ebp - 0xc]
or edx, 0x10
mov dword [ebp - 0xc], edx
push ecx
pop ecx
jmp 0x10050a1b
cmp dword [ebp + 0xc], 5
jne 0x1005099b
mov eax, dword [ebp - 0xc]
or eax, 0x20
mov dword [ebp - 0xc], eax
test ah, ah
jmp 0x10050a1b
cmp dword [ebp + 0xc], 6
jne 0x100509b1
mov ecx, dword [ebp - 0xc]
or ecx, 0x40
mov dword [ebp - 0xc], ecx
test eax, 0x6a5d
jmp 0x10050a1b
cmp dword [ebp + 0xc], 7
jne 0x100509e7
mov edx, dword [ebp - 0xc]
or edx, 0x800
mov dword [ebp - 0xc], edx
mov cl, cl
mov eax, dword [ebp + 8]
cmp dword [eax + 0x32d4], 2
jne 0x100509dc
mov dword [ebp - 0x10], 1
mov ecx, ecx
jmp 0x100509e5
mov dword [ebp - 0x10], 0xffffff88
test bh, bh
jmp 0x10050a1b
cmp dword [ebp + 0xc], 8
jne 0x10050a1b
mov ecx, dword [ebp - 0xc]
or ecx, 0x800
mov dword [ebp - 0xc], ecx
mov ch, ch
mov edx, dword [ebp + 8]
cmp dword [edx + 0x32d4], 2
jne 0x10050a12
mov dword [ebp - 0x10], 0xffffffff
mov ah, ah
jmp 0x10050a1b
mov dword [ebp - 0x10], 0x78
mov bl, bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 8], eax
mov ebp, ebp
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
mov dword [ebp - 4], eax
push ecx
pop ecx
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.1004fb40
add esp, 0xc
test al, al
pop edi
mov esp, ebp
pop ebp
ret