Function at 0x59b420
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff4b1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x2b4], ecx
call fcn.005d8790
xorps xmm1, xmm1
movsd qword [ebp - 0x40], xmm0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x38], xmm1
mov dword [ebp - 0x30], 0
call fcn.005dc5e0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0059ceb0
test al, al
jne 0x59b4a8
mov byte [ebp - 0x2ad], al
jmp 0x59b874
movsd xmm0, qword [ebp - 0x40]
xor eax, eax
comisd xmm0, xmmword [0x6edab8]
push 0x62786c
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], eax
jb 0x59b54d
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x59b4ed
push 0x32a
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
jmp 0x59b4ef
xor eax, eax
mov byte [ebp - 4], 1
test esi, esi
je 0x59b524
test eax, eax
je 0x59b524
push 0
push 0
push 0x400
push 0
push 0
push 0x400
mov ecx, edi
call fcn.005db9a0
push eax
mov eax, dword [ebp - 0x18]
push 0
push 0
push dword [ebp - 0x2b4]
call eax
mov ecx, edi
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x59b59b
test esi, esi
je 0x59b541
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 0x2ad], 1
jmp 0x59b874
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x59b56d
push 0xe9
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
jmp 0x59b56f
xor eax, eax
mov byte [ebp - 4], 2
test esi, esi
je 0x59b524
test eax, eax
je 0x59b524
push 0
push 0
push 0x400
mov ecx, edi
call fcn.005db9a0
push eax
mov eax, dword [ebp - 0x18]
push 0
push dword [ebp - 0x2b4]
call eax
jmp 0x59b524
mov byte [ebp - 4], 0
test esi, esi
je 0x59b5aa
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x628668
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x38]
call fcn.005dc190
push eax
mov ecx, edi
call fcn.005dc200
mov ecx, edi
call fcn.005dc190
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x59b541
movsd xmm0, qword [0x6edab8]
comisd xmm0, xmmword [ebp - 0x40]
jbe 0x59b6c0
sub esp, 8
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
lea ecx, [ebp - 0x38]
movq qword [ebp - 0x20], xmm0
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push str.Default_Pictures.bmp
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005dc520
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x59b6b4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 5
lea ecx, [ebp - 0x20]
call fcn.005dadc0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x20]
call fcn.005da780
push 1
mov ecx, edi
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x59b6b4
lea ecx, [ebp - 0x20]
call fcn.005dc430
mov byte [ebp - 0x2ad], 1
jmp 0x59b874
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.005dc430
push 0
push 0
push 0x400
mov ecx, edi
call fcn.005db9a0
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.QUM_Shell32_PicPath.bmp
mov ecx, edi
call fcn.005da780
mov ecx, edi
call fcn.005dc190
push eax
call esi
test eax, eax
jne 0x59b541
push eax
lea ecx, [ebp - 0x2ac]
call fcn.005c6590
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.005dc5e0
push 0x104
push 0
push 0
push 0x104
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.005db9a0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str._shell32.dll
lea ecx, [ebp - 0x2c]
call fcn.005da780
movsd xmm0, qword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
comisd xmm0, xmmword [0x6edab8]
mov eax, 0x100
mov esi, 0x30
cmovae esi, eax
lea eax, [ebp - 0x2ac]
push esi
push 0
push eax
push 0
push 0xa0
call fcn.005dc190
push eax
call dword [sym.imp.SHELL32.dll_SHDefExtractIconW]
mov ecx, dword [ebp - 0x2ac]
test ecx, ecx
jne 0x59b7c6
mov byte [ebp - 0x2ad], cl
jmp 0x59b861
push esi
mov edx, esi
call fcn.005d1640
push eax
lea ecx, [ebp - 0x2b4]
call fcn.005c6510
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x2b4]
test esi, esi
je 0x59b84f
lea edx, [ebp - 0x58]
mov ecx, 0x628668
call fcn.005d1960
test al, al
je 0x59b84f
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
push 0
movups xmmword [ebp - 0x48], xmm0
push esi
mov dword [ebp - 0x48], vtable.Gdiplus::Bitmap.0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esi
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.005dc190
push 0
lea ecx, [ebp - 0x58]
push ecx
push eax
push esi
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
test eax, eax
push esi
sete byte [ebp - 0x2ad]
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
jmp 0x59b856
mov byte [ebp - 0x2ad], 0
lea ecx, [ebp - 0x2b4]
call fcn.005c6500
lea ecx, [ebp - 0x2c]
call fcn.005dc430
lea ecx, [ebp - 0x2ac]
call fcn.005c6580
lea ecx, [ebp - 0x38]
call fcn.005dc430
mov al, byte [ebp - 0x2ad]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret