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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2abb
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x615780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
call fcn.00431eae
mov ecx, eax
test ecx, ecx
je 0x412c82
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x234], eax
movups xmm0, xmmword [0x5b933c]
mov al, byte [0x5b9354]
push 0xeb
mov byte [ebp - 0x214], al
lea eax, [ebp - 0x213]
movups xmmword [ebp - 0x22c], xmm0
push 0
movq xmm0, qword [0x5b934c]
push eax
mov dword [ebp - 4], 0
movq qword [ebp - 0x21c], xmm0
call fcn.00578cc0
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x18], 0x676e70
add esp, 0xc
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4129a2
sub ecx, edx
lea eax, [ebp - 0x22c]
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00403010
mov esi, dword [ebp - 0x234]
push 0x5c
push esi
call fcn.00586746
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x412a2d
sub ecx, esi
cmp ecx, 0xffffffff
je 0x412a2d
mov eax, dword [esi - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x234]
dec eax
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00412790
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.00403300
mov edx, dword [ebp - 0x238]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412a27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x234]
mov ecx, esi
lea edx, [ebp - 0x128]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x412a37
movq xmm0, qword [str.____:]
lea ecx, [ebp - 0x128]
mov ax, word [0x5b9360]
lea edx, [ecx + 1]
movq qword [ebp - 0x24], xmm0
xor edi, edi
mov word [ebp - 0x1c], ax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412a66
sub ecx, edx
je 0x412abe
movsx eax, byte [ebp + edi - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00579650
add esp, 8
test eax, eax
jne 0x412a9f
movsx eax, byte [ebp + edi - 0x128]
push eax
call fcn.00586290
add esp, 4
test eax, eax
jne 0x412aa7
mov byte [ebp + edi - 0x128], 0x5f
lea eax, [ebp - 0x128]
inc edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412ab1
sub eax, edx
cmp edi, eax
jb 0x412a71
push 0x58
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.00578cc0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x2b0], 0x58
mov dword [ebp - 0x294], eax
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2a4], str.Portable_Network_Graphics__.png_
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x290], 0x104
push eax
mov dword [ebp - 0x27c], 0x800006
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x412c32
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x4ff
push 0x1f4
push 0
push 0
mov edi, eax
push 0
mov dword [ebp - 0x238], edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov ecx, edx
sub ecx, edi
cmp ecx, 0x1f4
jge 0x412be6
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, 0x1f4
mov esi, dword [ebp - 0x238]
cmp edx, esi
mov eax, edx
cmovge eax, esi
mov esi, edx
sub eax, edx
add ecx, eax
mov dword [ebp - 0x238], ecx
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x412bb4
lea eax, [ebp - 0x258]
push eax
call edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x412b83
mov ecx, dword [ebp - 0x238]
push 0x4ff
push ecx
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x238]
mov edx, eax
sub eax, esi
cmp eax, ecx
jl 0x412b70
mov esi, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x294]
lea edx, [ebp - 0x128]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x412bf4
mov edi, dword [ebp - 0x23c]
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00413660
add esp, 0xc
test al, al
jne 0x412c79
push 0x10
push str.Error_saving_file
push 0x5b93a4
mov ecx, edi
call fcn.00437863
mov byte [ebp - 0x22d], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412c58
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x22d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057742f
mov esp, ebp
pop ebp
mov byte [ebp - 0x22d], 1
jmp 0x412c39
push 0x80004005
call fcn.00401ec0
int3