Function at 0x411ecb
Capabilities:
Create directory

Disassembly:
push 0x428
mov eax, 0x44fa86
call fcn.004367a5
mov eax, dword [ebp + 8]
mov edi, 0x4809c0
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x3f4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [0x4809ec], eax
mov dword [0x4809f0], ebx
mov dword [0x480a10], ebx
cmp dword [0x480a94], ebx
je 0x411f1d
mov dword [ebp - 0x3dc], ebx
cmp dword [0x4804e8], ebx
je 0x411f27
mov dword [ebp - 0x3dc], 2
push 0x3c
mov dword [ebp - 0x3e4], ebx
mov dword [ebp - 4], ebx
call fcn.0042310c
pop ecx
mov dword [ebp - 0x3ec], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x411f5c
push dword [0x480940]
push eax
call fcn.0040b570
mov esi, eax
mov dword [ebp - 0x3f8], esi
jmp 0x411f64
mov dword [ebp - 0x3f8], ebx
mov esi, ebx
mov byte [ebp - 4], bl
cmp dword [esi], ebx
jne 0x41204b
push str.DownloadFiles
lea ecx, [ebp - 0x3e8]
call fcn.00402148
mov byte [ebp - 4], 2
push dword [esi + 0xc]
lea eax, [ebp - 0x3e8]
push eax
push 1
call fcn.0040e1e3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, dword [esi + 0xc]
push esi
mov dword [0x4809f8], eax
call fcn.00410e31
push dword [ebp - 0x408]
call fcn.00412be8
mov dword [ebp - 0x3dc], eax
cmp eax, ebx
je 0x412025
push str.Resetting_Error_object
lea ecx, [ebp - 0x3e8]
call fcn.00402148
push ebx
lea eax, [ebp - 0x3e8]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.0040e1e3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov esi, 0x480a54
call fcn.0040c599
push str.BITs_failed__Updates_downloaded_successfully_using_DownloadFilesDirectly
mov ecx, 0x480a00
mov dword [0x480a10], 1
call fcn.0040aed8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4809ec]
push 3
dec eax
mov dword [0x4809ec], eax
mov eax, edi
call fcn.0041483b
mov eax, dword [ebp - 0x3dc]
jmp 0x4128e8
cmp dword [esi + 0xc], ebx
jge 0x412089
push str.DownloadFiles
lea ecx, [ebp - 0x3e8]
call fcn.00402148
mov byte [ebp - 4], 4
push dword [esi + 0xc]
lea eax, [ebp - 0x3e8]
push eax
push 1
call fcn.0040e1e3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x42c], ebx
xor eax, eax
lea edi, [ebp - 0x428]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x430]
push eax
lea ebx, [ebp - 0x3e4]
xor esi, esi
mov dword [ebp - 0x3e8], 0x4808e4
call fcn.0040bdd7
xor ebx, ebx
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x400], ebx
mov dword [ebp - 0x3fc], ebx
jge 0x412271
cmp edi, 0x80200001
je 0x41211c
push str.isComplete_returns_error
lea ecx, [ebp - 0x3e0]
call fcn.00402148
push edi
lea eax, [ebp - 0x3e0]
push eax
push 1
mov byte [ebp - 4], 5
call fcn.0040e1e3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, dword [0x4808ec]
xor ecx, ecx
push 8
pop edx
mov dword [ebp - 0x434], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423146
pop ecx
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x3e0], ebx
mov eax, dword [ebp - 0x434]
cmp dword [ebp - 0x3e0], eax
jge 0x412418
push dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e8]
call fcn.00408718
mov edi, eax
call fcn.004234c0
push eax
lea ecx, [ebp - 0x3f0]
call fcn.0040f910
mov byte [ebp - 4], 7
mov eax, dword [edi]
cmp eax, ebx
je 0x4123fb
add eax, 0xc
push eax
lea ecx, [ebp - 0x3f0]
call fcn.00408894
mov ebx, dword [ebp - 0x408]
add ebx, 0xc
mov eax, dword [ebx]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
lea ecx, [ebp - 0x404]
call fcn.0040218c
mov byte [ebp - 4], 8
mov eax, dword [edi]
add eax, 4
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x404]
push eax
call fcn.00401f7d
mov eax, dword [edi]
lea ecx, [eax + 8]
lea eax, [ebp - 0x404]
push eax
call fcn.00408894
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 0x408]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x3f4]
sar ecx, 0xa
add dword [eax + 0x30], ecx
push edi
call fcn.004113e5
test eax, eax
je 0x4122ea
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x414]
call fcn.00402148
mov byte [ebp - 4], 9
mov eax, dword [edi]
push 0
add eax, 8
push eax
lea eax, [ebp - 0x414]
push eax
push 2
call fcn.0040dd5d
mov ecx, dword [ebp - 0x414]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
mov edi, dword [edi]
mov ebx, dword [ebp - 0x404]
mov dword [edi + 0x18], 1
mov dword [ebp - 0x3e4], 6
jmp 0x4123f1
cmp dword [ebp - 0x3e4], 2
je 0x412287
cmp dword [ebp - 0x3e4], 1
jne 0x41211c
push str.Last_Bits_job_still_downloading_checking_progress
lea ecx, [ebp - 0x3e0]
call fcn.00402148
push ebx
lea eax, [ebp - 0x3e0]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.0040e1e3
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
push dword [0x4808ec]
push dword [ebp - 0x3f8]
call fcn.0040b6e3
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [0x4809f8], ebx
mov esi, ecx
mov dword [0x480a10], esi
jmp 0x412484
mov ebx, dword [ebp - 0x404]
mov eax, dword [ebx - 0xc]
lea esi, [eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x40c], 1
neg ecx
or ecx, eax
push ecx
call fcn.00423146
mov edx, dword [ebp - 0x3fc]
pop ecx
mov ecx, dword [ebp - 0x400]
push ebx
lea edi, [ecx + edx*8]
push esi
push eax
mov dword [edi + 4], eax
call fcn.004358f5
add esp, 0xc
push str.Creating_BITS_job_LocalFileName:
lea ecx, [ebp - 0x410]
call fcn.00402148
push 0
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push 2
mov byte [ebp - 4], 0xa
call fcn.0040dd5d
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x410]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
mov eax, dword [ebp - 0x3f0]
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 fcn.00423146
pop ecx
push dword [ebp - 0x3f0]
mov dword [edi], eax
push esi
push eax
call fcn.004358f5
add esp, 0xc
push str.Creating_BITS_job_RemoteName:
lea ecx, [ebp - 0x3ec]
call fcn.00402148
push 0
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3ec]
push eax
push 2
mov byte [ebp - 4], 0xb
call fcn.0040dd5d
mov ecx, dword [ebp - 0x3ec]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
inc dword [ebp - 0x3fc]
mov esi, dword [ebp - 0x40c]
lea ecx, [ebx - 0x10]
call fcn.004025ca
xor ebx, ebx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3f0]
add ecx, 0xfffffff0
call fcn.004025ca
inc dword [ebp - 0x3e0]
jmp 0x412148
cmp dword [ebp - 0x3fc], ebx
je 0x412484
push dword [ebp - 0x3dc]
mov ecx, dword [ebp - 0x3f8]
push dword [ebp - 0x400]
push dword [ebp - 0x3fc]
call fcn.0040bad4
mov edi, eax
cmp edi, ebx
jge 0x412484
mov eax, dword [ebp - 0x3f4]
push str.downLoadFileSet___failed.
lea ecx, [ebp - 0x3dc]
mov dword [eax + 0x38], edi
call fcn.00402148
push edi
lea eax, [ebp - 0x3dc]
push eax
push 1
mov byte [ebp - 4], 0xc
call fcn.0040e1e3
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3dc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
cmp esi, ebx
je 0x4127c0
mov eax, dword [ebp - 0x3e8]
cmp dword [eax + 8], ebx
jle 0x4127c0
mov ecx, dword [ebp - 0x3f8]
lea eax, [ebp - 0x430]
push eax
lea ebx, [ebp - 0x3e4]
call fcn.0040bdd7
xor ebx, ebx
mov edi, eax
cmp dword [0x4804f8], ebx
jne 0x4127c0
cmp edi, ebx
jge 0x412579
mov eax, dword [ebp - 0x3f4]
push str.DownloadFiles:isComplete_returns_error
lea ecx, [ebp - 0x3dc]
mov dword [eax + 0x38], edi
call fcn.00402148
push edi
lea eax, [ebp - 0x3dc]
push eax
push 1
mov byte [ebp - 4], 0xd
call fcn.0040e1e3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3dc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
lea ecx, [ebp - 0x3dc]
cmp edi, 0x80190194
jne 0x41253d
push str.Missing_file_on_server__HTTP_Error_404_
call fcn.00402148
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3dc]
push ecx
push 0x223a8
mov ecx, eax
jmp 0x412559
push str.General_Download_File_failure
call fcn.00402148
lea eax, [ebp - 0x3dc]
push eax
mov byte [ebp - 4], 0xf
push 0x2240c
mov ecx, edi
mov edx, 0x480a54
call fcn.0040c5be
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3dc]
add ecx, 0xfffffff0
call fcn.004025ca
jmp 0x4127c0
cmp dword [ebp - 0x3e4], 2
je 0x41261a
cmp dword [ebp - 0x3e4], 1
je 0x41261a
cmp dword [ebp - 0x3e4], 6
jne 0x4127a6
mov eax, dword [ebp - 0x3f4]
mov dword [eax + 0x30], ebx
mov dword [ebp - 0x3e0], ebx
mov eax, dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e8]
cmp eax, dword [ecx + 8]
jge 0x41279e
push eax
call fcn.00408718
mov edi, eax
mov eax, dword [edi]
cmp eax, ebx
je 0x412612
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 8]
mov esi, eax
call fcn.00416714
test eax, eax
je 0x412610
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x3f4]
sar ecx, 0xa
add dword [eax + 0x30], ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x34], ecx
mov eax, dword [edi]
mov dword [eax + 0x18], 1
xor ebx, ebx
inc dword [ebp - 0x3e0]
jmp 0x4125af
mov eax, dword [0x4804e8]
neg eax
sbb eax, eax
and eax, 0x3b6
add eax, 0x32
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x42c], ebx
ja 0x412646
cmp dword [ebp - 0x430], ebx
jbe 0x41279e
cmp dword [ebp - 0x424], ebx
ja 0x41265a
cmp dword [ebp - 0x428], ebx
jbe 0x41279e
mov edi, dword [0x480a94]
mov dword [ebp - 0x40c], edi
cmp edi, ebx
je 0x41279e
cmp dword [0x4804f8], ebx
jne 0x4127c0
mov esi, dword [edi]
push ebx
push 0x64
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call fcn.0043a3c0
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
push edx
push eax
call fcn.0043ebb0
push eax
mov ecx, edi
call dword [esi + 0x188]
push 0x3b8
lea eax, [ebp - 0x3d4]
push ebx
push eax
mov dword [ebp - 0x3d8], ebx
call fcn.00434dc0
add esp, 0xc
call fcn.004234c0
push eax
lea ecx, [ebp - 0x3f0]
call fcn.0040f910
push str.IDS_BAL_DOWNLOADPROGRESS
lea ecx, [ebp - 0x3dc]
mov byte [ebp - 4], 0x10
call fcn.00402148
lea esi, [ebp - 0x3f0]
lea ecx, [ebp - 0x3dc]
mov ebx, 0x480438
mov byte [ebp - 4], 0x11
call fcn.00407ed6
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x3dc]
add ecx, 0xfffffff0
call fcn.004025ca
push 0
push 0x64
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call fcn.0043a3c0
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
push edx
push eax
call fcn.0043ebb0
push eax
push dword [ebp - 0x3f0]
mov eax, pe_nt_image_headers32
lea edi, [ebp - 0x3c0]
call fcn.00413032
pop ecx
pop ecx
mov eax, edi
push eax
lea ecx, [ebp - 0x3ec]
call fcn.00402148
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x3ec]
mov byte [ebp - 4], 0x12
call fcn.0041af29
mov ecx, dword [ebp - 0x3ec]
add ecx, 0xfffffff0
call fcn.004025ca
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3f0]
add ecx, 0xfffffff0
call fcn.004025ca
xor ebx, ebx
cmp dword [0x4804f8], ebx
jne 0x4127c0
cmp dword [ebp - 0x3e4], 2
je 0x41249b
cmp dword [ebp - 0x3e4], 1
je 0x41249b
xor ebx, ebx
cmp dword [ebp - 0x3fc], ebx
je 0x4127ff
xor edi, edi
cmp edi, dword [ebp - 0x3fc]
jge 0x4127ff
mov eax, dword [ebp - 0x400]
cmp eax, ebx
je 0x4127fc
lea esi, [eax + edi*8]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4127ef
push eax
call fcn.0042313b
pop ecx
mov eax, dword [esi]
cmp eax, ebx
je 0x4127fc
push eax
call fcn.0042313b
pop ecx
inc edi
jmp 0x4127cc
mov esi, dword [ebp - 0x3f8]
cmp esi, ebx
je 0x412827
cmp dword [0x4804f8], ebx
je 0x412818
mov eax, esi
call fcn.0040bda4
mov eax, dword [ebp - 0x3e4]
push esi
mov dword [esi + 0x38], eax
call fcn.00410e31
cmp dword [ebp - 0x400], ebx
je 0x41283b
push dword [ebp - 0x400]
call fcn.0042313b
pop ecx
or dword [ebp - 4], 0xffffffff
xor eax, eax
cmp dword [ebp - 0x3e4], 6
sete al
mov edi, eax
test edi, edi
jne 0x4128ca
cmp dword [0x4804f8], eax
jne 0x4128ca
push dword [ebp - 0x408]
call fcn.00412be8
mov edi, eax
test edi, edi
je 0x4128ca
push str.Resetting_Error_object
lea ecx, [ebp - 0x3ec]
call fcn.00402148
push 0
lea eax, [ebp - 0x3ec]
push eax
push 2
mov dword [ebp - 4], 0x15
call fcn.0040e1e3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3ec]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
mov esi, 0x480a54
call fcn.0040c599
mov eax, dword [ebp - 0x3f4]
push str.BITs_failed__Updates_downloaded_successfully_using_DownloadFilesDirectly
lea ecx, [eax + 0x40]
mov dword [eax + 0x50], 1
call fcn.0040aed8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [ebp - 0x3f4]
sub ecx, dword [eax + 0x2c]
push 3
dec ecx
mov dword [eax + 0x2c], ecx
call fcn.0041483b
mov eax, edi
call fcn.00436801
ret 4