Function at 0x41925d
Capabilities:
Create directory
Delete file

Disassembly:
push 0x434
mov eax, 0x46e6b5
call fcn.00452a63
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.004012e2
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x3e0]
push eax
push 2
call fcn.004117b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ebx, dword [0x4b77ec]
mov edi, 0x4b77e4
mov ecx, esi
mov dword [ebp - 0x424], 0x12
mov dword [ebp - 0x3f8], edi
mov dword [ebp - 0x420], ebx
call fcn.00401547
and dword [ebp - 0x3f4], 0
test ebx, ebx
jle 0x4193a3
push dword [ebp - 0x3f4]
mov ecx, edi
call fcn.0040768c
mov esi, eax
cmp dword [esi], 0
je 0x419385
mov ebx, dword [ebp - 0x410]
mov ecx, esi
call fcn.00417861
test eax, eax
je 0x41935e
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x3e0]
call fcn.004012e2
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.004112e0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3e0]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov esi, dword [esi]
mov dword [esi + 0x18], ebx
jmp 0x419385
mov ebx, dword [ebp - 0x3e4]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x419378
push 0x478b24
mov ecx, ebx
call fcn.004075b6
mov esi, dword [esi]
add esi, 4
push esi
mov ecx, ebx
call fcn.00401103
inc dword [ebp - 0x3f4]
mov eax, dword [ebp - 0x3f4]
cmp eax, dword [ebp - 0x420]
jl 0x4192ed
mov esi, dword [ebp - 0x3e4]
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x41940f
push str.No_files_scheduled_for_download
lea ecx, [ebp - 0x3e0]
call fcn.004012e2
push 2
pop eax
push ebx
lea ecx, [ebp - 0x3e0]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.004117b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x3d9]
push eax
push ebx
push str.AlreadyDownloaded
push str.Payload_Download_Status
mov esi, 0x4b76d8
mov byte [ebp - 0x3d9], bl
call fcn.004077c7
push 0x12
pop eax
jmp 0x419fad
lea eax, [ebp - 0x3d9]
push eax
push ebx
push str.Started
push str.Payload_Download_Status
mov esi, 0x4b76d8
mov byte [ebp - 0x3d9], 0
call fcn.004077c7
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 [0x4b7c00], ebx
je 0x41945a
mov dword [ebp - 0x3e8], ebx
cmp dword [0x4b7788], ebx
je 0x419464
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 0x4b7880
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x3ec], ebx
mov dword [ebp - 0x400], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x3f4], ebx
mov dword [ebp - 4], 3
call fcn.00401326
lea eax, [ebp - 0x40c]
mov byte [ebp - 4], 4
push eax
lea edi, [ebp - 0x3e0]
mov dword [ebp - 0x3e0], ebx
call fcn.0041c5b8
cmp dword [ebp - 0x3e0], ebx
jne 0x41951c
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x3e4]
call fcn.004013a1
lea eax, [ebp - 0x3e4]
push eax
mov ecx, 0x4b77dc
mov byte [ebp - 4], 5
call fcn.00416108
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.004017df
push 0x40
call main
pop ecx
mov dword [ebp - 0x404], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x419548
push dword [ebp - 0x40c]
push eax
call fcn.0040ec00
mov edi, eax
mov dword [ebp - 0x3f0], edi
jmp 0x419550
mov dword [ebp - 0x3f0], ebx
mov edi, ebx
mov byte [ebp - 4], 4
cmp edi, ebx
je 0x419ee8
cmp dword [edi], ebx
je 0x419ee8
cmp dword [edi + 0xc], ebx
jge 0x4195a3
push str.armDownloader_mErrorCode:
lea ecx, [ebp - 0x3e4]
call fcn.004012e2
mov byte [ebp - 4], 8
push dword [edi + 0xc]
lea eax, [ebp - 0x3e4]
push eax
push 2
call fcn.004117b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e4]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x440]
push eax
mov ecx, edi
call fcn.0040f452
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x3f4], esi
jge 0x419781
cmp esi, 0x80200001
je 0x419608
push str.isComplete_HRESULT:
lea ecx, [ebp - 0x3e4]
call fcn.004012e2
push esi
lea eax, [ebp - 0x3e4]
push eax
push 2
mov byte [ebp - 4], 9
call fcn.004117b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e4]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
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 - 0x400], eax
mov dword [ebp - 0x3e4], ebx
mov eax, dword [ebp - 0x420]
cmp dword [ebp - 0x3e4], eax
jge 0x419911
push dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0x3f8]
call fcn.0040768c
mov esi, eax
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x3fc]
call fcn.004013a1
mov byte [ebp - 4], 0xb
mov eax, dword [esi]
cmp eax, ebx
je 0x4198f4
cmp dword [eax + 0x18], ebx
jne 0x4198f4
mov eax, dword [ebp - 0x410]
add eax, 8
push eax
lea ecx, [ebp - 0x418]
call fcn.00401326
push 4
mov byte [ebp - 4], 0xc
mov eax, dword [esi]
pop edi
add eax, edi
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x418]
push eax
call main
mov eax, dword [esi]
lea ecx, [eax + 8]
lea eax, [ebp - 0x418]
push eax
call fcn.00407768
mov eax, dword [esi]
add eax, 0xc
push eax
lea ecx, [ebp - 0x3fc]
mov dword [ebp - 0x41c], 1
call fcn.00407768
push 8
push dword [ebp - 0x3fc]
push str.https:__
call main
add esp, 0xc
test eax, eax
jne 0x4197ed
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x4197e0
mov esi, dword [esi]
mov edx, dword [ebp - 0x410]
lea eax, [ebp - 0x3fc]
add esi, edi
push eax
mov ecx, esi
call fcn.0041817c
cmp eax, ebx
jne 0x4197ed
push str.fallback_not_available__exiting_BITs
lea ecx, [ebp - 0x3e0]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x3e0]
push eax
push 1
mov byte [ebp - 4], 0xd
call fcn.004117b0
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x418]
add ecx, 0xfffffff0
mov dword [ebp - 0x3ec], edi
call fcn.004017df
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3fc]
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x419e0a
cmp dword [ebp - 0x3ec], 2
je 0x419797
cmp dword [ebp - 0x3ec], 1
jne 0x419608
push str.last_BITs_job_still_downloading__taking_over_ownership
lea ecx, [ebp - 0x3e0]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x3e0]
push eax
push 2
mov byte [ebp - 4], 0xa
call fcn.004117b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push dword [0x4b77ec]
push edi
call fcn.0040ed58
jmp 0x41999b
mov eax, dword [ebp - 0x3f0]
mov dword [eax + 0x14], 1
mov ebx, dword [ebp - 0x418]
mov eax, dword [ebx - 0xc]
lea edi, [eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
mov edx, dword [ebp - 0x408]
pop ecx
mov ecx, dword [ebp - 0x400]
push ebx
lea esi, [ecx + edx*8]
push edi
push eax
mov dword [esi + 4], eax
call main
add esp, 0xc
push str.Creating_BITS_job_LocalFileName:
lea ecx, [ebp - 0x414]
call fcn.004012e2
push 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 2
mov byte [ebp - 4], 0xe
call fcn.004112e0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x414]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
mov eax, dword [ebp - 0x3fc]
mov eax, dword [eax - 0xc]
lea edi, [eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
pop ecx
push dword [ebp - 0x3fc]
mov dword [esi], eax
push edi
push eax
call main
add esp, 0xc
push str.Creating_BITS_job_RemoteName:
lea ecx, [ebp - 0x404]
call fcn.004012e2
push 0
lea eax, [ebp - 0x3fc]
push eax
lea eax, [ebp - 0x404]
push eax
push 2
mov byte [ebp - 4], 0xf
call fcn.004112e0
mov ecx, dword [ebp - 0x404]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
inc dword [ebp - 0x408]
lea ecx, [ebx - 0x10]
call fcn.004017df
mov edi, dword [ebp - 0x3f0]
xor ebx, ebx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3fc]
add ecx, 0xfffffff0
call fcn.004017df
inc dword [ebp - 0x3e4]
jmp 0x41962f
cmp dword [ebp - 0x41c], ebx
je 0x419e10
cmp dword [ebp - 0x408], ebx
je 0x41999b
push dword [ebp - 0x3e8]
mov ecx, edi
push dword [ebp - 0x400]
push dword [ebp - 0x408]
call fcn.0040f0ba
cmp eax, ebx
mov dword [ebp - 0x3f4], eax
jge 0x419987
push str.downLoadFileSet___returned_error:
lea ecx, [ebp - 0x3e8]
call fcn.004012e2
push dword [ebp - 0x3f4]
lea eax, [ebp - 0x3e8]
push eax
push 1
mov byte [ebp - 4], 0x10
call fcn.004117b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x41999b
cmp dword [ebp - 0x3e0], ebx
je 0x41999b
lea eax, [ebp - 0x40c]
push eax
call fcn.0041bfd2
mov edi, dword [ebp - 0x3f0]
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x440]
push eax
mov ecx, edi
call fcn.0040f452
mov esi, eax
mov dword [ebp - 0x3f4], esi
cmp dword [0x4b7798], ebx
jne 0x419e0a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x419a84
cmp dword [edi + 0x14], ebx
je 0x419a84
cmp esi, ebx
jge 0x419b35
cmp esi, 0x801901f8
ja 0x419a84
cmp dword [ebp - 0x3ec], 1
jne 0x419a84
cmp esi, 0x80072efd
je 0x419a10
cmp esi, 0x80072ee2
jne 0x419a6b
push str.reporting_https_payload_error
lea ecx, [ebp - 0x3e8]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x3e8]
push eax
push 2
mov byte [ebp - 4], 0x11
call fcn.004117b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x3d9]
push eax
push ebx
push 0x4771f4
push str.HTTPS_Failed
mov esi, 0x4b76d8
mov byte [ebp - 0x3d9], 0
call fcn.004077c7
mov dword [ebp - 0x3ec], 4
mov dword [ebp - 0x424], 0x4d5
jmp 0x419e0a
cmp esi, ebx
jge 0x419b35
push str.DownloadFiles:isComplete_returns_error
lea ecx, [ebp - 0x3e8]
call fcn.004012e2
push esi
lea eax, [ebp - 0x3e8]
push eax
push 1
mov byte [ebp - 4], 0x12
call fcn.004117b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
lea ecx, [ebp - 0x3e8]
cmp esi, 0x80190194
jne 0x419aef
push str.Missing_file_on_server__HTTP_Error_404_
call fcn.004012e2
mov byte [ebp - 4], 0x13
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x223a8
mov ecx, eax
jmp 0x419b04
push str.General_Download_File_failure
call fcn.004012e2
mov byte [ebp - 4], 0x14
push 0x2240c
mov ecx, esi
lea edx, [ebp - 0x3e8]
mov ebx, 0x4b7bc0
call fcn.0040fd33
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add ecx, 0xfffffff0
call fcn.004017df
mov dword [ebp - 0x3ec], 4
jmp 0x419e08
cmp dword [ebp - 0x3ec], 2
je 0x419c69
cmp dword [ebp - 0x3ec], 1
je 0x419c69
cmp dword [ebp - 0x3ec], 6
jne 0x419dee
mov dword [ebp - 0x3e4], ebx
mov eax, dword [ebp - 0x3e4]
cmp eax, dword [ebp - 0x420]
jge 0x419de6
mov ecx, dword [ebp - 0x3f8]
push eax
call fcn.0040768c
mov esi, eax
mov eax, dword [esi]
mov dword [ebp - 0x3e8], esi
cmp eax, ebx
je 0x419be0
cmp dword [eax + 0x18], 0
jne 0x419be0
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.004017df
test esi, esi
jne 0x419bed
mov eax, dword [ebp - 0x3e8]
mov eax, dword [eax]
mov dword [eax + 0x18], 1
inc dword [ebp - 0x3e4]
xor ebx, ebx
jmp 0x419b62
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 - 0x41c]
call fcn.004012e2
mov byte [ebp - 4], 0x19
mov eax, dword [edi]
push esi
add eax, 8
push eax
lea eax, [ebp - 0x41c]
push eax
push 1
call fcn.004112e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x41c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x3d9]
push eax
push esi
push str.Signature_Validation_Error
mov ecx, 0x4b76d8
mov byte [ebp - 0x3d9], 0
call main
mov dword [ebp - 0x3ec], 4
jmp 0x419de4
mov eax, dword [0x4b7788]
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 0x419c95
cmp dword [ebp - 0x440], ebx
jbe 0x419de4
cmp dword [ebp - 0x434], ebx
ja 0x419ca9
cmp dword [ebp - 0x438], ebx
jbe 0x419de4
mov ebx, dword [0x4b7c00]
test ebx, ebx
je 0x419de4
cmp dword [0x4b7798], 0
jne 0x419e08
mov edi, dword [ebx]
xor esi, esi
push esi
push 0x64
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call fcn.004563b0
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push edx
push eax
call fcn.0045b370
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.004507c0
add esp, 0xc
call fcn.0043eec2
push eax
lea ecx, [ebp - 0x3e0]
call fcn.004013a1
push str.IDS_BAL_DOWNLOADPROGRESS
lea ecx, [ebp - 0x404]
mov byte [ebp - 4], 0x15
call fcn.004012e2
lea edi, [ebp - 0x3e0]
lea ecx, [ebp - 0x404]
mov esi, 0x4b76d8
mov byte [ebp - 4], 0x16
call fcn.0040a7e6
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x404]
add ecx, 0xfffffff0
call fcn.004017df
push 0
push 0x64
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call fcn.004563b0
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push edx
push eax
call fcn.0045b370
push eax
push dword [ebp - 0x3e0]
mov eax, 0x100
lea edi, [ebp - 0x3c0]
call fcn.0041c77e
pop ecx
pop ecx
mov eax, edi
push eax
lea ecx, [ebp - 0x414]
call fcn.004012e2
lea eax, [ebp - 0x414]
mov ecx, ebx
mov byte [ebp - 4], 0x17
call fcn.00428d0a
mov ecx, dword [ebp - 0x414]
add ecx, 0xfffffff0
call fcn.004017df
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e0]
add ecx, 0xfffffff0
call fcn.004017df
xor ebx, ebx
cmp dword [0x4b7798], ebx
jne 0x419e08
cmp dword [ebp - 0x3ec], 2
je 0x41999b
cmp dword [ebp - 0x3ec], 1
je 0x41999b
xor ebx, ebx
mov edi, dword [ebp - 0x3f0]
cmp dword [ebp - 0x408], ebx
je 0x419e52
xor ebx, ebx
cmp ebx, dword [ebp - 0x408]
jge 0x419e52
cmp dword [ebp - 0x400], 0
je 0x419e4f
mov eax, dword [ebp - 0x400]
lea esi, [eax + ebx*8]
mov eax, dword [esi + 4]
test eax, eax
je 0x419e42
push eax
call main
pop ecx
mov esi, dword [esi]
test esi, esi
je 0x419e4f
push esi
call main
pop ecx
inc ebx
jmp 0x419e1a
test edi, edi
je 0x419e7d
cmp dword [0x4b7798], 0
jne 0x419e68
cmp dword [ebp - 0x3ec], 4
jne 0x419e6e
push edi
call fcn.0040f37e
mov eax, dword [ebp - 0x3ec]
push edi
mov dword [edi + 0x38], eax
call fcn.0041699f
cmp dword [ebp - 0x400], 0
je 0x419e92
push dword [ebp - 0x400]
call main
pop ecx
mov ecx, dword [ebp - 0x40c]
add ecx, 0xfffffff0
call fcn.004017df
or dword [ebp - 4], 0xffffffff
mov eax, 0x4d5
cmp dword [ebp - 0x424], eax
je 0x419fad
cmp dword [ebp - 0x3ec], 6
lea eax, [ebp - 0x3d9]
mov byte [ebp - 0x3d9], 0
mov ecx, 0x4b76d8
push eax
jne 0x419f98
push 0
push str.BITS_Result_Payloads
call main
xor eax, eax
jmp 0x419fad
push str.Null_armDownloader_or_IBackgroundCopyManager__BITs_failed_with_error_code:
lea ecx, [ebp - 0x3f8]
call fcn.004012e2
mov byte [ebp - 4], 7
push dword [edi + 0xc]
lea eax, [ebp - 0x3f8]
push eax
push 1
call fcn.004117b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3f8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x3d9]
push ecx
push eax
push str.BITS_Result_Payloads
mov ecx, 0x4b76d8
mov byte [ebp - 0x3d9], 0
call main
push edi
call fcn.0041699f
mov ecx, dword [ebp - 0x40c]
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x419fa8
push dword [ebp - 0x3f4]
push str.BITS_Result_Payloads
call main
mov eax, 0x4de
call fcn.00452abf
ret 8