Function at 0x4192ca
Capabilities:
Create directory
Delete file

Disassembly:
push 0x434
mov eax, 0x46eca0
call fcn.00452f53
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.00411806
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 0x419410
push dword [ebp - 0x3f4]
mov ecx, edi
call fcn.004076d7
mov esi, eax
cmp dword [esi], 0
je 0x4193f2
mov ebx, dword [ebp - 0x410]
mov ecx, esi
call fcn.004178ca
test eax, eax
je 0x4193cb
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.00411336
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 0x4193f2
mov ebx, dword [ebp - 0x3e4]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4193e5
push 0x478b44
mov ecx, ebx
call fcn.00407601
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 0x41935a
mov esi, dword [ebp - 0x3e4]
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x41947c
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.00411806
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.00407812
push 0x12
pop eax
jmp 0x41a01a
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.00407812
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 [0x4b7c18], ebx
je 0x4194c7
mov dword [ebp - 0x3e8], ebx
cmp dword [0x4b7788], ebx
je 0x4194d1
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.0041c62e
cmp dword [ebp - 0x3e0], ebx
jne 0x419589
call fcn.0043f3c0
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.00416168
mov esi, dword [ebp - 0x3e4]
push esi
lea eax, [ebp - 0x40c]
push eax
xor eax, eax
call fcn.004071c6
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 4
call fcn.004017df
push 0x40
call fcn.0043efe8
pop ecx
mov dword [ebp - 0x404], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x4195b5
push dword [ebp - 0x40c]
push eax
call fcn.0040ec56
mov edi, eax
mov dword [ebp - 0x3f0], edi
jmp 0x4195bd
mov dword [ebp - 0x3f0], ebx
mov edi, ebx
mov byte [ebp - 4], 4
cmp edi, ebx
je 0x419f55
cmp dword [edi], ebx
je 0x419f55
cmp dword [edi + 0xc], ebx
jge 0x419610
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.00411806
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.0040f4a8
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x3f4], esi
jge 0x4197ee
cmp esi, 0x80200001
je 0x419675
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.00411806
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 fcn.0043f017
pop ecx
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x3e4], ebx
mov eax, dword [ebp - 0x420]
cmp dword [ebp - 0x3e4], eax
jge 0x41997e
push dword [ebp - 0x3e4]
mov ecx, dword [ebp - 0x3f8]
call fcn.004076d7
mov esi, eax
call fcn.0043f3c0
push eax
lea ecx, [ebp - 0x3fc]
call fcn.004013a1
mov byte [ebp - 4], 0xb
mov eax, dword [esi]
cmp eax, ebx
je 0x419961
cmp dword [eax + 0x18], ebx
jne 0x419961
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 fcn.00401163
mov eax, dword [esi]
lea ecx, [eax + 8]
lea eax, [ebp - 0x418]
push eax
call fcn.004077b3
mov eax, dword [esi]
add eax, 0xc
push eax
lea ecx, [ebp - 0x3fc]
mov dword [ebp - 0x41c], 1
call fcn.004077b3
push 8
push dword [ebp - 0x3fc]
push str.https:__
call fcn.00451b31
add esp, 0xc
test eax, eax
jne 0x41985a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x41984d
mov esi, dword [esi]
mov edx, dword [ebp - 0x410]
lea eax, [ebp - 0x3fc]
add esi, edi
push eax
mov ecx, esi
call fcn.004181e5
cmp eax, ebx
jne 0x41985a
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.00411806
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 0x419e77
cmp dword [ebp - 0x3ec], 2
je 0x419804
cmp dword [ebp - 0x3ec], 1
jne 0x419675
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.00411806
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.0040edae
jmp 0x419a08
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 fcn.0043f017
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 fcn.004519d8
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.00411336
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 fcn.0043f017
pop ecx
push dword [ebp - 0x3fc]
mov dword [esi], eax
push edi
push eax
call fcn.004519d8
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.00411336
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 0x41969c
cmp dword [ebp - 0x41c], ebx
je 0x419e7d
cmp dword [ebp - 0x408], ebx
je 0x419a08
push dword [ebp - 0x3e8]
mov ecx, edi
push dword [ebp - 0x400]
push dword [ebp - 0x408]
call fcn.0040f110
cmp eax, ebx
mov dword [ebp - 0x3f4], eax
jge 0x4199f4
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.00411806
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x419a08
cmp dword [ebp - 0x3e0], ebx
je 0x419a08
lea eax, [ebp - 0x40c]
push eax
call fcn.0041c048
mov edi, dword [ebp - 0x3f0]
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x440]
push eax
mov ecx, edi
call fcn.0040f4a8
mov esi, eax
mov dword [ebp - 0x3f4], esi
cmp dword [0x4b7798], ebx
jne 0x419e77
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x419af1
cmp dword [edi + 0x14], ebx
je 0x419af1
cmp esi, ebx
jge 0x419ba2
cmp esi, 0x801901f8
ja 0x419af1
cmp dword [ebp - 0x3ec], 1
jne 0x419af1
cmp esi, 0x80072efd
je 0x419a7d
cmp esi, 0x80072ee2
jne 0x419ad8
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.00411806
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 0x4771e4
push str.HTTPS_Failed
mov esi, 0x4b76d8
mov byte [ebp - 0x3d9], 0
call fcn.00407812
mov dword [ebp - 0x3ec], 4
mov dword [ebp - 0x424], 0x4d5
jmp 0x419e77
cmp esi, ebx
jge 0x419ba2
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.00411806
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 0x419b5c
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 0x419b71
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, 0x4b7bd8
call fcn.0040fd89
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3e8]
add ecx, 0xfffffff0
call fcn.004017df
mov dword [ebp - 0x3ec], 4
jmp 0x419e75
cmp dword [ebp - 0x3ec], 2
je 0x419cd6
cmp dword [ebp - 0x3ec], 1
je 0x419cd6
cmp dword [ebp - 0x3ec], 6
jne 0x419e5b
mov dword [ebp - 0x3e4], ebx
mov eax, dword [ebp - 0x3e4]
cmp eax, dword [ebp - 0x420]
jge 0x419e53
mov ecx, dword [ebp - 0x3f8]
push eax
call fcn.004076d7
mov esi, eax
mov eax, dword [esi]
mov dword [ebp - 0x3e8], esi
cmp eax, ebx
je 0x419c4d
cmp dword [eax + 0x18], 0
jne 0x419c4d
add eax, 4
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.004161ec
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 fcn.00421f01
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x410]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017df
test esi, esi
jne 0x419c5a
mov eax, dword [ebp - 0x3e8]
mov eax, dword [eax]
mov dword [eax + 0x18], 1
inc dword [ebp - 0x3e4]
xor ebx, ebx
jmp 0x419bcf
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.00411336
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 fcn.0040787d
mov dword [ebp - 0x3ec], 4
jmp 0x419e51
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 0x419d02
cmp dword [ebp - 0x440], ebx
jbe 0x419e51
cmp dword [ebp - 0x434], ebx
ja 0x419d16
cmp dword [ebp - 0x438], ebx
jbe 0x419e51
mov ebx, dword [0x4b7c18]
test ebx, ebx
je 0x419e51
cmp dword [0x4b7798], 0
jne 0x419e75
mov edi, dword [ebx]
xor esi, esi
push esi
push 0x64
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call fcn.004568a0
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push edx
push eax
call fcn.0045b860
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.00450cb0
add esp, 0xc
call fcn.0043f3c0
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.0040a83c
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.004568a0
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push edx
push eax
call fcn.0045b860
push eax
push dword [ebp - 0x3e0]
mov eax, 0x100
lea edi, [ebp - 0x3c0]
call fcn.0041c7f4
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.00428ec0
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 0x419e75
cmp dword [ebp - 0x3ec], 2
je 0x419a08
cmp dword [ebp - 0x3ec], 1
je 0x419a08
xor ebx, ebx
mov edi, dword [ebp - 0x3f0]
cmp dword [ebp - 0x408], ebx
je 0x419ebf
xor ebx, ebx
cmp ebx, dword [ebp - 0x408]
jge 0x419ebf
cmp dword [ebp - 0x400], 0
je 0x419ebc
mov eax, dword [ebp - 0x400]
lea esi, [eax + ebx*8]
mov eax, dword [esi + 4]
test eax, eax
je 0x419eaf
push eax
call fcn.0043f022
pop ecx
mov esi, dword [esi]
test esi, esi
je 0x419ebc
push esi
call fcn.0043f022
pop ecx
inc ebx
jmp 0x419e87
test edi, edi
je 0x419eea
cmp dword [0x4b7798], 0
jne 0x419ed5
cmp dword [ebp - 0x3ec], 4
jne 0x419edb
push edi
call fcn.0040f3d4
mov eax, dword [ebp - 0x3ec]
push edi
mov dword [edi + 0x38], eax
call fcn.00416a08
cmp dword [ebp - 0x400], 0
je 0x419eff
push dword [ebp - 0x400]
call fcn.0043f022
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 0x41a01a
cmp dword [ebp - 0x3ec], 6
lea eax, [ebp - 0x3d9]
mov byte [ebp - 0x3d9], 0
mov ecx, 0x4b76d8
push eax
jne 0x41a005
push 0
push str.BITS_Result_Payloads
call fcn.0040787d
xor eax, eax
jmp 0x41a01a
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.00411806
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 fcn.0040787d
push edi
call fcn.00416a08
mov ecx, dword [ebp - 0x40c]
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x41a015
push dword [ebp - 0x3f4]
push str.BITS_Result_Payloads
call fcn.0040787d
mov eax, 0x4de
call fcn.00452faf
ret 8