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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xfffffffffffffffe
push 0x1002ea28
push 0x1001a6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x208
push ebx
push esi
push edi
mov eax, dword [0x10032644]
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 esi, ecx
mov ebx, dword [ebp + 0x6c]
mov edi, edx
xor eax, eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x58], eax
call fcn.10009f60
call fcn.1000a210
test esi, esi
je 0x1000d45c
mov eax, dword [edi]
lea ecx, [ebp + 0x40]
push ecx
push 0x1002b3e8
push edi
mov edx, dword [eax]
call edx
mov eax, dword [esi]
lea ecx, [ebp + 0x58]
push ecx
push 0x1002b3e8
push esi
mov edx, dword [eax]
call edx
cmp dword [ebp + 0x58], 0
je 0x1000d45c
mov edi, dword [ebp + 0x40]
test edi, edi
je 0x1000d45c
mov esi, 0x7c
push esi
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1001a890
push esi
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.1001a890
add esp, 0x18
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x120], esi
mov edx, dword [edi]
lea eax, [ebp - 0x218]
push eax
push edi
mov ecx, dword [edx + 0x58]
call ecx
mov eax, dword [ebp + 0x58]
mov edx, dword [eax]
lea ecx, [ebp - 0x120]
push ecx
push eax
mov edx, dword [edx + 0x58]
call edx
test dword [ebp - 0x1b0], 0x200
je 0x1000d45c
test ebx, ebx
jne 0x1000d240
mov edi, dword [ebp - 0x20c]
jmp 0x1000d245
mov edi, dword [ebx + 8]
sub edi, dword [ebx]
mov dword [ebp + 0x1c], edi
test ebx, ebx
jne 0x1000d254
mov esi, dword [ebp - 0x210]
jmp 0x1000d25a
mov esi, dword [ebx + 0xc]
sub esi, dword [ebx + 4]
mov dword [ebp + 0x2c], esi
mov eax, dword [ebp + 0x70]
test eax, eax
jne 0x1000d26c
mov edx, dword [ebp - 0x114]
jmp 0x1000d271
mov edx, dword [eax + 8]
sub edx, dword [eax]
mov dword [ebp + 0x18], edx
test eax, eax
jne 0x1000d280
mov ecx, dword [ebp - 0x118]
jmp 0x1000d286
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov dword [ebp + 0x34], ecx
cmp edi, edx
jne 0x1000d45c
cmp esi, ecx
jne 0x1000d45c
test byte [ebp - 0xd4], 0x40
je 0x1000d45c
mov eax, dword [ebp - 0xcc]
cmp eax, 0x20
je 0x1000d2ba
cmp eax, 0x10
jne 0x1000d45c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, eax
mov dword [ebp + 0x48], eax
jmp 0x1000d2d0
cmp eax, dword [0x10037cc4]
jg 0x1000d45c
xor edi, edi
cmp ebx, edi
jne 0x1000d2e7
mov dword [ebp + 0x50], edi
jmp 0x1000d2ec
mov ecx, dword [ebx]
mov dword [ebp + 0x50], ecx
cmp ebx, edi
je 0x1000d2f3
mov edi, dword [ebx + 4]
push eax
call fcn.10009ea0
add esp, 4
mov ebx, eax
mov dword [ebp + 0x54], ebx
test ebx, ebx
je 0x1000d7bf
mov edx, dword [ebp + 0x48]
push edx
push ebx
call fcn.10002e30
add esp, 8
mov esi, eax
mov dword [ebp + 0x20], esi
test esi, esi
jne 0x1000d334
push ebx
call fcn.10001ed0
add esp, 4
add dword [ebp + 0x48], 1
mov eax, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x6c]
jmp 0x1000d2d0
xor eax, eax
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp - 4], eax
mov ebx, dword [esi + 0xc]
lea eax, [ebp + 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [ebp]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call section..text
add esp, 4
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x1000d3a3
mov edx, dword [ebp + 8]
cmp edx, dword [esi + 0x14]
jne 0x1000d37c
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x18]
je 0x1000d3a3
mov eax, dword [0x100386c0]
xor ebx, ebx
cmp eax, ebx
je 0x1000d395
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov dword [0x100386c0], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x18], ecx
jmp 0x1000d3a5
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
mov edx, dword [0x100386c0]
cmp edx, ebx
jne 0x1000d4eb
push 0x7c
push ebx
lea edx, [ebp - 0xa4]
push edx
call fcn.1001a890
add esp, 0xc
mov dword [ebp - 0xa4], 0x7c
mov dword [ebp - 0xa0], 7
mov eax, dword [esi + 0x14]
cmp dword [ebp + 0x1c], eax
jbe 0x1000d3ea
add eax, eax
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 0x18]
cmp dword [ebp + 0x2c], eax
ja 0x1000d400
mov dword [ebp - 0x9c], eax
jmp 0x1000d409
lea ecx, [eax + eax]
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x3c], 0x840
cmp dword [0x100386c4], ebx
je 0x1000d42b
test dword [ebp - 0xb8], 0x4000
je 0x1000d42b
mov dword [ebp - 0x3c], 0x4040
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x4c], ebx
mov eax, dword [ebp + 0x58]
mov edx, dword [eax]
lea ecx, [ebp + 0x60]
push ecx
push eax
mov edx, dword [edx + 0x90]
call edx
test eax, eax
jge 0x1000d48f
push esi
call fcn.10002e50
mov eax, dword [ebp + 0x54]
push eax
call fcn.10001ed0
add esp, 8
mov eax, dword [ebp + 0x40]
test eax, eax
je 0x1000d46b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp + 0x58]
test eax, eax
je 0x1000d47a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax]
lea edx, [ebp + 0x5c]
push edx
push 0x1002b398
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
jge 0x1000d4b3
call edx
jmp 0x1000d44a
call edx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0x4c]
push edx
lea edx, [ebp - 0xa4]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
jge 0x1000d4e0
call edx
jmp 0x1000d44a
call edx
mov edx, dword [ebp + 0x4c]
mov dword [0x100386c0], edx
mov eax, dword [ebp + 0x50]
cmp eax, ebx
jne 0x1000d4f5
mov eax, dword [ebp + 0x38]
cmp edi, ebx
jne 0x1000d4fc
mov edi, dword [ebp + 0x3c]
sub eax, dword [ebp + 0x38]
mov dword [ebp - 0x28], eax
sub edi, dword [ebp + 0x3c]
mov ecx, edi
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp + 0x18]
add eax, edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x34]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx]
push ebx
push 0x1000000
mov eax, dword [ebp + 0x70]
push eax
mov eax, dword [ebp + 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
push edx
mov ecx, dword [ecx + 0x14]
call ecx
test eax, eax
jge 0x1000d547
push esi
call fcn.10002e50
mov edx, dword [ebp + 0x54]
push edx
jmp 0x1000d454
mov edi, dword [0x100384f8]
mov dword [ebp + 0x24], edi
push edi
mov eax, dword [ebp + 0x48]
push eax
call fcn.10009d10
add esp, 8
mov dword [ebp + 0x4c], eax
cmp eax, ebx
je 0x1000d743
mov ecx, dword [0x100386c0]
mov dword [ebp + 0x28], ecx
push 0x7c
push ebx
lea edx, [ebp - 0x19c]
push edx
call fcn.1001a890
add esp, 0xc
mov dword [ebp - 0x19c], 0x7c
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
push ebx
push 1
lea edx, [ebp - 0x19c]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x64]
call eax
test eax, eax
jne 0x1000d739
push edi
mov ecx, dword [ebp + 0x4c]
push ecx
call fcn.10009e50
add esp, 8
test eax, eax
je 0x1000d72a
mov ebx, dword [ebp - 0x178]
mov dword [ebp + 0x50], ebx
mov edx, dword [ebp - 0x18c]
mov dword [ebp + 0x10], edx
lea eax, [esi + 0x24]
mov dword [ebp + 0x60], eax
mov eax, dword [esi + 0x14]
add eax, eax
add eax, eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
mov dword [ebp + 0x44], ecx
xor ecx, ecx
mov dword [esi + 0x20], ecx
cmp dword [ebp - 0x148], 0x10
jne 0x1000d606
mov dword [esi + 0x20], 1
cmp edi, ecx
jne 0x1000d60d
mov dword [esi + 0x20], ecx
cmp eax, ecx
jbe 0x1000d70e
mov dword [ebp + 0x30], eax
cmp dword [ebp - 0x148], 0x10
jne 0x1000d780
test edi, edi
jne 0x1000d764
cmp dword [ebp + 0x44], edi
jbe 0x1000d6f5
mov edx, dword [ebp + 0x50]
movzx eax, word [edx + edi*2]
movzx eax, ax
mov ecx, eax
shr ecx, 8
and ecx, 0xf8
mov ebx, eax
shr ebx, 3
and ebx, 0xfc
and eax, 0x1f
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp + 0x5c], eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
add ecx, eax
mov eax, 0x4104105
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
add ebx, eax
mov eax, 0x8421085
mul dword [ebp + 0x5c]
mov esi, edx
mov eax, dword [ebp + 0x5c]
mov edx, eax
sub edx, esi
shr edx, 1
add edx, esi
shr edx, 4
add eax, edx
cmp ecx, 0xff
jbe 0x1000d6b1
mov ecx, 0xff
cmp ebx, 0xff
jbe 0x1000d6be
mov ebx, 0xff
cmp eax, 0xff
jbe 0x1000d6cf
mov dword [ebp + 0x5c], 0xff
mov eax, dword [ebp + 0x5c]
xor edx, edx
mov dh, cl
mov dl, bl
shl edx, 8
movzx eax, al
or edx, eax
mov ecx, dword [ebp + 0x60]
mov dword [ecx + edi*4], edx
add edi, 1
cmp edi, dword [ebp + 0x44]
jb 0x1000d636
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x50]
mov edi, dword [ebp + 0x24]
add ebx, dword [ebp + 0x10]
mov dword [ebp + 0x50], ebx
mov ecx, dword [ebp + 0x14]
add dword [ebp + 0x60], ecx
sub dword [ebp + 0x30], 1
jne 0x1000d618
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1c], 1
push edi
mov edx, dword [ebp + 0x4c]
push edx
call fcn.10009e80
add esp, 8
xor ebx, ebx
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
push ebx
push eax
mov edx, dword [ecx + 0x80]
call edx
mov eax, dword [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10002e50
mov ecx, dword [ebp + 0x54]
push ecx
call fcn.10001ed0
add esp, 8
add dword [ebp + 0x48], 1
mov eax, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x6c]
jmp 0x1000d2d0
mov eax, dword [ebp + 0x44]
add eax, eax
add eax, eax
shr eax, 1
push eax
push ebx
mov edx, dword [ebp + 0x60]
push edx
call fcn.1001b3c0
add esp, 0xc
jmp 0x1000d6f8
mov eax, dword [ebp + 0x44]
add eax, eax
add eax, eax
push eax
push ebx
mov eax, dword [ebp + 0x60]
push eax
call fcn.1001b3c0
add esp, 0xc
jmp 0x1000d6f8
add dword [ebp + 0x48], 1
mov eax, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x6c]
jmp 0x1000d2d0