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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10123a88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0x3c]
sar eax, 2
push eax
lea eax, [ebp + 8]
push str.GetResult:_total_d
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, str.IFileSaveDialog
mov edx, dword [ebp + 8]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100d2800
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0x3c]
sar eax, 2
cmp eax, 1
jb 0x100d2932
cmp dword [ebx + 0xc], 0
je 0x100d2932
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.10024750
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea eax, [esi - 0x10]
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [ebp - 0x10], 0
mov dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x14], eax
call fcn.10024750
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
lea edx, [edi - 0x10]
cmp eax, 0xffffffff
lea eax, [edx + 0xc]
setne cl
or edi, 0xffffffff
mov dword [ebp - 0x18], ecx
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100d2882
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x100d28a8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
push 0x1014ba2c
push 0
push esi
call eax
cmp dword [ebp + 8], 0xffffffff
mov ebx, eax
je 0x100d28d9
push ecx
mov ecx, dword [ebp - 0x14]
mov esi, esp
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
call fcn.100475f0
add esp, 4
test ebx, ebx
js 0x100d28e7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x100d28fe
push ecx
mov eax, esp
push ebx
push str._SHCreateItemFromParsingName_failed:__x
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100d16c0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100d291c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 8]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edi, eax
lea eax, [ebp + 0xc]
push edi
push str.GetResult:_org_returned_hr0x_x
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, str.IFileSaveDialog
mov edx, dword [ebp + 0xc]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x100d2987
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8