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

Disassembly:
push ebp
lea ebp, [esp - 0x2c]
sub esp, 0x2c
push 0xfffffffffffffffe
push 0x100a9e60
push 0x1005e350
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
push ebx
push esi
push edi
mov eax, dword [0x100c2d54]
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
test ecx, ecx
xor eax, eax
mov dword [ebp + 0x24], eax
test dh, dh
mov dword [ebp + 0x28], eax
test al, al
call fcn.100369a0
nop
call fcn.10036fc0
mov dl, dl
test edi, edi
jne 0x1003a6e8
test dl, dl
jmp 0x1003af09
mov eax, dword [ebx]
lea ecx, [ebp + 0x24]
push ecx
push 0x10083a10
push ebx
mov edx, dword [eax]
call edx
test cl, cl
mov eax, dword [edi]
lea ecx, [ebp + 0x28]
push ecx
push 0x10083a10
push edi
mov edx, dword [eax]
call edx
mov al, al
cmp dword [ebp + 0x28], 0
je 0x1003af07
cmp dword [ebp + 0x24], 0
je 0x1003af07
mov bh, bh
mov edi, 0x7c
push edi
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.1005e5f0
add esp, 0xc
test al, al
push edi
push 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.1005e5f0
add esp, 0xc
mov edx, edx
mov dword [ebp - 0x110], edi
mov edi, edi
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 esi, esi
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 edi, edi
test dword [ebp - 0xa8], 0x200
je 0x1003af09
test esi, esi
jne 0x1003a7a3
mov ebx, dword [ebp - 0x104]
jmp 0x1003a7a8
mov ebx, dword [esi + 8]
sub ebx, dword [esi]
mov dword [ebp - 0x1c4], ebx
test edi, edi
test esi, esi
jne 0x1003a7bc
mov edi, dword [ebp - 0x108]
jmp 0x1003a7c2
mov edi, dword [esi + 0xc]
sub edi, dword [esi + 4]
mov dword [ebp - 0x1bc], edi
test ah, ah
mov edx, dword [ebp + 0x38]
test edx, edx
jne 0x1003a7d9
mov ecx, dword [ebp - 0x88]
jmp 0x1003a7de
mov ecx, dword [edx + 8]
sub ecx, dword [edx]
mov dword [ebp - 0x1c0], ecx
test ah, ah
test edx, edx
jne 0x1003a7f2
mov eax, dword [ebp - 0x8c]
jmp 0x1003a7f8
mov eax, dword [edx + 0xc]
sub eax, dword [edx + 4]
mov dword [ebp - 0x1c8], eax
mov ebx, ebx
cmp ebx, ecx
je 0x1003a80b
push ecx
pop ecx
jmp 0x1003af09
cmp edi, eax
je 0x1003a816
mov ecx, ecx
jmp 0x1003af09
mov ecx, ecx
test byte [ebp - 0x48], 0x40
jne 0x1003a825
test al, al
jmp 0x1003af09
mov eax, dword [ebp - 0x40]
cmp eax, 0x20
je 0x1003a839
cmp eax, 0x10
je 0x1003a839
mov dl, dl
jmp 0x1003af09
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, esi
mov al, al
test ecx, ecx
mov dword [ebp - 0x11c], 0
nop
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [0x101d8364]
jg 0x1003af09
test esi, esi
jne 0x1003a86e
mov dword [ebp - 0x114], esi
jmp 0x1003a876
mov edx, dword [esi]
mov dword [ebp - 0x114], edx
test edi, edi
test esi, esi
jne 0x1003a880
xor ebx, ebx
jmp 0x1003a883
mov ebx, dword [esi + 4]
test edx, edx
mov eax, dword [ebp - 0x11c]
push eax
call fcn.10036820
add esp, 4
mov edi, eax
mov dword [ebp - 0x118], edi
test bh, bh
test edi, edi
jne 0x1003a8ad
mov dh, dh
add dword [ebp - 0x11c], 1
jmp 0x1003a850
push 0
push 0
push 0
push 6
push edi
call fcn.1002d860
mov esi, eax
mov dword [ebp - 0x1cc], esi
test dh, dh
test esi, esi
jne 0x1003a8e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ch, ch
mov esi, dword [ebp + 0x34]
add dword [ebp - 0x11c], 1
jmp 0x1003a850
test bl, bl
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
test ah, ah
mov dword [ebp - 4], eax
mov edi, dword [esi + 0xc]
test ebx, ebx
lea ecx, [ebp + 0x1c]
push ecx
push edi
call dword [sym.imp.USER32.dll_ClientToScreen]
test ah, ah
mov bh, bh
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
test cl, cl
push edi
call fcn.10022860
add esp, 4
mov ah, ah
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x1003a97a
mov eax, dword [ebp - 0x12c]
cmp eax, dword [esi + 0x14]
jne 0x1003a940
mov ecx, dword [ebp - 0x128]
cmp ecx, dword [esi + 0x18]
je 0x1003a97a
mov eax, dword [0x101d8d18]
xor edi, edi
cmp eax, edi
je 0x1003a962
test eax, 0x2cdb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
test cl, cl
mov dword [0x101d8d18], edi
mov bh, bh
mov ecx, dword [ebp - 0x12c]
mov dword [esi + 0x14], ecx
test edx, edx
mov edx, dword [ebp - 0x128]
mov dword [esi + 0x18], edx
mov edx, edx
jmp 0x1003a97c
xor edi, edi
mov dword [ebp - 4], 0xfffffffe
cmp dword [0x101d8d18], edi
jne 0x1003ab10
mov dl, dl
push 0x7c
push edi
lea eax, [ebp - 0x1b8]
push eax
call fcn.1005e5f0
add esp, 0xc
mov dh, dh
mov dword [ebp - 0x1b8], 0x7c
mov eax, eax
mov dword [ebp - 0x1b4], 7
test edi, edi
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x1c4], eax
ja 0x1003a9d2
mov dword [ebp - 0x1ac], eax
test bh, bh
jmp 0x1003a9e0
lea ecx, [eax + eax]
mov dword [ebp - 0x1ac], ecx
test eax, 0x1349
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x1bc], eax
ja 0x1003a9f5
mov dword [ebp - 0x1b0], eax
mov edx, edx
jmp 0x1003aa00
lea edx, [eax + eax]
mov dword [ebp - 0x1b0], edx
mov ch, ch
test bl, bl
mov dword [ebp - 0x150], 0x840
test ecx, ecx
cmp dword [0x101d8d1c], edi
je 0x1003aa2b
test dword [ebp - 0x2c], 0x4000
je 0x1003aa2b
mov dword [ebp - 0x150], 0x4040
test dl, dl
mov dword [ebp + 0x14], edi
test edx, edx
mov dword [ebp + 0x18], edi
test eax, 0x1c3c
mov dword [ebp + 0x10], edi
mov edi, edi
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x90]
call eax
nop
cmp eax, edi
jge 0x1003aa72
mov bl, bl
push esi
call fcn.1002d890
mov ah, ah
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, al
jmp 0x1003af09
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
lea ecx, [ebp + 0x18]
push ecx
push 0x100839c0
push eax
mov edx, dword [edx]
call edx
test bl, bl
cmp eax, edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
jge 0x1003aab6
call edx
mov cl, cl
push esi
call fcn.1002d890
mov ebx, ebx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, eax
test bl, bl
jmp 0x1003af09
call edx
mov ebx, ebx
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 esi, esi
cmp eax, edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
jge 0x1003ab02
call edx
test ch, ch
push esi
call fcn.1002d890
mov edi, edi
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, al
mov ebx, ebx
jmp 0x1003af09
call edx
mov eax, eax
mov eax, dword [ebp + 0x10]
mov dword [0x101d8d18], eax
test eax, eax
mov eax, dword [ebp - 0x114]
cmp eax, edi
jne 0x1003ab1f
mov eax, dword [ebp + 0x1c]
test bh, bh
cmp ebx, edi
jne 0x1003ab28
mov ebx, dword [ebp + 0x20]
mov cl, cl
test edi, edi
sub eax, dword [ebp + 0x1c]
mov dword [ebp], eax
test ch, ch
sub ebx, dword [ebp + 0x20]
mov dword [ebp + 4], ebx
mov ecx, ecx
mov ecx, dword [ebp]
mov edx, dword [ebp - 0x1c0]
add ecx, edx
mov dword [ebp + 8], ecx
xchg ebx, eax
xchg ebx, eax
mov eax, dword [ebp + 4]
mov ecx, dword [ebp - 0x1c8]
add eax, ecx
mov dword [ebp + 0xc], eax
mov dh, dh
mov eax, dword [0x101d8d18]
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
xchg ebx, eax
xchg ebx, eax
cmp eax, edi
jge 0x1003ab9d
push esi
call fcn.1002d890
push ebx
pop ebx
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, eax
test edi, edi
jmp 0x1003af09
mov eax, dword [0x101d8b98]
mov dword [ebp - 0x114], eax
test eax, 0x7cdf
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.10036650
add esp, 8
mov edi, eax
mov dword [ebp - 0x1dc], edi
mov bl, bl
test edi, edi
je 0x1003aea5
mov ebx, dword [0x101d8d18]
mov dword [ebp - 0x1d8], ebx
mov edi, edi
xchg ebx, eax
xchg ebx, eax
push 0x7c
push 0
lea edx, [ebp - 0x1b8]
push edx
call fcn.1005e5f0
add esp, 0xc
test bh, bh
mov dword [ebp - 0x1b8], 0x7c
test eax, eax
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
mov dh, dh
test eax, eax
jne 0x1003ae9a
mov eax, dword [ebp - 0x114]
push eax
push edi
call fcn.100367c0
add esp, 8
test eax, eax
je 0x1003ae89
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x124], ecx
mov eax, eax
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1e0], edx
mov ah, ah
lea eax, [esi + 0x24]
mov dword [ebp - 0x120], eax
mov dl, dl
mov eax, dword [esi + 0x14]
add eax, eax
add eax, eax
mov dword [ebp - 0x1d4], eax
test ecx, ecx
mov bl, bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
test dl, dl
test ch, ch
test ecx, ecx
mov eax, dword [esi + 0x18]
test dh, dh
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x13c], ecx
xchg ebx, eax
xchg ebx, eax
test ecx, ecx
xor ecx, ecx
mov dword [esi + 0x20], ecx
test cl, cl
cmp dword [ebp - 0x164], 0x10
jne 0x1003aca8
mov dword [esi + 0x20], 1
mov esi, esi
cmp dword [ebp - 0x114], ecx
jne 0x1003acb5
mov dword [esi + 0x20], ecx
mov cl, cl
cmp eax, ecx
jbe 0x1003ae52
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x164], 0x10
jne 0x1003ae06
cmp dword [ebp - 0x114], 0
jne 0x1003addf
mov eax, eax
xor edi, edi
cmp dword [ebp - 0x13c], edi
jbe 0x1003ae29
lea ecx, [ecx]
mov edx, dword [ebp - 0x124]
movzx eax, word [edx + edi*2]
push edx
pop edx
movzx eax, ax
mov ecx, eax
shr ecx, 8
and ecx, 0xf8
push ecx
pop ecx
mov ebx, eax
shr ebx, 3
and ebx, 0xfc
mov esi, esi
and eax, 0x1f
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x138], eax
test eax, 0x2257
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
add ecx, eax
test eax, 0x5eb2
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 ebx
pop ebx
cmp ecx, 0xff
jbe 0x1003ad8d
mov ecx, 0xff
test ah, ah
cmp ebx, 0xff
jbe 0x1003ad9c
mov ebx, 0xff
test esi, esi
cmp eax, 0xff
jbe 0x1003adb5
mov dword [ebp - 0x138], 0xff
test edx, edx
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
mov edi, edi
add edi, 1
cmp edi, dword [ebp - 0x13c]
jb 0x1003acf0
jmp 0x1003ae29
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.1005f780
add esp, 0xc
mov dl, dl
jmp 0x1003ae29
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.1005f780
add esp, 0xc
test cl, cl
mov eax, dword [ebp - 0x1e0]
add dword [ebp - 0x124], eax
test esi, esi
mov ecx, dword [ebp - 0x1d4]
add dword [ebp - 0x120], ecx
mov eax, eax
sub dword [ebp - 0x1d0], 1
jne 0x1003acc3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ch, ch
test edx, edx
mov esi, dword [ebp - 0x1cc]
mov dword [esi + 0x1c], 1
mov dl, dl
mov edx, dword [ebp - 0x114]
push edx
mov edi, dword [ebp - 0x1dc]
push edi
call fcn.100367f0
add esp, 8
mov ebx, ebx
mov ebx, dword [ebp - 0x1d8]
mov eax, dword [ebx]
push 0
push ebx
mov ecx, dword [eax + 0x80]
call ecx
test dh, dh
jmp 0x1003ae9c
mov ecx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
push esi
call fcn.1002d890
mov bh, bh
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, ebp
mov esi, dword [ebp + 0x34]
add dword [ebp - 0x11c], 1
jmp 0x1003a850
mov dh, dh
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x1003af1a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push ebx
pop ebx
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x1003af2b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
test bh, bh
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