Function at 0x41e697
Capabilities:
Create directory
Delete file

Disassembly:
push 0x434
mov eax, 0x478bfb
call fcn.0045bf13
mov eax, dword [ebp + 8]
mov esi, ecx
push str.DownloadFilesWithBITs...
lea ecx, [ebp - 0x3e0]
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x3e4], esi
call fcn.004020a6
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x3e0]
push eax
push 2
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ebx, dword [0x4c47fc]
mov edi, 0x4c47f4
mov ecx, esi
mov dword [ebp - 0x424], 0x12
mov dword [ebp - 0x3fc], edi
mov dword [ebp - 0x420], ebx
call fcn.00402305
and dword [ebp - 0x3f0], 0
test ebx, ebx
jle 0x41e7ef
push dword [ebp - 0x3f0]
mov ecx, edi
call fcn.0040b035
mov esi, eax
cmp dword [esi], 0
je 0x41e7d1
mov ecx, dword [ebp - 0x410]
push 1
mov ebx, esi
call fcn.0041c7e3
test eax, eax
jne 0x41e78b
mov ecx, dword [ebp - 0x410]
push eax
call fcn.0041c7e3
test eax, eax
jne 0x41e78b
mov ebx, dword [ebp - 0x3e4]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x41e77c
push 0x48325c
mov ecx, ebx
call fcn.0040af5f
mov esi, dword [esi]
add esi, 4
push esi
mov ecx, ebx
call fcn.00401ec7
jmp 0x41e7d1
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x3e0]
call fcn.004020a6
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push 0
add eax, 8
push eax
lea eax, [ebp - 0x3e0]
push eax
push 2
call fcn.00414e01
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3e0]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, dword [esi]
mov dword [esi + 0x18], ebx
inc dword [ebp - 0x3f0]
mov eax, dword [ebp - 0x3f0]
cmp eax, dword [ebp - 0x420]
jl 0x41e727
mov esi, dword [ebp - 0x3e4]
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x41e85b
push str.No_files_scheduled_for_download
lea ecx, [ebp - 0x3e0]
call fcn.004020a6
push 2
pop eax
push ebx
lea ecx, [ebp - 0x3e0]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x3d9]
push eax
push ebx
push str.AlreadyDownloaded
push str.Payload_Download_Status
mov esi, 0x4c46e8
mov byte [ebp - 0x3d9], bl
call fcn.0040b111
push 0x12
pop eax
jmp 0x41f3f2
lea eax, [ebp - 0x3d9]
push eax
push ebx
push str.Started
push str.Payload_Download_Status
mov esi, 0x4c46e8
mov byte [ebp - 0x3d9], 0
call fcn.0040b111
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + 8]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [0x4c4c30], ebx
je 0x41e8a6
mov dword [ebp - 0x3e8], ebx
cmp dword [0x4c4798], ebx
je 0x41e8b0
mov dword [ebp - 0x3e8], 2
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x43c], ebx
xor eax, eax
lea edi, [ebp - 0x438]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x4c4890
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x3ec], ebx
mov dword [ebp - 0x408], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x414], ebx
mov dword [ebp - 0x3f0], ebx
mov dword [ebp - 4], 3
call fcn.004020ea
lea eax, [ebp - 0x40c]
mov byte [ebp - 4], 4
push eax
lea edi, [ebp - 0x3e0]
mov dword [ebp - 0x3e0], ebx
call fcn.00422617
cmp dword [ebp - 0x3e0], ebx
jne 0x41e968
call fcn.0044825c
push eax
lea ecx, [ebp - 0x3e4]
call fcn.0041872d
lea eax, [ebp - 0x3e4]
push eax
mov ecx, 0x4c47ec
mov byte [ebp - 4], 5
call fcn.0041aa66
mov esi, dword [ebp - 0x3e4]
push esi
lea eax, [ebp - 0x40c]
push eax
xor eax, eax
call main
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.004025d2
push 0x40
call main
pop ecx
mov dword [ebp - 0x400], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x41e994
push dword [ebp - 0x40c]
push eax
call fcn.004126e1
mov esi, eax
mov dword [ebp - 0x3f8], esi
jmp 0x41e99c
mov dword [ebp - 0x3f8], ebx
mov esi, ebx
mov byte [ebp - 4], 4
cmp esi, ebx
je 0x41f32c
cmp dword [esi], ebx
je 0x41f32c
cmp dword [esi + 0xc], ebx
jge 0x41e9ef
push str.armDownloader_mErrorCode:
lea ecx, [ebp - 0x3e4]
call fcn.004020a6
mov byte [ebp - 4], 8
push dword [esi + 0xc]
lea eax, [ebp - 0x3e4]
push eax
push 2
call fcn.004152d1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e4]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x440]
push eax
mov ecx, esi
call fcn.00412f33
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x3f0], esi
jge 0x41ebc5
cmp esi, 0x80200001
je 0x41ea54
push str.isComplete_HRESULT:
lea ecx, [ebp - 0x3e4]
call fcn.004020a6
push esi
lea eax, [ebp - 0x3e4]
push eax
push 2
mov byte [ebp - 4], 9
call fcn.004152d1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e4]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp - 0x420]
xor ecx, ecx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
pop ecx
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x3e4], ebx
mov eax, dword [ebp - 0x3e4]
cmp eax, dword [ebp - 0x420]
jge 0x41ed54
mov ecx, dword [ebp - 0x3fc]
push eax
call fcn.0040b035
mov edi, eax
call fcn.0044825c
push eax
lea ecx, [ebp - 0x3f4]
call fcn.0041872d
mov byte [ebp - 4], 0xb
mov eax, dword [edi]
cmp eax, ebx
je 0x41ed37
cmp dword [eax + 0x18], ebx
jne 0x41ed37
mov esi, dword [ebp - 0x410]
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x41c]
call fcn.004020ea
mov byte [ebp - 4], 0xc
mov eax, dword [edi]
add eax, 4
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x41c]
push eax
call main
mov eax, dword [edi]
lea ecx, [eax + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.00402573
mov eax, dword [edi]
add eax, 0xc
push eax
lea ecx, [ebp - 0x3f4]
mov dword [ebp - 0x414], 1
call fcn.00402573
push 8
push dword [ebp - 0x3f4]
push str.https:__
call main
add esp, 0xc
test eax, eax
jne 0x41ec36
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x41ec29
mov ecx, dword [edi]
lea eax, [ebp - 0x3f4]
add ecx, 4
push eax
mov edx, esi
call fcn.0041d4b5
cmp eax, ebx
jne 0x41ec36
push str.fallback_not_available__exiting_BITs
lea ecx, [ebp - 0x3e0]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x3e0]
push eax
push 1
mov byte [ebp - 4], 0xd
call fcn.004152d1
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x41c]
add ecx, 0xfffffff0
mov dword [ebp - 0x3ec], 4
call fcn.004025d2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3f4]
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x41f251
cmp dword [ebp - 0x3ec], 2
je 0x41ebdb
cmp dword [ebp - 0x3ec], 1
jne 0x41ea54
push str.last_BITs_job_still_downloading__taking_over_ownership
lea ecx, [ebp - 0x3e0]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x3e0]
push eax
push 2
mov byte [ebp - 4], 0xa
call fcn.004152d1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
push dword [0x4c47fc]
push dword [ebp - 0x3f8]
call fcn.00412839
jmp 0x41ede2
mov eax, dword [ebp - 0x3f8]
mov dword [eax + 0x14], 1
mov ebx, dword [ebp - 0x41c]
mov eax, dword [ebx - 0xc]
lea esi, [eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
mov edx, dword [ebp - 0x404]
pop ecx
mov ecx, dword [ebp - 0x408]
push ebx
lea edi, [ecx + edx*8]
push esi
push eax
mov dword [edi + 4], eax
call main
add esp, 0xc
push str.Creating_BITS_job_LocalFileName:
lea ecx, [ebp - 0x418]
call fcn.004020a6
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push 2
mov byte [ebp - 4], 0xe
call fcn.00414e01
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x418]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp - 0x3f4]
mov eax, dword [eax - 0xc]
lea esi, [eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
pop ecx
push dword [ebp - 0x3f4]
mov dword [edi], eax
push esi
push eax
call main
add esp, 0xc
push str.Creating_BITS_job_RemoteName:
lea ecx, [ebp - 0x400]
call fcn.004020a6
push 0
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x400]
push eax
push 2
mov byte [ebp - 4], 0xf
call fcn.00414e01
mov ecx, dword [ebp - 0x400]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
inc dword [ebp - 0x404]
lea ecx, [ebx - 0x10]
call fcn.004025d2
xor ebx, ebx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3f4]
add ecx, 0xfffffff0
call fcn.004025d2
inc dword [ebp - 0x3e4]
jmp 0x41ea7b
cmp dword [ebp - 0x414], ebx
je 0x41f251
cmp dword [ebp - 0x404], ebx
je 0x41ede2
push dword [ebp - 0x3e8]
mov ecx, dword [ebp - 0x3f8]
push dword [ebp - 0x408]
push dword [ebp - 0x404]
call fcn.00412b9b
cmp eax, ebx
mov dword [ebp - 0x3f0], eax
jge 0x41edce
push str.downLoadFileSet___returned_error:
lea ecx, [ebp - 0x3e8]
call fcn.004020a6
push dword [ebp - 0x3f0]
lea eax, [ebp - 0x3e8]
push eax
push 1
mov byte [ebp - 4], 0x10
call fcn.004152d1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x41ede2
cmp dword [ebp - 0x3e0], ebx
je 0x41ede2
lea eax, [ebp - 0x40c]
push eax
call fcn.0042202d
mov edi, dword [ebp - 0x3f8]
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x440]
push eax
mov ecx, edi
call fcn.00412f33
mov esi, eax
mov dword [ebp - 0x3f0], esi
cmp dword [0x4c47a8], ebx
jne 0x41f251
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x41eecb
cmp dword [edi + 0x14], ebx
je 0x41eecb
cmp esi, ebx
jge 0x41ef7c
cmp esi, 0x801901f8
ja 0x41eecb
cmp dword [ebp - 0x3ec], 1
jne 0x41eecb
cmp esi, 0x80072efd
je 0x41ee57
cmp esi, 0x80072ee2
jne 0x41eeb2
push str.reporting_https_payload_error
lea ecx, [ebp - 0x3e8]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x3e8]
push eax
push 2
mov byte [ebp - 4], 0x11
call fcn.004152d1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x3d9]
push eax
push ebx
push 0x48173c
push str.HTTPS_Failed
mov esi, 0x4c46e8
mov byte [ebp - 0x3d9], 0
call fcn.0040b111
mov dword [ebp - 0x3ec], 4
mov dword [ebp - 0x424], 0x4d5
jmp 0x41f251
cmp esi, ebx
jge 0x41ef7c
push str.DownloadFiles:isComplete_returns_error
lea ecx, [ebp - 0x3e8]
call fcn.004020a6
push esi
lea eax, [ebp - 0x3e8]
push eax
push 1
mov byte [ebp - 4], 0x12
call fcn.004152d1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [ebp - 0x3e8]
cmp esi, 0x80190194
jne 0x41ef36
push str.Missing_file_on_server__HTTP_Error_404_
call fcn.004020a6
mov byte [ebp - 4], 0x13
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x223a8
mov ecx, eax
jmp 0x41ef4b
push str.General_Download_File_failure
call fcn.004020a6
mov byte [ebp - 4], 0x14
push 0x2240c
mov ecx, esi
lea edx, [ebp - 0x3e8]
mov ebx, 0x4c4bf0
call fcn.0041384f
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add ecx, 0xfffffff0
call fcn.004025d2
mov dword [ebp - 0x3ec], 4
jmp 0x41f24f
cmp dword [ebp - 0x3ec], 2
je 0x41f0b0
cmp dword [ebp - 0x3ec], 1
je 0x41f0b0
cmp dword [ebp - 0x3ec], 6
jne 0x41f235
mov dword [ebp - 0x3e4], ebx
mov eax, dword [ebp - 0x3e4]
cmp eax, dword [ebp - 0x420]
jge 0x41f22d
mov ecx, dword [ebp - 0x3fc]
push eax
call fcn.0040b035
mov esi, eax
mov eax, dword [esi]
mov dword [ebp - 0x3e8], esi
cmp eax, ebx
je 0x41f027
cmp dword [eax + 0x18], 0
jne 0x41f027
add eax, 4
push eax
lea eax, [ebp - 0x410]
push eax
call main
mov byte [ebp - 4], 0x18
mov ebx, dword [eax]
mov eax, dword [esi]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 8]
mov esi, eax
call main
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x410]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025d2
test esi, esi
jne 0x41f034
mov eax, dword [ebp - 0x3e8]
mov eax, dword [eax]
mov dword [eax + 0x18], 1
inc dword [ebp - 0x3e4]
xor ebx, ebx
jmp 0x41efa9
mov edi, dword [ebp - 0x3e8]
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push str.invalid_after_BITs_download:
lea ecx, [ebp - 0x414]
call fcn.004020a6
mov byte [ebp - 4], 0x19
mov eax, dword [edi]
push esi
add eax, 8
push eax
lea eax, [ebp - 0x414]
push eax
push 1
call fcn.00414e01
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x414]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp - 0x3d9]
push eax
push esi
mov edi, str.Signature_Validation_Error
mov ebx, 0x4c46e8
mov byte [ebp - 0x3d9], 0
call fcn.0040b14d
mov dword [ebp - 0x3ec], 4
jmp 0x41f22b
mov eax, dword [0x4c4798]
neg eax
sbb eax, eax
and eax, 0x3b6
add eax, 0x32
push eax
call dword [sym.imp.kernel32.dll_Sleep]
cmp dword [ebp - 0x43c], ebx
ja 0x41f0dc
cmp dword [ebp - 0x440], ebx
jbe 0x41f22b
cmp dword [ebp - 0x434], ebx
ja 0x41f0f0
cmp dword [ebp - 0x438], ebx
jbe 0x41f22b
mov ebx, dword [0x4c4c30]
test ebx, ebx
je 0x41f22b
cmp dword [0x4c47a8], 0
jne 0x41f24f
mov edi, dword [ebx]
xor esi, esi
push esi
push 0x64
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call fcn.0045f860
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push edx
push eax
call fcn.00462aa0
push eax
mov ecx, ebx
call dword [edi + 0x188]
push 0x3b8
lea eax, [ebp - 0x3d4]
push esi
push eax
mov dword [ebp - 0x3d8], esi
call fcn.00459cf0
add esp, 0xc
call fcn.0044825c
push eax
lea ecx, [ebp - 0x3e0]
call fcn.0041872d
push str.IDS_BAL_DOWNLOADPROGRESS
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x15
call fcn.004020a6
lea edi, [ebp - 0x3e0]
lea ecx, [ebp - 0x400]
mov esi, 0x4c46e8
mov byte [ebp - 4], 0x16
call fcn.0040e2a6
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x400]
add ecx, 0xfffffff0
call fcn.004025d2
push 0
push 0x64
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call fcn.0045f860
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push edx
push eax
call fcn.00462aa0
push eax
push dword [ebp - 0x3e0]
mov eax, 0x100
lea edi, [ebp - 0x3c0]
call fcn.00422807
pop ecx
pop ecx
mov eax, edi
push eax
lea ecx, [ebp - 0x418]
call fcn.004020a6
lea eax, [ebp - 0x418]
mov ecx, ebx
mov byte [ebp - 4], 0x17
call fcn.00431afd
mov ecx, dword [ebp - 0x418]
add ecx, 0xfffffff0
call fcn.004025d2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e0]
add ecx, 0xfffffff0
call fcn.004025d2
xor ebx, ebx
cmp dword [0x4c47a8], ebx
jne 0x41f24f
cmp dword [ebp - 0x3ec], 2
je 0x41ede2
cmp dword [ebp - 0x3ec], 1
je 0x41ede2
xor ebx, ebx
cmp dword [ebp - 0x404], ebx
je 0x41f292
xor esi, esi
cmp esi, dword [ebp - 0x404]
jge 0x41f292
cmp dword [ebp - 0x408], ebx
je 0x41f28f
mov eax, dword [ebp - 0x408]
lea edi, [eax + esi*8]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x41f282
push eax
call main
pop ecx
mov edi, dword [edi]
cmp edi, ebx
je 0x41f28f
push edi
call main
pop ecx
inc esi
jmp 0x41f25b
mov esi, dword [ebp - 0x3f8]
cmp esi, ebx
je 0x41f2c2
cmp dword [0x4c47a8], ebx
jne 0x41f2ad
cmp dword [ebp - 0x3ec], 4
jne 0x41f2b3
push esi
call fcn.00412e5f
mov eax, dword [ebp - 0x3ec]
push esi
mov dword [esi + 0x38], eax
call fcn.0041b556
cmp dword [ebp - 0x408], ebx
je 0x41f2d6
push dword [ebp - 0x408]
call main
pop ecx
mov ecx, dword [ebp - 0x40c]
add ecx, 0xfffffff0
call fcn.004025d2
or dword [ebp - 4], 0xffffffff
mov eax, 0x4d5
cmp dword [ebp - 0x424], eax
je 0x41f3f2
cmp dword [ebp - 0x3ec], 6
lea eax, [ebp - 0x3d9]
mov byte [ebp - 0x3d9], 0
mov edi, str.BITS_Result_Payloads
mov ebx, 0x4c46e8
push eax
jne 0x41f3e2
push 0
call fcn.0040b14d
xor eax, eax
jmp 0x41f3f2
push str.Null_armDownloader_or_IBackgroundCopyManager__BITs_failed_with_error_code:
lea ecx, [ebp - 0x3fc]
call fcn.004020a6
mov byte [ebp - 4], 7
push dword [esi + 0xc]
lea eax, [ebp - 0x3fc]
push eax
push 1
call fcn.004152d1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3fc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, dword [ebp - 0x3f8]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x3d9]
push ecx
push eax
mov edi, str.BITS_Result_Payloads
mov ebx, 0x4c46e8
mov byte [ebp - 0x3d9], 0
call fcn.0040b14d
push esi
call fcn.0041b556
mov ecx, dword [ebp - 0x40c]
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x41f3ed
push dword [ebp - 0x3f0]
call fcn.0040b14d
mov eax, 0x4de
call fcn.0045bf6f
ret 8