Function at 0x51a870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a7fd7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x8cf144]
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 0x51ae57
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51ae57
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.007512b0
add esp, 0xc
test edi, edi
jne 0x51a906
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.007505c4
add esp, 8
test eax, eax
je 0x51a906
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 0x51ae53
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x51ae53
push eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.0051a240
mov dword [ebp - 4], 0
mov dword [ebp - 0x268], 0
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 1
push eax
push 0x812ef0
push 0x17
push 0
push 0x851bfc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x51a98c
xor bl, bl
jmp 0x51ae2e
push 3
push 0
lea ecx, [ebp - 0x294]
call fcn.0051a2a0
push 3
push 0
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 2
call fcn.0051a2a0
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 0x51ae09
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x51ae09
mov dword [ebp - 0x264], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x264]
push edx
push 0x851bbc
push eax
mov eax, dword [ecx]
mov byte [ebp - 4], 5
call eax
test eax, eax
jns 0x51aa41
lea ecx, [ebp - 0x264]
xor bl, bl
call fcn.00706f40
jmp 0x51ae0b
mov dword [ebp - 0x260], 0
mov eax, dword [ebp - 0x264]
lea edx, [ebp - 0x260]
push edx
push 0x851bac
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x51aa73
xor bl, bl
jmp 0x51adf1
mov dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x260]
lea edx, [ebp - 0x25c]
push edx
push 0x851b4c
push 0x851b7c
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 7
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jns 0x51aaab
xor bl, bl
jmp 0x51ade6
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 0x51add9
lea ecx, [ebp - 0x234]
call fcn.0051b150
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x234]
push edx
push 0x851b9c
push 0
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x3c]
call eax
test eax, eax
js 0x51add9
mov dword [ebp - 0x254], 0
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x254]
push edx
push 0x851c0c
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov eax, dword [ecx]
call eax
test eax, eax
js 0x51adca
lea ecx, [ebp - 0x234]
call fcn.0051b150
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 0x51adca
mov dword [ebp - 0x250], 0
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x250]
push edx
push 0x851c1c
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xa
mov eax, dword [ecx]
call eax
test eax, eax
jns 0x51aba4
lea ecx, [ebp - 0x250]
xor bl, bl
call fcn.00706f40
lea ecx, [ebp - 0x254]
call fcn.00706f40
jmp 0x51addb
mov dword [ebp - 0x24c], 0
push esi
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0xb
call fcn.0051a2e0
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 0x51abfe
xor bl, bl
jmp 0x51ad76
mov dword [ebp - 0x248], 0
mov esi, dword [ebp - 0x24c]
lea ecx, [ebp - 0x274]
push edi
mov byte [ebp - 4], 0xd
call fcn.0051a270
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 0x51ac4c
xor bl, bl
jmp 0x51ad6b
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 0x51ad5e
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 0x51ad5e
xor edi, edi
cmp dword [ebp - 0x244], edi
jle 0x51ad5e
mov dword [ebp - 0x238], 0
push 3
push edi
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0x10
call fcn.0051a2a0
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 0x51ad46
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 0x51ad40
lea eax, [ebp - 0x230]
push eax
call fcn.005072a0
add esp, 8
test al, al
jne 0x51ad99
push dword [ebp - 0x23c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x238]
call fcn.00706f40
inc edi
cmp edi, dword [ebp - 0x244]
jl 0x51aca2
xor bl, bl
lea ecx, [ebp - 0x240]
call fcn.00706f40
lea ecx, [ebp - 0x248]
call fcn.00706f40
lea ecx, [ebp - 0x24c]
call fcn.00706f40
lea ecx, [ebp - 0x250]
call fcn.00706f40
lea ecx, [ebp - 0x254]
call fcn.00706f40
jmp 0x51addb
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.00706f40
cmp edi, dword [ebp - 0x244]
jge 0x51ad5e
mov bl, 1
jmp 0x51ad60
lea ecx, [ebp - 0x254]
xor bl, bl
call fcn.00706f40
jmp 0x51addb
xor bl, bl
lea ecx, [ebp - 0x258]
call fcn.00706f40
lea ecx, [ebp - 0x25c]
call fcn.00706f40
lea ecx, [ebp - 0x260]
call fcn.00706f40
lea ecx, [ebp - 0x264]
call fcn.00706f40
jmp 0x51ae0b
xor bl, bl
lea ecx, [ebp - 0x234]
call fcn.00706f40
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 0x51ae44
mov edx, dword [ecx]
push ecx
mov ecx, dword [edx + 8]
call ecx
lea ecx, [ebp - 0x230]
call fcn.00402680
mov al, bl
jmp 0x51ae59
xor al, al
jmp 0x51ae59
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.006e615c
mov esp, ebp
pop ebp
ret