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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, 0x113
cmp esi, eax
push edi
ja 0x3002eb32
je 0x3006224c
cmp esi, 0x20
ja 0x3006213d
je 0x30062125
mov eax, esi
sub eax, 5
je 0x300620b8
sub eax, 8
je 0x300620ae
dec eax
je 0x3006209d
sub eax, 7
je 0x30062081
sub eax, 7
je 0x300496a0
push dword [ebp + 0x10]
push ebx
push esi
call fcn.300095ef
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, 0x30f
cmp esi, eax
jbe 0x30062268
mov eax, esi
sub eax, 0x311
je 0x30049703
sub eax, 0xcf
je 0x300496fc
sub eax, 0x2b
je 0x30062422
dec eax
je 0x30062360
jmp 0x300095de
mov eax, dword [0x301e4b98]
xor edi, edi
cmp eax, edi
je 0x300496b1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [0x301e4bd0]
cmp eax, edi
je 0x300496ca
test byte [eax + 0x7f], 1
jne 0x300496ca
movsx eax, bx
push edi
push eax
call fcn.3002f85e
call fcn.30055e8d
cmp bx, di
jne 0x3006203e
call fcn.3004970d
push 1
push 5
call fcn.3003fac6
cmp dword [0x301df2d4], edi
jne 0x30062027
call fcn.30055ea6
jmp 0x300095de
xor eax, eax
jmp 0x300095e8
call fcn.3011b4e9
jmp 0x300095de
cmp dword [0x301df308], edi
je 0x300496f2
call dword [sym.imp.MSO.DLL_Ordinal_89]
jmp 0x300496f2
call fcn.300dfef7
push dword [ebp + 0x10]
push ebx
push 0x1c
call fcn.300095ef
mov esi, eax
call fcn.3004d5fa
cmp dword [0x301dec14], edi
je 0x30062077
push 0xff
call fcn.30036236
call fcn.3000a638
push dword [0x301dec14]
call fcn.3002cc16
call fcn.30055ea6
jmp 0x3006211e
cmp dword [0x301e3f64], 0
jne 0x300095de
call fcn.30055e8d
call fcn.3011b533
jmp 0x300496f2
push 0xff
push 0
call fcn.300e0148
jmp 0x300095e8
movsx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
jmp 0x300620a4
xor edi, edi
cmp dword [0x301e36d8], edi
jne 0x300095de
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 5
call fcn.300095ef
mov esi, eax
mov eax, dword [0x301e4bd0]
cmp eax, edi
je 0x300620e4
test byte [eax + 0x7f], 1
jne 0x3006211e
cmp dword [0x301e4b58], edi
je 0x3006211e
lea eax, [ebp - 0x10]
push eax
push 1
call fcn.3000b0e4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [0x301e4b58]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x4c]
mov eax, esi
jmp 0x300095e8
mov eax, dword [0x301e4700]
test eax, eax
je 0x300095de
push eax
call fcn.30014c48
jmp 0x300623c0
mov eax, esi
sub eax, 0x22
je 0x300621f8
dec eax
dec eax
je 0x300621c4
sub eax, 0xed
je 0x30062194
dec eax
jne 0x300095de
call fcn.30046ff2
test byte [0x301de148], 1
je 0x300623c0
movsx eax, word [ebp + 0xc]
cmp eax, 0xf090
je 0x300623c0
cmp eax, 0xf100
je 0x300623c0
and eax, 0xfff0
push 1
add eax, 0xf042
jmp 0x300621a8
test byte [0x301de148], 1
movsx eax, word [ebp + 0xc]
push 1
je 0x300621b5
add eax, 0xe290
push 0
push eax
call fcn.300d9229
jmp 0x300496fc
xor edi, edi
push edi
push edi
push eax
call fcn.300df845
jmp 0x300496fc
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push 0x24
call fcn.300095ef
mov ecx, dword [0x301de004]
mov edx, dword [0x301ddde0]
imul ecx, ecx, 3
lea ecx, [ecx + edx*2]
mov dword [esi + 0x18], ecx
mov ecx, dword [0x301de008]
shl ecx, 2
mov dword [esi + 0x1c], ecx
jmp 0x300095e8
xor edi, edi
cmp word [ebp + 0xc], di
je 0x300496fc
push 1
call fcn.30046ff5
cmp dword [0x301df308], edi
jne 0x300496fc
cmp dword [0x301e4790], edi
je 0x300496fc
cmp dword [0x301e36d8], edi
jne 0x300496fc
cmp dword [0x301e4aec], edi
jne 0x300496fc
push dword [0x301e47a0]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x300496fc
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x301e470c]
cmp eax, dword [ecx + 4]
jne 0x300496fc
call fcn.30121ad5
jmp 0x300496fc
je 0x30049703
mov eax, esi
sub eax, 0x116
je 0x3006234f
sub eax, 0xb
je 0x30062305
sub eax, 0xe0
je 0x300622ea
sub eax, 0x28
je 0x300622a5
sub eax, 0xde
jne 0x300095de
call fcn.300cf27b
jmp 0x300496fc
mov eax, dword [0x301e4914]
xor edi, edi
cmp eax, edi
jne 0x300622b4
xor ebx, ebx
jmp 0x300622e3
mov ebx, dword [eax]
cmp ebx, edi
je 0x300622e3
cmp dword [ebp + 0xc], edi
je 0x300622e3
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push edi
push ebx
call esi
test eax, eax
je 0x300622de
push edi
push ebx
call esi
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp + 0xc]
and eax, 1
mov dword [ecx], eax
jmp 0x300622e3
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, ebx
jmp 0x300095e8
test byte [0x301de148], 1
je 0x300095de
push 1
push 0
push 0xffff
jmp 0x300621ab
movsx eax, bx
xor edi, edi
cmp eax, edi
jl 0x300095de
cmp eax, 2
jg 0x300095de
cmp dword [0x301e4708], edi
je 0x30062332
call fcn.30055e8d
call fcn.3000a638
call fcn.30055ea6
call fcn.3004d5fa
mov eax, dword [0x301e46fc]
cmp eax, edi
je 0x300095de
push eax
call fcn.30036236
jmp 0x300095de
call fcn.30046ff2
push 1
call fcn.3000a603
jmp 0x300095de
xor edi, edi
cmp dword [0x301e4aec], edi
je 0x300623b8
mov eax, dword [0x301e4bd0]
mov eax, dword [eax + 0x2b8]
mov eax, dword [eax + 0xbe]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x34]
mov eax, dword [0x301e4bd0]
test word [eax + 0x2c0], 0x1e0
jbe 0x300623b8
mov cx, word [eax + 0x2c0]
mov dx, cx
shr dx, 5
dec edx
shl edx, 5
xor edx, ecx
and dx, 0x1e0
xor edx, ecx
mov word [eax + 0x2c0], dx
cmp dword [0x301dec14], edi
jne 0x300623c8
xor eax, eax
inc eax
jmp 0x300095e8
mov dword [0x301de2f4], 0xfff7
call fcn.30055e8d
push 1
call fcn.300156a1
call dword [sym.imp.MSO.DLL_Ordinal_497]
test eax, eax
jne 0x300623f3
cmp bx, 2
je 0x300623f3
call fcn.3000b1a3
call fcn.30055ea6
cmp dword [0x301e4aec], edi
je 0x300095de
mov eax, dword [0x301e48a0]
mov eax, dword [eax + 0xda]
cmp eax, edi
je 0x300095de
push eax
call fcn.300329f0
jmp 0x300095de
xor edi, edi
cmp dword [0x301df188], edi
jne 0x3006243b
mov dword [0x301de2f4], 0xfff7
jmp 0x300496fc
cmp dword [0x301e4aec], edi
je 0x3006247f
mov eax, dword [0x301e4bd0]
mov eax, dword [eax + 0x2b8]
mov eax, dword [eax + 0xbe]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
mov eax, dword [0x301e4bd0]
add eax, 0x2c0
mov cx, word [eax]
mov edx, ecx
and dl, 0xe0
add edx, 0x20
xor edx, ecx
and dx, 0x1e0
xor edx, ecx
mov word [eax], dx
cmp dword [0x301dec14], edi
je 0x300623c0
call fcn.30055e8d
xor esi, esi
inc esi
push esi
push dword [0x301de1d0]
call fcn.3000f8f0
movsx eax, word [ebp + 0xc]
push esi
mov dword [0x301de2f4], eax
call fcn.3000a603
push esi
push 9
call fcn.3003fac6
jmp 0x30062077