Function at 0x40d9b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4208f4
mov eax, dword fs:[0]
push eax
sub esp, 0x270
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
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
mov edi, ecx
lea ecx, [ebp - 0x270]
push esi
push ecx
mov dword [ebp - 0x278], eax
call fcn.0041d620
push 0xfde9
lea ebx, [esi + 0x1c]
lea edx, [ebp - 0x254]
push ebx
push edx
mov dword [ebp - 4], 0
call fcn.0041d620
push 0
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x238]
push ecx
mov byte [ebp - 4], 1
call fcn.0041d620
add esp, 0x24
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
cmp ecx, eax
jl 0x40da4e
mov ecx, dword [edi + 0x10]
add eax, eax
mov dword [edi + 0x20], eax
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x40]
call eax
cmp dword [esi + 0x30], 0
je 0x40dafb
cmp dword [ebx + 0x18], 8
jb 0x40da63
mov ecx, dword [ebx + 4]
jmp 0x40da66
lea ecx, [ebx + 4]
lea edx, [ebp - 0x274]
push edx
call fcn.004020b0
push 0x208
lea eax, [ebp - 0x21a]
push 0
push eax
mov word [ebp - 0x21c], 0
call fcn.0041ecbc
mov ecx, dword [ebp - 0x274]
push 0xffffffffffffffff
push ecx
lea edx, [ebp - 0x21c]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x1c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dad9
push eax
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dafb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x10
cmp dword [ebp - 0x220], eax
jb 0x40db16
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x274], ecx
jmp 0x40db22
lea edx, [ebp - 0x234]
mov dword [ebp - 0x274], edx
cmp dword [ebp - 0x23c], eax
jb 0x40db38
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x27c], ecx
jmp 0x40db44
lea edx, [ebp - 0x250]
mov dword [ebp - 0x27c], edx
cmp dword [ebp - 0x258], eax
mov edx, dword [ebp - 0x26c]
jae 0x40db58
lea edx, [ebp - 0x26c]
mov ecx, dword [edi + 0x10]
mov ebx, dword [ecx]
lea eax, [esi + 0x58]
push eax
mov eax, dword [ebp - 0x274]
push eax
mov eax, dword [esi + 0x38]
push eax
mov eax, dword [ebp - 0x27c]
push eax
push edx
mov edx, dword [ebx + 0xc]
call edx
mov ebx, eax
call fcn.00402150
push eax
mov edx, 4
call fcn.00419930
test eax, eax
je 0x40dbc8
cmp dword [esi + 0x18], 8
jb 0x40db9a
mov eax, dword [esi + 4]
jmp 0x40db9d
lea eax, [esi + 4]
mov ecx, dword [esi + 0x58]
push ebx
push ecx
push eax
push str.CQMXendlDownload::CreateTask__url_s__custom_id_d__taskId_d
push str.CQMXendlDownload::CreateTask
push 0x5a
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTHardwareQMPublicExeQMDLDownloadEngineXendlDownload.cpp
push 0
push 4
push 0
call fcn.00402150
push eax
call fcn.004199e0
add esp, 0x2c
cmp ebx, 0xffffffff
je 0x40dc38
mov edx, dword [ebp - 0x278]
push esi
lea eax, [ebp - 0x278]
push eax
lea ecx, [edi + 0x14]
mov dword [edx], ebx
mov dword [ebp - 0x278], ebx
call fcn.0040e5f0
mov ecx, eax
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push ebx
call eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
jmp 0x40dc6d
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
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 8