Function at 0x523bb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a6a77
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x8ca144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x524197
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x524197
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0074fc20
add esp, 0xc
test edi, edi
jne 0x523c46
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0074ef34
add esp, 8
test eax, eax
je 0x523c46
xor ecx, ecx
lea edi, [eax + 2]
mov word [eax], cx
lea esi, [ebp - 0x218]
push 0
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
push eax
push dword [ebp + 8]
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x524193
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x524193
push eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.00523540
mov dword [ebp - 4], 0
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 1
push eax
push 0x813900
push 0x17
push 0
push 0x8523c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x523ccc
xor bl, bl
jmp 0x52416e
push 3
push 0
lea ecx, [ebp - 0x294]
call fcn.005235a0
push 3
push 0
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
call fcn.005235a0
mov dword [ebp - 0x234], 0
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x234]
push edx
push 1
lea edx, [ebp - 0x270]
mov dword [ebp - 0x270], 0
mov ecx, dword [eax]
push edx
push 8
lea edx, [ebp - 0x284]
mov byte [ebp - 4], 4
push edx
lea edx, [ebp - 0x294]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
test eax, eax
js 0x524149
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x524149
mov dword [ebp - 0x264], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x264]
push edx
push 0x852388
push eax
mov eax, dword [ecx]
mov byte [ebp - 4], 5
call eax
test eax, eax
jns 0x523d81
lea ecx, [ebp - 0x264]
xor bl, bl
call fcn.005236b0
jmp 0x52414b
mov dword [ebp - 0x260], 0
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x260]
push edx
push 0x852378
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x523db3
xor bl, bl
jmp 0x524131
mov dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x25c]
push edx
push 0x852318
push 0x852348
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 7
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jns 0x523deb
xor bl, bl
jmp 0x524126
mov dword [ebp - 0x258], 0
mov eax, dword [ebp - 0x25c]
lea edx, [ebp - 0x258]
push edx
push eax
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
test eax, eax
js 0x524119
lea ecx, [ebp - 0x234]
call fcn.005244a0
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x234]
push edx
push 0x852368
push 0
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x3c]
call eax
test eax, eax
js 0x524119
mov dword [ebp - 0x254], 0
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x254]
push edx
push 0x8523d8
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov eax, dword [ecx]
call eax
test eax, eax
js 0x52410a
lea ecx, [ebp - 0x234]
call fcn.005244a0
mov eax, dword [ebp - 0x254]
lea edx, [ebp - 0x234]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
js 0x52410a
mov dword [ebp - 0x250], 0
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x250]
push edx
push 0x8523e8
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x523ee4
lea ecx, [ebp - 0x250]
xor bl, bl
call fcn.005236b0
lea ecx, [ebp - 0x254]
call fcn.005236b0
jmp 0x52411b
mov dword [ebp - 0x24c], 0
push esi
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0xb
call fcn.005235e0
mov esi, eax
mov ecx, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
movups xmm0, xmmword [esi]
push edx
sub esp, 0x10
mov byte [ebp - 4], 0xc
mov eax, dword [ecx]
mov edx, esp
push ecx
mov eax, dword [eax + 0x24]
movups xmmword [edx], xmm0
call eax
mov esi, eax
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x523f3e
xor bl, bl
jmp 0x5240b6
mov dword [ebp - 0x248], 0
mov esi, dword [ebp - 0x24c]
lea ecx, [ebp - 0x274]
push edi
mov byte [ebp - 4], 0xd
call fcn.00523570
mov ecx, dword [esi]
lea edx, [ebp - 0x248]
push edx
push dword [eax]
mov byte [ebp - 4], 0xe
mov eax, dword [ecx + 0x30]
push esi
call eax
push dword [ebp - 0x274]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jns 0x523f8c
xor bl, bl
jmp 0x5240ab
mov dword [ebp - 0x240], 0
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x240]
push edx
push eax
mov byte [ebp - 4], 0xf
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
call eax
test eax, eax
js 0x52409e
mov eax, dword [ebp - 0x240]
lea edx, [ebp - 0x244]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
js 0x52409e
xor edi, edi
cmp dword [ebp - 0x244], edi
jle 0x52409e
mov dword [ebp - 0x238], 0
push 3
push edi
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0x10
call fcn.005235a0
mov esi, eax
mov ecx, dword [ebp - 0x240]
lea edx, [ebp - 0x238]
movups xmm0, xmmword [esi]
push edx
sub esp, 0x10
mov byte [ebp - 4], 0x11
mov eax, dword [ecx]
mov edx, esp
push ecx
mov eax, dword [eax + 0x28]
movups xmmword [edx], xmm0
call eax
test eax, eax
lea eax, [ebp - 0x2b4]
push eax
sets bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
jne 0x524086
mov dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x23c]
push edx
push eax
mov byte [ebp - 4], 0x12
mov ecx, dword [eax]
mov eax, dword [ecx + 0x24]
call eax
push dword [ebp - 0x23c]
test eax, eax
js 0x524080
lea eax, [ebp - 0x230]
push eax
call fcn.005106b0
add esp, 8
test al, al
jne 0x5240d9
push dword [ebp - 0x23c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x238]
call fcn.005236b0
inc edi
cmp edi, dword [ebp - 0x244]
jl 0x523fe2
xor bl, bl
lea ecx, [ebp - 0x240]
call fcn.005236b0
lea ecx, [ebp - 0x248]
call fcn.005236b0
lea ecx, [ebp - 0x24c]
call fcn.005236b0
lea ecx, [ebp - 0x250]
call fcn.005236b0
lea ecx, [ebp - 0x254]
call fcn.005236b0
jmp 0x52411b
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
call eax
push dword [ebp - 0x23c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x238]
call fcn.005236b0
cmp edi, dword [ebp - 0x244]
jge 0x52409e
mov bl, 1
jmp 0x5240a0
lea ecx, [ebp - 0x254]
xor bl, bl
call fcn.005236b0
jmp 0x52411b
xor bl, bl
lea ecx, [ebp - 0x258]
call fcn.005236b0
lea ecx, [ebp - 0x25c]
call fcn.005236b0
lea ecx, [ebp - 0x260]
call fcn.005236b0
lea ecx, [ebp - 0x264]
call fcn.005236b0
jmp 0x52414b
xor bl, bl
lea ecx, [ebp - 0x234]
call fcn.005236b0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x284]
push eax
call esi
lea eax, [ebp - 0x294]
push eax
call esi
mov ecx, dword [ebp - 0x268]
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x524184
mov edx, dword [ecx]
push ecx
mov ecx, dword [edx + 8]
call ecx
lea ecx, [ebp - 0x230]
call fcn.00402680
mov al, bl
jmp 0x524199
xor al, al
jmp 0x524199
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret