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

Disassembly:
push ebp
lea ebp, [esp - 0x2c]
sub esp, 0x2c
push 0xfffffffffffffffe
push 0x10194688
push 0x10101e00
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
push ebx
push esi
push edi
mov eax, dword [0x101af0fc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov esi, dword [ebp + 0x34]
mov ebx, edx
mov ebx, ebx
xor eax, eax
mov dword [ebp + 0x24], eax
nop
mov dword [ebp + 0x28], eax
test ch, ch
call fcn.100c9910
test bh, bh
call fcn.100c9e80
test esi, esi
test edi, edi
jne 0x100cd488
test bl, bl
jmp 0x100cdcc3
mov eax, dword [ebx]
lea ecx, [ebp + 0x24]
push ecx
push 0x101659d0
push ebx
mov edx, dword [eax]
call edx
test eax, 0x4310
mov eax, dword [edi]
lea ecx, [ebp + 0x28]
push ecx
push 0x101659d0
push edi
mov edx, dword [eax]
call edx
test eax, 0x4201
cmp dword [ebp + 0x28], 0
je 0x100cdcc1
cmp dword [ebp + 0x24], 0
je 0x100cdcc1
mov edx, edx
mov edi, 0x7c
push edi
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.10102a00
add esp, 0xc
mov dl, dl
push edi
push 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.10102a00
add esp, 0xc
test edi, edi
mov dword [ebp - 0x110], edi
nop
mov dword [ebp - 0x94], edi
mov bl, bl
mov eax, dword [ebp + 0x24]
mov edx, dword [eax]
lea ecx, [ebp - 0x110]
push ecx
push eax
mov edx, dword [edx + 0x58]
call edx
test eax, 0x3260
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x94]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
mov al, al
test dword [ebp - 0xa8], 0x200
je 0x100cdcc3
test esi, esi
jne 0x100cd54b
mov ebx, dword [ebp - 0x104]
jmp 0x100cd550
mov ebx, dword [esi + 8]
sub ebx, dword [esi]
mov dword [ebp - 0x1c4], ebx
push ecx
pop ecx
test esi, esi
jne 0x100cd564
mov edi, dword [ebp - 0x108]
jmp 0x100cd56a
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 4]
mov dword [ebp - 0x1bc], edi
mov bh, bh
mov edx, dword [ebp + 0x38]
test edx, edx
jne 0x100cd581
mov ecx, dword [ebp - 0x88]
jmp 0x100cd586
mov ecx, dword [edx + 8]
sub ecx, dword [edx]
mov dword [ebp - 0x1c0], ecx
mov ebp, ebp
test edx, edx
jne 0x100cd59a
mov eax, dword [ebp - 0x8c]
jmp 0x100cd5a0
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 4]
mov dword [ebp - 0x1c8], eax
push ecx
pop ecx
cmp ebx, ecx
je 0x100cd5b3
test ecx, ecx
jmp 0x100cdcc3
cmp edi, eax
je 0x100cd5be
mov bl, bl
jmp 0x100cdcc3
mov ebx, ebx
test byte [ebp - 0x48], 0x40
jne 0x100cd5cd
xchg ebx, eax
xchg ebx, eax
jmp 0x100cdcc3
mov eax, dword [ebp - 0x40]
cmp eax, 0x20
je 0x100cd5e1
cmp eax, 0x10
je 0x100cd5e1
mov esi, esi
jmp 0x100cdcc3
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov al, al
test dh, dh
test dl, dl
mov dword [ebp - 0x11c], 0
jmp 0x100cd600
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [0x101c5b0c]
jg 0x100cdcc3
test esi, esi
jne 0x100cd61e
mov dword [ebp - 0x114], esi
jmp 0x100cd626
mov edx, dword [esi]
mov dword [ebp - 0x114], edx
mov al, al
test esi, esi
jne 0x100cd630
xor ebx, ebx
jmp 0x100cd633
mov ebx, dword [esi + 4]
xchg ebx, eax
xchg ebx, eax
mov eax, dword [ebp - 0x11c]
push eax
call fcn.100c9790
add esp, 4
mov edi, eax
mov dword [ebp - 0x118], edi
mov edx, edx
test edi, edi
jne 0x100cd65d
mov ecx, ecx
add dword [ebp - 0x11c], 1
jmp 0x100cd600
push 0
push 0
push 0
push 6
push edi
call fcn.100b6880
mov esi, eax
mov dword [ebp - 0x1cc], esi
push ebx
pop ebx
test esi, esi
jne 0x100cd694
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, 0x60ec
mov esi, dword [ebp + 0x34]
add dword [ebp - 0x11c], 1
jmp 0x100cd600
push ecx
pop ecx
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov esi, esi
mov dword [ebp - 4], eax
mov edi, dword [esi + 0xc]
test edx, edx
lea ecx, [ebp + 0x1c]
push ecx
push edi
call dword [sym.imp.USER32.dll_ClientToScreen]
test cl, cl
test ebx, ebx
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
xchg ebx, eax
xchg ebx, eax
push edi
call fcn.1004ea50
add esp, 4
test cl, cl
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x100cd72a
mov eax, dword [ebp - 0x12c]
cmp eax, dword [esi + 0x14]
jne 0x100cd6f3
mov ecx, dword [ebp - 0x128]
cmp ecx, dword [esi + 0x18]
je 0x100cd72a
mov eax, dword [0x101c64b8]
xor edi, edi
cmp eax, edi
je 0x100cd712
mov eax, eax
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test dl, dl
mov dword [0x101c64b8], edi
test bl, bl
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x14], ecx
test ebx, ebx
mov edx, dword [ebp - 0x128]
mov dword [esi + 0x18], edx
test dh, dh
jmp 0x100cd72c
xor edi, edi
mov dword [ebp - 4], 0xfffffffe
cmp dword [0x101c64b8], edi
jne 0x100cd8c7
test ecx, ecx
push 0x7c
push edi
lea eax, [ebp - 0x1b8]
push eax
call fcn.10102a00
add esp, 0xc
test cl, cl
mov dword [ebp - 0x1b8], 0x7c
mov edx, edx
mov dword [ebp - 0x1b4], 7
test bh, bh
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x1c4], eax
ja 0x100cd782
mov dword [ebp - 0x1ac], eax
mov edi, edi
jmp 0x100cd78d
lea ecx, [eax + eax]
mov dword [ebp - 0x1ac], ecx
test dh, dh
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x1bc], eax
ja 0x100cd7a5
mov dword [ebp - 0x1b0], eax
test eax, 0x416c
jmp 0x100cd7b0
lea edx, [eax + eax]
mov dword [ebp - 0x1b0], edx
mov bl, bl
test ch, ch
mov dword [ebp - 0x150], 0x840
mov edi, edi
cmp dword [0x101c64bc], edi
je 0x100cd7db
test dword [ebp - 0x2c], 0x4000
je 0x100cd7db
mov dword [ebp - 0x150], 0x4040
mov cl, cl
mov dword [ebp + 0x14], edi
push ecx
pop ecx
mov dword [ebp + 0x18], edi
mov dh, dh
mov dword [ebp + 0x10], edi
mov esi, esi
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x90]
call eax
push edx
pop edx
cmp eax, edi
jge 0x100cd823
mov bh, bh
push esi
call fcn.100b68b0
push eax
pop eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, 0x53bf
jmp 0x100cdcc3
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
lea ecx, [ebp + 0x18]
push ecx
push 0x10165980
push eax
mov edx, dword [edx]
call edx
mov dl, dl
cmp eax, edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
jge 0x100cd867
call edx
xchg ebx, eax
xchg ebx, eax
push esi
call fcn.100b68b0
test edx, edx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, ebx
test dh, dh
jmp 0x100cdcc3
call edx
test edx, edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push edi
lea edx, [ebp + 0x10]
push edx
lea edx, [ebp - 0x1b8]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edx, edx
cmp eax, edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
jge 0x100cd8b6
call edx
xchg ebx, eax
xchg ebx, eax
push esi
call fcn.100b68b0
test dl, dl
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, 0x3b37
test bh, bh
jmp 0x100cdcc3
call edx
test eax, 0x677
mov eax, dword [ebp + 0x10]
mov dword [0x101c64b8], eax
mov dh, dh
mov eax, dword [ebp - 0x114]
cmp eax, edi
jne 0x100cd8d6
mov eax, dword [ebp + 0x1c]
mov dh, dh
cmp ebx, edi
jne 0x100cd8df
mov ebx, dword [ebp + 0x20]
test ah, ah
test dh, dh
sub eax, dword [ebp + 0x1c]
mov dword [ebp], eax
mov edx, edx
sub ebx, dword [ebp + 0x20]
mov dword [ebp + 4], ebx
test bh, bh
mov ecx, dword [ebp]
mov edx, dword [ebp - 0x1c0]
add ecx, edx
mov dword [ebp + 8], ecx
push ebx
pop ebx
mov eax, dword [ebp + 4]
mov ecx, dword [ebp - 0x1c8]
add eax, ecx
mov dword [ebp + 0xc], eax
nop
mov eax, dword [0x101c64b8]
mov edx, dword [eax]
push edi
push 0x1000000
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, dword [ebp + 0x28]
push ecx
lea ecx, [ebp]
push ecx
push eax
mov edx, dword [edx + 0x14]
call edx
test eax, 0x6ce4
cmp eax, edi
jge 0x100cd956
push esi
call fcn.100b68b0
mov bl, bl
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test dh, dh
mov ebx, ebx
jmp 0x100cdcc3
mov eax, dword [0x101c6340]
mov dword [ebp - 0x114], eax
mov al, al
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.100c95c0
add esp, 8
mov edi, eax
mov dword [ebp - 0x1dc], edi
test edi, edi
test edi, edi
je 0x100cdc5f
mov ebx, dword [0x101c64b8]
mov dword [ebp - 0x1d8], ebx
test bl, bl
nop
push 0x7c
push 0
lea edx, [ebp - 0x1b8]
push edx
call fcn.10102a00
add esp, 0xc
test eax, 0x154a
mov dword [ebp - 0x1b8], 0x7c
test ecx, ecx
mov eax, dword [ebx]
push 0
push 1
lea ecx, [ebp - 0x1b8]
push ecx
push 0
push ebx
mov edx, dword [eax + 0x64]
call edx
test bh, bh
test eax, eax
jne 0x100cdc54
mov eax, dword [ebp - 0x114]
push eax
push edi
call fcn.100c9730
add esp, 8
test eax, eax
je 0x100cdc43
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x124], ecx
mov ah, ah
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1e0], edx
push edx
pop edx
lea eax, [esi + 0x24]
mov dword [ebp - 0x120], eax
nop
mov eax, dword [esi + 0x14]
add eax, eax
add eax, eax
mov dword [ebp - 0x1d4], eax
test bl, bl
mov ebp, ebp
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xchg ebx, eax
xchg ebx, eax
mov edi, edi
mov dl, dl
test eax, 0xd41
mov eax, dword [esi + 0x18]
mov ebp, ebp
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x13c], ecx
mov ebx, ebx
mov bh, bh
xor ecx, ecx
mov dword [esi + 0x20], ecx
mov eax, eax
cmp dword [ebp - 0x164], 0x10
jne 0x100cda62
mov dword [esi + 0x20], 1
push ebx
pop ebx
cmp dword [ebp - 0x114], ecx
jne 0x100cda6f
mov dword [esi + 0x20], ecx
mov ah, ah
cmp eax, ecx
jbe 0x100cdc0c
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x164], 0x10
jne 0x100cdbc0
cmp dword [ebp - 0x114], 0
jne 0x100cdb99
mov eax, eax
xor edi, edi
cmp dword [ebp - 0x13c], edi
jbe 0x100cdbe3
jmp 0x100cdab0
mov edx, dword [ebp - 0x124]
movzx eax, word [edx + edi*2]
mov bl, bl
movzx eax, ax
mov ecx, eax
shr ecx, 8
and ecx, 0xf8
mov bl, bl
mov ebx, eax
shr ebx, 3
and ebx, 0xfc
mov edi, edi
and eax, 0x1f
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x138], eax
test bl, bl
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
add ecx, eax
test ecx, ecx
mov eax, 0x4104105
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
add ebx, eax
push ebx
pop ebx
mov eax, 0x8421085
mul dword [ebp - 0x138]
mov esi, edx
mov eax, dword [ebp - 0x138]
mov edx, eax
sub edx, esi
shr edx, 1
add edx, esi
shr edx, 4
add eax, edx
push ecx
pop ecx
cmp ecx, 0xff
jbe 0x100cdb47
mov ecx, 0xff
mov ah, ah
cmp ebx, 0xff
jbe 0x100cdb56
mov ebx, 0xff
test dh, dh
cmp eax, 0xff
jbe 0x100cdb6f
mov dword [ebp - 0x138], 0xff
mov ebx, ebx
mov eax, dword [ebp - 0x138]
xor edx, edx
mov dh, cl
mov dl, bl
shl edx, 8
movzx eax, al
or edx, eax
mov ecx, dword [ebp - 0x120]
mov dword [ecx + edi*4], edx
test edi, edi
add edi, 1
cmp edi, dword [ebp - 0x13c]
jb 0x100cdab0
jmp 0x100cdbe3
mov eax, dword [ebp - 0x13c]
add eax, eax
add eax, eax
shr eax, 1
push eax
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.10102690
add esp, 0xc
test esi, esi
jmp 0x100cdbe3
mov eax, dword [ebp - 0x13c]
add eax, eax
add eax, eax
push eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x120]
push edx
call fcn.10102690
add esp, 0xc
mov ecx, ecx
mov eax, dword [ebp - 0x1e0]
add dword [ebp - 0x124], eax
test ebx, ebx
mov ecx, dword [ebp - 0x1d4]
add dword [ebp - 0x120], ecx
test bh, bh
sub dword [ebp - 0x1d0], 1
jne 0x100cda7d
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebx, ebx
test bh, bh
mov esi, dword [ebp - 0x1cc]
mov dword [esi + 0x1c], 1
test cl, cl
mov edx, dword [ebp - 0x114]
push edx
mov edi, dword [ebp - 0x1dc]
push edi
call fcn.100c9760
add esp, 8
mov ah, ah
mov ebx, dword [ebp - 0x1d8]
mov eax, dword [ebx]
push 0
push ebx
mov ecx, dword [eax + 0x80]
call ecx
mov dh, dh
jmp 0x100cdc56
mov dh, dh
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, ecx
push esi
call fcn.100b68b0
test ebx, ebx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, edi
mov esi, dword [ebp + 0x34]
add dword [ebp - 0x11c], 1
jmp 0x100cd600
mov ch, ch
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x100cdcd7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test eax, 0xd91
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x100cdce8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dh, dh
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x2c
mov esp, ebp
pop ebp
ret