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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x616780]
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.00432dfe
mov ecx, eax
test ecx, ecx
je 0x412b52
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x234], eax
movups xmm0, xmmword [0x5ba33c]
mov al, byte [0x5ba354]
push 0xeb
mov byte [ebp - 0x214], al
lea eax, [ebp - 0x213]
movups xmmword [ebp - 0x22c], xmm0
push 0
movq xmm0, qword [0x5ba34c]
push eax
mov dword [ebp - 4], 0
movq qword [ebp - 0x21c], xmm0
call fcn.00579c10
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 0x412872
sub ecx, edx
lea eax, [ebp - 0x22c]
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00402ef0
mov esi, dword [ebp - 0x234]
push 0x5c
push esi
call fcn.00587867
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4128fd
sub ecx, esi
cmp ecx, 0xffffffff
je 0x4128fd
mov eax, dword [esi - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x234]
dec eax
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00412660
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.004031e0
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 0x4128f7
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 0x412907
movq xmm0, qword [str.____:]
lea ecx, [ebp - 0x128]
mov ax, word [0x5ba360]
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 0x412936
sub ecx, edx
je 0x41298e
movsx eax, byte [ebp + edi - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0057a5a0
add esp, 8
test eax, eax
jne 0x41296f
movsx eax, byte [ebp + edi - 0x128]
push eax
call fcn.00587300
add esp, 4
test eax, eax
jne 0x412977
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 0x412981
sub eax, edx
cmp edi, eax
jb 0x412941
push 0x58
lea eax, [ebp - 0x2b0]
push 0
push eax
call fcn.00579c10
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 0x412b02
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 0x412ab6
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 0x412a84
lea eax, [ebp - 0x258]
push eax
call edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x412a53
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 0x412a40
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 0x412ac4
mov edi, dword [ebp - 0x23c]
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00413530
add esp, 0xc
test al, al
jne 0x412b49
push 0x10
push str.Error_saving_file
push 0x5ba3a4
mov ecx, edi
call fcn.004387b3
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 0x412b28
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.0057837f
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x22d], 1
jmp 0x412b09
push 0x80004005
call fcn.00401ec0
int3