Function at 0x415f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575151
mov eax, dword fs:[0]
push eax
mov eax, 0x3078
call fcn.0054a430
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x5ee534], 1
mov edi, ecx
mov dword [ebp - 0x3038], edi
jne 0x416002
or dword [0x5ee534], 1
call fcn.004457a5
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x415fe4
push 0x80004005
call fcn.0040d6e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x5783f0
mov dword [0x5ee530], eax
call fcn.00547602
add esp, 4
cmp dword [ebp + 8], 0
je 0x4163ab
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push 3
push 0
push 0
push 0
push 0
mov esi, eax
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x3050], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [ebp - 0x3034]
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
call esi
mov eax, dword [edi + 4]
lea edx, [ebp - 0x3024]
push edx
push eax
call esi
mov eax, dword [ebp - 0x3024]
mov ecx, dword [ebp - 0x3020]
mov esi, dword [ebp - 0x301c]
mov edi, dword [ebp - 0x3018]
push 0
push 0
push 0
push str.DISPLAY
mov dword [ebp - 0x3044], eax
mov dword [ebp - 0x3040], ecx
sub esi, eax
sub edi, ecx
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebx, eax
push ebx
mov dword [ebp - 0x304c], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
push esi
push ebx
mov dword [ebp - 0x303c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 0x303c]
push eax
push ecx
mov dword [ebp - 0x3048], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x3040]
mov eax, dword [ebp - 0x3044]
mov ecx, dword [ebp - 0x303c]
push 0xcc0020
push edi
push esi
push edx
push eax
push ebx
push edi
push esi
xor ebx, ebx
push ebx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0x3ff
lea edx, [ebp - 0x813]
push ebx
push edx
mov byte [ebp - 0x814], bl
call fcn.00549e40
add esp, 0xc
push 0x27ff
lea eax, [ebp - 0x3013]
push ebx
push eax
mov byte [ebp - 0x3014], bl
call fcn.00549e40
add esp, 0xc
mov byte [ebp - 0x414], bl
push 0x3ff
lea ecx, [ebp - 0x413]
push ebx
push ecx
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea edx, [ebp - 0x414]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x814]
mov esi, str.Control
call fcn.00404fb0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5a56b0
call esi
inc eax
cmp eax, 0x3fffffff
jle 0x41616f
xor edi, edi
jmp 0x41618b
lea edi, [eax + eax]
mov eax, edi
call fcn.0054bbf0
mov eax, esp
push 3
push edi
push 0x5a56b0
push eax
call fcn.0040c9b0
mov edi, eax
push str.1905Cache1
call esi
inc eax
cmp eax, 0x3fffffff
jle 0x41619e
xor eax, eax
jmp 0x4161b8
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push str.1905Cache1
push eax
call fcn.0040c9b0
lea ecx, [ebp - 0x814]
push ecx
push edi
push eax
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x3014]
push str._s_s_s_s.jpg
push eax
call fcn.00546876
add esp, 0x18
lea ecx, [ebp - 0x3014]
push ecx
lea ecx, [ebp - 0x3040]
call fcn.0040c9f0
push eax
mov ecx, 0x5ee530
mov dword [ebp - 4], ebx
call fcn.0040d610
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x3040]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5e47a8
mov dword [ebp - method.ATL::CImage.virtual_0], vtable.ATL::CImage.0
mov dword [ebp - 0x307c], ebx
mov dword [ebp - 0x3078], ebx
mov dword [ebp - 0x3074], ebx
mov dword [ebp - 0x3070], ebx
mov dword [ebp - 0x306c], ebx
mov word [ebp - 0x3068], 0
mov dword [ebp - 0x3064], esi
mov dword [ebp - 0x3060], esi
mov dword [ebp - 0x305c], ebx
mov dword [ebp - 0x3058], ebx
mov dword [ebp - 0x3054], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 1
add dword [0x5e47c0], esi
push 0x5e47a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x3048]
mov dword [ebp - 4], esi
mov dword [ebp - 0x3080], ecx
push ebx
lea ecx, [ebp - 0x3084]
call fcn.00417010
lea edx, [ebp - 0x3014]
push edx
lea ecx, [ebp - 0x3040]
call fcn.0040c9f0
mov eax, dword [eax]
push eax
lea ebx, [ebp - 0x3084]
call fcn.00416df0
mov eax, dword [ebp - 0x3040]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4162f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x3048]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x303c]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edx
call esi
mov eax, dword [ebp - 0x304c]
push eax
call esi
mov ecx, dword [ebp - 0x3050]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebp - 0x3038]
cmp dword [esi + 0x274], 0
je 0x416388
lea edx, [ebp - 0x3014]
push edx
lea ecx, [ebp - 0x3038]
call fcn.0040c9f0
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov ecx, dword [esi + 0x274]
push eax
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3038]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416388
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x27c]
test ecx, ecx
je 0x41639e
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 1
call eax
lea ecx, [ebp - 0x3084]
call fcn.00417150
jmp 0x416400
mov eax, dword [0x5ee530]
cmp dword [eax - 0xc], 0
je 0x4163ea
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4163cb
xor eax, eax
jmp 0x4163e1
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0040c9b0
push eax
call fcn.00546ccf
add esp, 4
mov ecx, dword [edi + 0x27c]
test ecx, ecx
je 0x416400
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
push 0
call eax
lea esp, [ebp - 0x3094]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret 4