Function at 0x413db8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fe1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
push edi
cmp dword [ebp + 8], 0
jne 0x413de4
xor eax, eax
jmp 0x4140ea
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413e14
jmp 0x4140a9
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x413e2a
jmp 0x4140a9
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x1c]
push ecx
push 0x584680
push 1
push 0
push 0x584670
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x413e57
jmp 0x4140a9
lea edx, [ebp - 0x10]
push edx
push 0x584690
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
call dword [ecx]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x413e79
jmp 0x4140a9
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00449fa0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x20]
call fcn.00403620
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
call dword [edx + 0x14]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x413ec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0044a810
jmp 0x4140a9
cmp dword [ebp + 0x30], 0
je 0x413ef5
mov ecx, dword [ebp + 0x30]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [eax + 0x4c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x413ef5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0044a810
jmp 0x4140a9
cmp dword [ebp + 0xc], 0
je 0x413f4e
cmp dword [ebp + 0x10], 0
jbe 0x413f4e
mov edx, dword [ebp + 0x10]
shl edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00431600
add esp, 0xc
mov dword [ebp - 0x274], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x270]
rep stosd dword es:[edi], eax
push 4
lea ecx, [ebp - 0x274]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
call dword [edx + 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x14], 0
je 0x413f85
cmp dword [ebp + 0x18], 0
jbe 0x413f85
mov ecx, dword [ebp + 0x18]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
call fcn.00431600
add esp, 0xc
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [eax + 0x28]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x1c], 0
je 0x413fcd
cmp dword [ebp + 0x20], 0
jbe 0x413fcd
mov edx, dword [ebp + 0x20]
shl edx, 1
push edx
push 0
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00431600
add esp, 0xc
mov dword [ebp - 0x278], 0
lea ecx, [ebp - 0x278]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
call dword [edx + 0x40]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0x24], 0
je 0x414067
cmp dword [ebp + 0x28], 0
jbe 0x414067
mov ecx, dword [ebp + 0x28]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0x24]
push edx
call fcn.00431600
add esp, 0xc
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0x24]
push edx
call fcn.0043139f
add esp, 4
test eax, eax
je 0x414067
mov eax, dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
test eax, eax
je 0x414067
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.0043139f
add esp, 4
sub eax, 1
mov dword [ebp - 0x27c], eax
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp + 0x24]
xor ecx, ecx
mov cx, word [eax + edx*2]
cmp ecx, 0x5c
je 0x414067
push 0x5b86bc
mov edx, dword [ebp + 0x24]
push edx
call fcn.00431350
add esp, 8
cmp dword [ebp + 0x2c], 0
je 0x414089
mov eax, dword [ebp + 0x2c]
mov dword [eax], 0
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [eax + 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0044a810
xor edx, edx
test edx, edx
jne 0x413e00
cmp dword [ebp - 0x10], 0
je 0x4140c2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
call dword [ecx + 8]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x1c], 0
je 0x4140db
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
call dword [ecx + 8]
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x4140e7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret