Function at 0x40b260
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420938
mov eax, dword fs:[0]
push eax
sub esp, 0xa9c
mov eax, dword [0x42d030]
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
xor ebx, ebx
push 0x800
lea eax, [ebp - 0xa26]
push ebx
push eax
mov esi, ecx
mov word [ebp - 0xa28], bx
call fcn.0041ecbc
add esp, 0xc
lea ecx, [ebp - 0xa60]
xor edi, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push ebx
push 0x2b
lea ecx, [ebp - 0xa28]
push ecx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b3cd
lea edx, [ebp - 0xa28]
push edx
lea ecx, [ebp - 0xa60]
call dword [0x4221e0]
push 0x425490
lea ecx, [ebp - 0xa60]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [ebp - 0xa60]
push eax
call fcn.00409aa0
add esp, 4
lea ecx, [ebp - 0xa44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], 1
call fcn.00409db0
test eax, eax
je 0x40b3b1
cmp dword [ebp - 0xa2c], 8
jb 0x40b35b
mov eax, dword [ebp - 0xa40]
cmp eax, ebx
je 0x40b363
cmp word [eax], bx
je 0x40b363
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b363
and al, 0x10
cmp al, 0x10
setne al
jmp 0x40b365
lea eax, [ebp - 0xa40]
jmp 0x40b341
xor al, al
movzx eax, al
cmp eax, ebx
je 0x40b3b1
lea ecx, [ebp - 0xa44]
push ecx
call fcn.00409aa0
add esp, 4
push ebx
lea edx, [ebp - 0xa60]
push edx
lea ecx, [ebp - 0xa44]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
jne 0x40b3b6
lea edx, [esi + 0x20]
push edx
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 8
test al, al
je 0x40b3b6
mov edi, 1
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp edi, ebx
je 0x40b54a
mov edi, 8
cmp dword [esi + 0x38], edi
jb 0x40b3dc
mov eax, dword [esi + 0x24]
jmp 0x40b3df
lea eax, [esi + 0x24]
cmp eax, ebx
je 0x40b3f8
cmp word [eax], bx
je 0x40b3f8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b3f8
test al, 0x10
je 0x40b412
lea ecx, [ebp - 0xa60]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x40b562
push 0x208
lea ecx, [ebp - 0x21e]
push ebx
push ecx
mov word [ebp - 0x220], bx
call fcn.0041ecbc
add esp, 0xc
push str.__install
lea edx, [ebp - 0x220]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
xor eax, eax
add esp, 0xc
push 0x44
mov dword [ebp - 0xa38], eax
mov dword [ebp - 0xa34], eax
mov dword [ebp - 0xa30], eax
mov dword [ebp - 0xa2c], eax
lea eax, [ebp - 0xaa8]
push ebx
push eax
call fcn.0041ecbc
or dword [ebp - 0xa7c], 1
add esp, 0xc
cmp dword [esi + 0x38], edi
mov dword [ebp - 0xaa8], 0x44
mov word [ebp - 0xa78], bx
jb 0x40b496
mov eax, dword [esi + 0x24]
jmp 0x40b499
lea eax, [esi + 0x24]
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xaa8]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x40b4f4
mov edx, dword [ebp - 0xa38]
push 0xc8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xa38]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40b4e5
push eax
call esi
mov eax, dword [ebp - 0xa34]
cmp eax, ebx
je 0x40b54a
push eax
call esi
jmp 0x40b54a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402150
push eax
mov edx, 2
call fcn.00419930
test eax, eax
je 0x40b54a
cmp dword [esi + 0x38], 8
jb 0x40b51b
mov esi, dword [esi + 0x24]
jmp 0x40b51e
add esi, 0x24
push edi
push esi
push str.CreateProcess_failed:__s__err:__d
push str.XFDownload::CXFDownload::CheckComFile
push 0x3dc
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLDownloadEngineengine_xfXFDownload.cpp
push edi
push 2
push 0x42e2d8
call fcn.00402150
push eax
call fcn.004199e0
add esp, 0x28
lea ecx, [ebp - 0xa60]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 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.0041e838
mov esp, ebp
pop ebp
ret