Function at 0x10022620
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x608
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x10024780
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movsd xmm0, qword [0x101a43f4]
movsd qword [ebp - 0x24], xmm0
movups xmm0, xmmword [str.C:UsersPublicBulete_]
movups xmmword [ebp - 0x34], xmm0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5f0], eax
mov eax, esp
lea ecx, [ebp - 0x34]
mov dword [eax], ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x5ec], ecx
call fcn.100062d0
sub esp, 4
mov edx, dword [ebp - 0x5f0]
mov ecx, dword [ebp - 0x5ec]
mov dword [ebp - 0x10], 0
mov eax, esp
mov dword [eax + 8], edx
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x4c]
mov dword [eax], ecx
call fcn.1001dc90
jmp 0x100226b8
lea ecx, [ebp - 0x64]
call fcn.10006b40
lea ecx, [ebp - 0x4c]
call fcn.10007550
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
jne 0x100226e9
mov dword [ebp - 0x68], 1
jmp 0x10022a1d
xor eax, eax
lea eax, [ebp - 0x16c]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
sub esp, 0x14
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jl 0x10022a16
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5f4], eax
mov dword [ebp - 0x10], 1
mov eax, esp
lea ecx, [ebp - 0x16c]
mov dword [eax], ecx
lea ecx, [ebp - 0x1d0]
call fcn.100062d0
sub esp, 4
jmp 0x1002275d
mov dword [ebp - 0x10], 3
mov eax, esp
lea ecx, [ebp - 0x1d0]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x1b8]
mov dword [eax], ecx
mov dword [eax + 8], 0x101d6340
call fcn.10011890
jmp 0x10022788
mov ecx, dword [ebp - 0x5f4]
mov dword [ebp - 0x10], 4
mov eax, esp
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x1b8]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x1a0]
mov dword [eax], ecx
call fcn.1001dc90
jmp 0x100227b5
mov dword [ebp - 0x10], 5
mov eax, esp
lea ecx, [ebp - 0x1a0]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x188]
mov dword [eax], ecx
mov dword [eax + 8], str..lnk
call fcn.10011890
jmp 0x100227e0
lea ecx, [ebp - 0x1a0]
call fcn.10006b40
lea ecx, [ebp - 0x1b8]
call fcn.10006b40
lea ecx, [ebp - 0x1d0]
call fcn.10006b40
lea ecx, [ebp - 0x188]
call fcn.10007550
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x1002282d
mov dword [ebp - 0x68], 1
jmp 0x100229fc
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
sub esp, 4
lea eax, [ebp - 0x1d4]
mov dword [esp], eax
call fcn.10004d00
lea edx, [0x101a7d50]
xor ecx, ecx
lea ecx, [0x101a4420]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jl 0x100229ef
lea ecx, [ebp - 0x4c]
call fcn.10007550
mov ecx, eax
mov eax, esp
lea esi, [ebp - 0x3dc]
mov dword [eax + 0x10], esi
mov dword [eax + 8], ecx
mov dword [eax + 0x14], 0x104
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call eax
sub esp, 0x18
mov edx, dword [ebp - 0x1d4]
mov eax, dword [edx]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], 2
mov ecx, esp
mov dword [ecx + 4], esi
mov dword [ecx], edx
call eax
sub esp, 8
jmp 0x100228f2
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x5fc], eax
mov eax, esp
lea ecx, [ebp - 0x3e0]
mov dword [eax], ecx
call fcn.10004d00
mov edx, dword [ebp - 0x5fc]
mov esi, eax
mov eax, dword [edx]
mov eax, dword [eax]
mov ecx, esp
mov dword [ecx + 8], esi
mov dword [ecx], edx
mov dword [ecx + 4], 0x101a4430
call eax
sub esp, 0xc
mov dword [ebp - 0x5f8], eax
jmp 0x10022937
mov eax, dword [ebp - 0x5f8]
mov dword [ebp - 0x170], eax
cmp dword [ebp - 0x170], 0
jl 0x100229d1
lea ecx, [ebp - 0x188]
call fcn.10007550
mov ecx, eax
mov eax, esp
lea esi, [ebp - 0x5e8]
mov dword [eax + 0x10], esi
mov dword [eax + 8], ecx
mov dword [eax + 0x14], 0x104
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call eax
sub esp, 0x18
mov edx, dword [ebp - 0x3e0]
mov eax, dword [edx]
mov eax, dword [eax + 0x18]
mov ecx, esp
mov dword [ecx + 4], esi
mov dword [ecx], edx
mov dword [ecx + 8], 1
call eax
sub esp, 0xc
jmp 0x100229b3
mov edx, dword [ebp - 0x3e0]
mov eax, dword [edx]
mov eax, dword [eax + 8]
mov ecx, esp
mov dword [ecx], edx
call eax
sub esp, 4
jmp 0x100229cc
jmp 0x100229d1
mov edx, dword [ebp - 0x1d4]
mov eax, dword [edx]
mov eax, dword [eax + 8]
mov ecx, esp
mov dword [ecx], edx
call eax
sub esp, 4
jmp 0x100229ea
jmp 0x100229ef
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x188]
call fcn.10006b40
cmp dword [ebp - 0x68], 0
jne 0x10022a1d
jmp 0x10022a16
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x4c]
call fcn.10006b40
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x608
pop esi
pop edi
pop ebx
pop ebp
ret