Function at 0x40a0a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2d0]
mov ebx, ecx
push eax
push 0
push 0
push 0x1c
push 0
mov dword [ebp - 0x2e8], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x2d0]
push str.dlnowjpg
push eax
call esi
lea eax, [ebx + 0xa0]
push eax
lea eax, [ebp - 0x2d0]
push eax
call esi
mov ecx, 0x104
lea eax, [ebp - 0x2d0]
cmp word [eax], 0
je 0x40a110
add eax, 2
sub ecx, 1
jne 0x40a102
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x40a13c
push ecx
push str..jpg
push ecx
lea ecx, [ebp - 0x2d0]
sub edx, esi
lea ecx, [ecx + esi*2]
call fcn.00401190
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x40a375
lea eax, [edi + 4]
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], 0
push eax
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov dword [edi + 8], eax
mov ecx, edi
push dword [ebx + 0x80]
mov edx, dword [ebx + 0x7c]
call fcn.00409bb0
mov esi, eax
add esp, 4
mov dword [ebp - 0x2e4], esi
mov ebx, edi
test esi, esi
je 0x40a356
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40a2df
xor eax, eax
movzx esi, cx
mov word [ebp - 0x48], ax
xorps xmm0, xmm0
mov eax, 0x88888889
mul ecx
movups xmmword [ebp - 0x2e0], xmm0
mov eax, esi
shr edx, 5
mov ecx, edx
shl ecx, 4
sub ecx, edx
shl ecx, 2
sub eax, ecx
mov ecx, 0x3c
mov word [ebp - 0x2d4], ax
mov eax, edx
xor edx, edx
div ecx
mov ecx, esi
mov eax, 0x91a2b3c5
mov word [ebp - 0x2d6], dx
mul ecx
shr edx, 0xb
movzx eax, dx
mov word [ebp - 0x2d8], ax
cmp eax, 0x17
jbe 0x40a289
push 0xa
push 0x20
lea ecx, [ebp - 0x88]
push ecx
push eax
call fcn.0041eff8
add esp, 0x10
lea eax, [ebp - 0x88]
mov ecx, 0x20
cmp word [eax], 0
je 0x40a22e
add eax, 2
sub ecx, 1
jne 0x40a220
mov eax, 0x20
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x40a25d
push ecx
push str.:mm:ss
push ecx
mov edx, 0x20
lea ecx, [ebp - 0x88]
sub edx, esi
lea ecx, [ecx + esi*2]
call fcn.00401190
xor eax, eax
push 0x20
mov word [ebp - 0x2d8], ax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2e0]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
jmp 0x40a2b6
test ax, ax
lea eax, [ebp - 0x48]
push 0x20
push eax
lea eax, [ebp - 0x2e0]
je 0x40a2a1
push str.h:mm:ss
jmp 0x40a2a6
push str.m:ss
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov ebx, edi
push ecx
lea eax, [ebp - 0x48]
mov edx, 0x20
push eax
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00401190
mov esi, dword [ebp - 0x2e4]
lea edx, [ebp - 0xc8]
mov ecx, esi
call fcn.0040e040
mov eax, dword [ebp - 0x2e8]
push 0xffffffffffffffeb
push 0x3b6
push dword [eax + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x40a32f
push esi
mov ecx, eax
call fcn.0040e5d0
mov edx, dword [esi]
mov ecx, esi
push 1
mov edi, eax
call dword [edx]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi]
mov ecx, esi
push 1
xor edi, edi
call dword [edx]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push 1
xor edi, edi
call dword [eax]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret 8