Function at 0x10018780
Capabilities:
Capture screenshot
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a2fca
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x100d0320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push str.RecordImages_enter
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
call fcn.100046f0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
push 0x100aa4cc
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
push ecx
push 0x100aa4cc
lea ecx, [ebp - 0x3c]
call fcn.10002440
mov dword [ebp - 4], 2
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0xe8], 0
mov byte [ebp - 0xfd], 0
mov byte [ebp - 0xfe], 0
mov byte [ebp - 0xff], 0
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1bc], 0xffffffff
mov dword [ebp - 0x1c0], 0xffffffff
mov dword [ebp - 0x1ec], 0xffffffff
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1d4], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
mov dword [ebp - 0x1d8], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 1
mov dword [ebp - 0x1dc], eax
push 0x3c
push 0
lea edx, [ebp - 0xd8]
push edx
call fcn.10051de0
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowInfo]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1e0], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jne 0x100189b8
push 1
push str.hdcWindow__GetDC_GetDesktopWindow______has_failed
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
jmp 0x10019037
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
jne 0x100189ed
push 1
push str.CreateCompatibleDC_has_failed
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
jmp 0x10019037
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
jne 0x10018a42
push 1
push str.CreateCompatibleBitmap_Failed
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
jmp 0x10019037
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x180], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x1e4], 0
push 0xcc0020
mov eax, dword [ebp - 0x17c]
push eax
mov ecx, dword [ebp - 0x180]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x10018aea
jmp 0x10019037
lea edx, [ebp - 0x1a8]
push edx
push 0x18
mov eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov dword [ebp - 0x64], 0x28
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x5c], edx
mov eax, 1
mov word [ebp - 0x58], ax
mov ecx, 0x20
mov word [ebp - 0x56], cx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x9c], 0x28
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x94], eax
mov ecx, 1
mov word [ebp - 0x90], cx
mov edx, 0x20
mov word [ebp - 0x8e], dx
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
movzx eax, word [ebp - 0x56]
imul eax, dword [ebp - 0x1a4]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0x1a0]
mov dword [ebp - 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x108], 8
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0xfc], 0
je 0x10018c59
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0xfc]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jne 0x10018c57
push 1
push str.RecordImages__char__HeapAlloc_hHeap__dwFlags__dwBytes___failed.
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
jmp 0x10019037
jmp 0x10018c72
push 1
push str.RecordImages_hHeap__GetProcessHeap____failed.
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
jmp 0x10019037
push 0
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
push 0
mov edx, dword [ebp - 0xe4]
push edx
mov eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0xec]
add ecx, 0x36
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x6a], 0x36
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x72], edx
mov eax, 0x4d42
mov word [ebp - 0x74], ax
cmp dword [ebp - 0xf8], 0
jne 0x10018cf4
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.1004d0a9
add esp, 4
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0xf8], edx
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
mov edx, dword [ebp - 0xf8]
push edx
call fcn.100512e0
add esp, 0xc
mov dword [ebp - 0x104], 0
movzx eax, byte [ebp + 0x28]
cmp eax, 1
jne 0x10019037
push str.captureimage_
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
push ecx
push str.captureimage_
lea ecx, [ebp - 0x3c]
call fcn.10020ea0
push 0
call fcn.1005f311
add esp, 4
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], edx
lea edx, [ebp - 0x190]
push edx
call fcn.1005ef97
add esp, 4
mov dword [ebp - 0x11c], eax
push 0xa
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx + 0x10]
add edx, 1
push edx
call fcn.1005e025
add esp, 0xc
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
push eax
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp - 0x118]
push edx
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0x100aa984
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
push eax
push 0x100aa984
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0xa
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx + 0xc]
push eax
call fcn.1005e025
add esp, 0xc
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0x100aa984
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
push ecx
push 0x100aa984
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0xa
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1005e0f5
add esp, 0xc
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push eax
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [ebp - 0x124]
push edx
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0x100aa984
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
push eax
push 0x100aa984
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0xa
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.1005e025
add esp, 0xc
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
push eax
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x128]
push edx
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0x100aa984
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
push eax
push 0x100aa984
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0xa
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.1005e025
add esp, 0xc
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
push eax
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push str..bmp
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
push eax
push str..bmp
lea ecx, [ebp - 0x3c]
call fcn.10020d40
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x3c]
call fcn.10021060
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0xffffffff
je 0x10019037
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0xe
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0x28
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xf4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push str.RecordImages_done__start_clean_up.
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
cmp dword [ebp - 0xe4], 0
je 0x10019075
mov eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push str.RecordImages_DeleteObject_hbmScreen__
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
cmp dword [ebp - 0xf0], 0
je 0x1001909f
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push str.RecordImages_DeleteObject_hdcMemDC__
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
cmp dword [ebp - 0xdc], 0
je 0x100190cd
mov edx, dword [ebp - 0xdc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 1
push str.RecordImages_ReleaseDC_imageScanInfo__Hwnd____hdcWindow__
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
cmp dword [ebp - 0xf8], 0
je 0x10019105
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x16c]
push edx
call fcn.1004d0b2
add esp, 4
push 1
push str.RecordImages_delete_lpPixels_
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
cmp dword [ebp - 0xfc], 0
je 0x10019146
cmp dword [ebp - 0xe8], 0
je 0x10019146
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
push str.RecordImages_HeapFree_hHeap__dwFlags__lpbitmap___
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
cmp dword [ebp - 0x170], 0
jne 0x100191ab
push 1
push str.RecordImages_has_detected_a_match_on_the_bitmap.
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
mov byte [ebp - 0xdd], 1
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.10020a30
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 4], 4
mov dword [ebp - 4], 5
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xdd]
jmp 0x10019236
push 1
push str.RecordImages_could_not_detect_a_match_on_the_bitmap.
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
mov byte [ebp - 0xde], 0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.10020a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1f0], ecx
mov dword [ebp - 4], 7
mov dword [ebp - 4], 8
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xde]
jmp 0x10019236
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d440
mov esp, ebp
pop ebp
ret