Function at 0x46dadd
Capabilities:
Get common file path

Disassembly:
push 0x7f0
mov eax, 0x4b1251
call fcn.004a76a9
mov esi, ecx
mov dword [ebp - 0x798], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x79c], eax
test eax, eax
je 0x46e010
push 0x58
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x7fc]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebp - 0x7fc], edi
mov dword [ebp - 0x7f8], eax
mov dword [ebp - 0x7f0], str.PNG_.png_
mov dword [ebp - 0x7c0], 0x4c6710
call fcn.0041a850
push ecx
push ecx
mov ecx, eax
call fcn.0041a89d
call fcn.0041a850
call fcn.0041a91a
mov ecx, 0x4c67a0
mov dword [ebp - 0x764], ebx
test al, al
mov byte [ebp - 0x79d], al
mov edx, str.screenshot
mov dword [ebp - 0x754], ebx
cmove edx, ecx
mov dword [ebp - 0x750], 0xf
mov ecx, edx
mov byte [ebp - 0x764], bl
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46db8c
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x764]
call fcn.0042e586
lea ecx, [ebp - 0x74c]
mov dword [ebp - 4], ebx
call fcn.0046901e
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x46dbc1
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x764]
call fcn.00431402
lea ecx, [ebp - 0x74c]
mov byte [ebp - 4], bl
call fcn.0040b169
cmp dword [ebp - 0x750], 0x10
lea eax, [ebp - 0x764]
cmovae eax, dword [ebp - 0x764]
push eax
lea eax, [ebp - 0x52c]
push 0x208
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea eax, [ebp - 0x324]
mov edi, 0x104
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x324]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp byte [ebp - 0x79d], 0
lea eax, [ebp - 0x52c]
mov dword [ebp - 0x7e0], eax
mov ecx, 0x4c6788
lea eax, [ebp - 0x324]
mov dword [ebp - 0x7dc], edi
mov dword [ebp - 0x7d0], eax
mov eax, str.Save_Image
cmove eax, ecx
mov dword [ebp - 0x7d8], ebx
mov ecx, dword [esi + 0xd0]
mov dword [ebp - 0x7d4], ebx
mov dword [ebp - 0x7c8], 2
mov dword [ebp - 0x7cc], eax
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push ebx
mov eax, dword [eax]
push dword [eax + 4]
call edi
mov eax, dword [esi + 0xd0]
mov ecx, dword [eax + 0xe8]
test ecx, ecx
je 0x46dcb1
mov eax, dword [ecx]
call dword [eax + 8]
push ebx
mov eax, dword [eax]
push dword [eax + 4]
call edi
lea eax, [ebp - 0x7fc]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
test eax, eax
je 0x46dfb6
mov eax, dword [0x4f0288]
lea edi, [ebp - 0x780]
xor ecx, ecx
mov dword [ebp - 0x7a4], 0x64
inc ecx
cmp dword [esi + 0x198], ecx
mov esi, 0x4bf820
mov dword [ebp - 0x784], ecx
cmovne eax, ecx
push 4
movsd dword es:[edi], dword [esi]
mov dword [0x4f0288], eax
lea eax, [ebp - 0x7a4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
push 0x208
mov dword [ebp - 0x768], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
mov dword [ebp - 0x76c], edi
mov dword [ebp - 0x770], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
mov esi, 0x104
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x7e0]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x208
lea eax, [ebp - 0x734]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x734]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor eax, eax
mov dword [ebp - 0x74c], ebx
add esp, 0xc
mov dword [ebp - 0x73c], ebx
mov dword [ebp - 0x738], 7
mov word [ebp - 0x74c], ax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsstr]
push str..png
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x46ddb9
push str.image_png
jmp 0x46de1c
lea eax, [ebp - 0x21c]
push str..jpg
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x46de17
lea eax, [ebp - 0x21c]
push str..jpeg
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x46de17
lea eax, [ebp - 0x21c]
push str..bmp
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x46ddfc
push str.image_bmp
jmp 0x46de1c
lea eax, [ebp - 0x21c]
push str..gif
push eax
call esi
pop ecx
pop ecx
test eax, eax
je 0x46de27
push str.image_gif
jmp 0x46de1c
push str.image_jpeg
lea ecx, [ebp - 0x74c]
call fcn.0040dc67
cmp dword [ebp - 0x738], 8
lea ecx, [ebp - 0x74c]
lea edx, [ebp - 0x794]
cmovae ecx, dword [ebp - 0x74c]
call fcn.00468f86
test eax, eax
je 0x46de75
mov esi, dword [ebp - 0x79c]
lea eax, [ebp - 0x784]
push eax
lea eax, [ebp - 0x794]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
je 0x46de75
mov dword [esi + 8], eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x21c]
mov ecx, 0x4f03fc
push eax
call fcn.0040d7bf
mov esi, dword [ebp - 0x798]
mov eax, dword [esi + 0xc8]
cmp eax, 6
jne 0x46deb2
mov dword [0x4f01d8], 1
jmp 0x46dede
cmp eax, edi
jne 0x46df47
lea edx, [ebp - 0x798]
mov dword [ebp - 0x798], ebx
call fcn.00461ab1
cmp dword [ebp - 0x798], 0
jne 0x46df47
call fcn.00461b32
call fcn.00461549
push 1
push 2
push 0x111
push dword [esi + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x738]
cmp eax, 8
jb 0x46dfc3
mov ecx, dword [ebp - 0x74c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x798], eax
mov dword [ebp - 0x79c], ecx
cmp eax, 0x1000
jb 0x46df3c
lea edx, [ebp - 0x798]
lea ecx, [ebp - 0x79c]
call fcn.0040aab2
mov eax, dword [ebp - 0x798]
mov ecx, dword [ebp - 0x79c]
push eax
push ecx
call fcn.004a43e6
pop ecx
pop ecx
jmp 0x46dfc3
cmp dword [esi + 0x198], 1
je 0x46df62
push 1
push 2
push 0x111
push dword [esi + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x738]
cmp eax, 8
jb 0x46dfb6
mov ecx, dword [ebp - 0x74c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x79c], eax
mov dword [ebp - 0x798], ecx
cmp eax, 0x1000
jb 0x46dfad
lea edx, [ebp - 0x79c]
lea ecx, [ebp - 0x798]
call fcn.0040aab2
mov eax, dword [ebp - 0x79c]
mov ecx, dword [ebp - 0x798]
push eax
push ecx
call fcn.004a43e6
pop ecx
pop ecx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004671c3
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x750]
cmp eax, 0x10
jb 0x46e00e
mov ecx, dword [ebp - 0x764]
inc eax
mov dword [ebp - 0x79c], eax
mov dword [ebp - 0x798], ecx
cmp eax, 0x1000
jb 0x46e005
lea edx, [ebp - 0x79c]
lea ecx, [ebp - 0x798]
call fcn.0040aab2
mov eax, dword [ebp - 0x79c]
mov ecx, dword [ebp - 0x798]
push eax
push ecx
call fcn.004a43e6
pop ecx
pop ecx
mov eax, ebx
call fcn.004a7658
ret 4