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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x628f04
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x56c], eax
cmp dword [edi + 0x10], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x568], ecx
je 0x4a0be1
test eax, eax
je 0x4a0be1
xor cl, cl
mov dword [ebp - 0x434], 7
xor eax, eax
mov byte [ebp - 0x554], cl
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], 7
mov dword [ebp - 0x420], eax
mov word [ebp - 0x430], ax
movd xmm1, dword [ebp + 0xc]
cvtdq2pd xmm1, xmm1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx eax, cl
mov ecx, 1
mov byte [ebp - 4], 1
mulsd xmm1, qword [0x647350]
mulsd xmm1, qword [0x647350]
comisd xmm1, xmmword [0x647358]
cmova eax, ecx
mov dword [ebp - 0x570], eax
call esi
sub eax, dword [ebx + 8]
mov ecx, 0x78
cmp eax, ecx
mov eax, 0
cmovb eax, ecx
mov dword [ebp - 0x558], eax
call esi
mov dword [ebx + 8], eax
cmp dword [edi + 0x14], 8
jb 0x4a0764
mov eax, dword [edi]
jmp 0x4a0766
mov eax, edi
push eax
call dword [sym.imp.FreeImagePlus.dll_public:_static_enum_FREE_IMAGE_FORMAT___cdecl_fipImage::identifyFIFU_wchar_t_const__]
mov ecx, dword [ebp - 0x558]
add esp, 4
cmp byte [ebp - 0x570], 0
mov esi, eax
je 0x4a0962
cmp esi, 0x19
je 0x4a0962
cmp esi, 1
je 0x4a0962
test ecx, ecx
jne 0x4a0962
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0052f1e0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0052f1e0
add esp, 0x18
cmp dword [edi + 0x14], 8
jb 0x4a07e2
mov eax, dword [edi]
jmp 0x4a07e4
mov eax, edi
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.0049a1d0
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x478]
push eax
call fcn.0046e770
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.0049afe0
add esp, 8
push eax
lea ecx, [ebp - 0x550]
mov byte [ebp - 4], 3
call fcn.0046d760
lea ecx, [ebp - 0x460]
call fcn.0046a940
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.004a88e0
push 0x10
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x550]
call fcn.0046dd50
push eax
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 4
push eax
call fcn.0049ac00
add esp, 8
lea ecx, [ebp - 0x448]
push eax
call fcn.004721f0
lea ecx, [ebp - 0x460]
call fcn.004a88e0
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.0046a940
mov ecx, dword [ebx + 0x70]
lea eax, [ebx + 0x58]
push eax
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.ImageDraw.dll_public:_bool___thiscall_CacheThumbnailAdapter::CheckDB_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
test al, al
je 0x4a0977
lea ecx, [ebp - 0x4e4]
call fcn.0046d7c0
lea eax, [ebp - 0x460]
push edi
push eax
call fcn.0049afe0
add esp, 8
push eax
lea ecx, [ebp - 0x4e4]
mov byte [ebp - 4], 5
call fcn.0046e550
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 1
call fcn.0046a940
push 0x10
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x4e4]
call fcn.0046dd50
push eax
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 6
push eax
call fcn.0049ac00
add esp, 8
lea ecx, [ebp - 0x430]
push eax
call fcn.004721f0
lea ecx, [ebp - 0x460]
call fcn.004a88e0
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.0046a940
mov ecx, dword [ebx + 0x70]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.ImageDraw.dll_public:_bool___thiscall_CacheThumbnailAdapter::SelectImage_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
test al, al
jne 0x4a0977
mov al, 1
jmp 0x4a097d
mov eax, dword [ebp - 0x554]
test ecx, ecx
movzx eax, al
mov ecx, 1
cmovg eax, ecx
jmp 0x4a097d
mov eax, dword [ebp - 0x554]
cmp esi, 0x19
je 0x4a0a30
cmp esi, 1
je 0x4a0a30
test al, al
je 0x4a0a30
lea eax, [ebp - 0x554]
mov dword [ebp - 0x554], 0
push eax
push dword [ebp - 0x568]
mov ecx, ebx
push dword [ebp - 0x564]
push dword [ebp + 0xc]
push edi
call fcn.0049f990
test al, al
je 0x4a0a30
push 0x24
call fcn.0052d905
add esp, 4
mov dword [ebp - 0x55c], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4a09f5
push 0
push dword [ebp - 0x554]
mov ecx, eax
push dword [ebp - 0x56c]
push edi
call fcn.004888b0
mov esi, eax
jmp 0x4a09f7
xor esi, esi
push esi
push 0
push 0x592
push dword [ebp - 0x564]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x4a0a30
test esi, esi
je 0x4a0a20
push eax
mov ecx, esi
call fcn.00488fe0
mov ecx, dword [ebp - 0x554]
test ecx, ecx
je 0x4a0a30
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x2c
call fcn.0052d905
add esp, 4
mov dword [ebp - 0x55c], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4a0a52
push ebx
mov ecx, eax
call fcn.0047f4e0
jmp 0x4a0a54
xor eax, eax
push 0x70
mov dword [ebp - 0x554], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x560], eax
call fcn.0052d905
add esp, 4
test eax, eax
je 0x4a0a83
mov ecx, eax
call fcn.0049f1c0
mov esi, eax
mov dword [ebp - 0x55c], eax
jmp 0x4a0a8b
xor esi, esi
mov dword [ebp - 0x55c], esi
lea ecx, [esi + 0xc]
cmp ecx, edi
je 0x4a0a9c
push 0xffffffffffffffff
push 0
push edi
call fcn.00470350
mov eax, dword [ebp - 0x56c]
lea ecx, [esi + 0x3c]
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x564]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x568]
mov eax, dword [eax]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x570]
mov byte [esi + 3], al
mov eax, dword [ebp - 0x558]
mov dword [esi + 4], eax
lea eax, [ebp - 0x448]
cmp ecx, eax
je 0x4a0ae2
push 0xffffffffffffffff
push 0
push eax
call fcn.00470350
lea ecx, [esi + 0x24]
lea eax, [ebp - 0x430]
cmp ecx, eax
je 0x4a0af9
push 0xffffffffffffffff
push 0
push eax
call fcn.00470350
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x574], ebx
call dword [eax]
mov byte [ebp - 0x570], 1
mov esi, dword [ebx + 0x34]
mov byte [ebp - 4], 9
cmp esi, dword [ebx + 0x38]
je 0x4a0b2d
mov ecx, dword [esi]
call fcn.0047fd40
mov dword [esi], 0
add esi, 4
cmp esi, dword [ebx + 0x38]
jne 0x4a0b18
mov eax, dword [ebx + 0x34]
lea ecx, [ebp - 0x560]
mov dword [ebx + 0x38], eax
cmp ecx, eax
jae 0x4a0bff
mov ecx, eax
lea edx, [ebp - 0x560]
cmp ecx, edx
ja 0x4a0bff
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [ebx + 0x3c]
jne 0x4a0b67
push 1
lea ecx, [ebx + 0x34]
call fcn.004a0db0
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x34]
test ecx, ecx
je 0x4a0b76
mov eax, dword [eax + esi*4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x554]
push dword [ebp - 0x55c]
add dword [ebx + 0x38], 4
call fcn.0047fc80
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [eax + 4]
cmp dword [ebp - 0x41c], 8
jb 0x4a0bad
push dword [ebp - 0x430]
call fcn.0052d900
add esp, 4
xor eax, eax
mov dword [ebp - 0x41c], 7
cmp dword [ebp - 0x434], 8
mov dword [ebp - 0x420], 0
mov word [ebp - 0x430], ax
jb 0x4a0be1
push dword [ebp - 0x448]
call fcn.0052d900
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0x14
cmp eax, dword [ebx + 0x3c]
jne 0x4a0c0e
push 1
lea ecx, [ebx + 0x34]
call fcn.004a0db0
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4a0b76
mov ecx, dword [ebp - 0x554]
mov dword [eax], ecx
jmp 0x4a0b7c