Function at 0x412371
Capabilities:
Create directory

Disassembly:
push 0x428
mov eax, 0x4559bb
call fcn.0043bfa9
mov eax, dword [ebp + 8]
mov edi, 0x48a9f4
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x3f4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [0x48aa20], eax
mov dword [0x48aa24], ebx
mov dword [0x48aa44], ebx
cmp dword [0x48aac8], ebx
je 0x4123c3
mov dword [ebp - 0x3dc], ebx
cmp dword [0x48a508], ebx
je 0x4123cd
mov dword [ebp - 0x3dc], 2
push 0x3c
mov dword [ebp - 0x3e4], ebx
mov dword [ebp - 4], ebx
call fcn.0042879c
pop ecx
mov dword [ebp - 0x3ec], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x412402
push dword [0x48a96c]
push eax
call fcn.0040b953
mov esi, eax
mov dword [ebp - 0x400], esi
jmp 0x41240a
mov dword [ebp - 0x400], ebx
mov esi, ebx
mov byte [ebp - 4], bl
cmp dword [esi], ebx
jne 0x4124f1
push str.DownloadFiles
lea ecx, [ebp - 0x3e8]
call fcn.0040215a
mov byte [ebp - 4], 2
push dword [esi + 0xc]
lea eax, [ebp - 0x3e8]
push eax
push 1
call fcn.0040e5e0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, dword [esi + 0xc]
push esi
mov dword [0x48aa2c], eax
call fcn.004112df
push dword [ebp - 0x408]
call fcn.0041357d
mov dword [ebp - 0x3dc], eax
cmp eax, ebx
je 0x4124cb
push str.Resetting_Error_object
lea ecx, [ebp - 0x3e8]
call fcn.0040215a
push ebx
lea eax, [ebp - 0x3e8]
push eax
push 2
mov byte [ebp - 4], 3
call fcn.0040e5e0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov esi, 0x48aa88
call fcn.0040c97c
push str.BITs_failed__Updates_downloaded_successfully_using_DownloadFilesDirectly
mov ecx, 0x48aa34
mov dword [0x48aa44], 1
call fcn.0040b2b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x48aa20]
push 3
dec eax
mov dword [0x48aa20], eax
mov eax, edi
call fcn.004150e9
mov eax, dword [ebp - 0x3dc]
jmp 0x412d92
cmp dword [esi + 0xc], ebx
jge 0x41252f
push str.DownloadFiles
lea ecx, [ebp - 0x3e8]
call fcn.0040215a
mov byte [ebp - 4], 4
push dword [esi + 0xc]
lea eax, [ebp - 0x3e8]
push eax
push 1
call fcn.0040e5e0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3e8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov ecx, dword [ebp - 0x400]
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], 0x48a90c
call fcn.0040c1ba
xor ebx, ebx
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x3fc], ebx
mov dword [ebp - 0x3f8], ebx
jge 0x412717
cmp edi, 0x80200001
je 0x4125c2
push str.isComplete_returns_error
lea ecx, [ebp - 0x3e0]
call fcn.0040215a
push edi
lea eax, [ebp - 0x3e0]
push eax
push 1
mov byte [ebp - 4], 5
call fcn.0040e5e0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov eax, dword [0x48a914]
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.004287cb
pop ecx
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x3e0], ebx
mov eax, dword [ebp - 0x434]
cmp dword [ebp - 0x3e0], eax
jge 0x4128be
push dword [ebp - 0x3e0]
mov ecx, dword [ebp - 0x3e8]
call fcn.004089a1
mov edi, eax
call fcn.00428b72
push eax
lea ecx, [ebp - 0x3f0]
call fcn.0040fd20
mov byte [ebp - 4], 7
mov eax, dword [edi]
cmp eax, ebx
je 0x4128a1
add eax, 0xc
push eax
lea ecx, [ebp - 0x3f0]
call fcn.00408b20
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.0040219e
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.00401f90
mov eax, dword [edi]
lea ecx, [eax + 8]
lea eax, [ebp - 0x404]
push eax
call fcn.00408b20
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.0041188c
test eax, eax
je 0x412790
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x414]
call fcn.0040215a
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.0040e15a
mov ecx, dword [ebp - 0x414]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov edi, dword [edi]
mov ebx, dword [ebp - 0x404]
mov dword [edi + 0x18], 1
mov dword [ebp - 0x3e4], 6
jmp 0x412897
cmp dword [ebp - 0x3e4], 2
je 0x41272d
cmp dword [ebp - 0x3e4], 1
jne 0x4125c2
push str.Last_Bits_job_still_downloading_checking_progress
lea ecx, [ebp - 0x3e0]
call fcn.0040215a
push ebx
lea eax, [ebp - 0x3e0]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.0040e5e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3e0]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push dword [0x48a914]
push dword [ebp - 0x400]
call fcn.0040bac6
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [0x48aa2c], ebx
mov esi, ecx
mov dword [0x48aa44], esi
jmp 0x41292a
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.004287cb
mov edx, dword [ebp - 0x3f8]
pop ecx
mov ecx, dword [ebp - 0x3fc]
push ebx
lea edi, [ecx + edx*8]
push esi
push eax
mov dword [edi + 4], eax
call fcn.0043af8c
add esp, 0xc
push str.Creating_BITS_job_LocalFileName:
lea ecx, [ebp - 0x410]
call fcn.0040215a
push 0
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push 2
mov byte [ebp - 4], 0xa
call fcn.0040e15a
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x410]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
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.004287cb
pop ecx
push dword [ebp - 0x3f0]
mov dword [edi], eax
push esi
push eax
call fcn.0043af8c
add esp, 0xc
push str.Creating_BITS_job_RemoteName:
lea ecx, [ebp - 0x3ec]
call fcn.0040215a
push 0
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3ec]
push eax
push 2
mov byte [ebp - 4], 0xb
call fcn.0040e15a
mov ecx, dword [ebp - 0x3ec]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
inc dword [ebp - 0x3f8]
mov esi, dword [ebp - 0x40c]
lea ecx, [ebx - 0x10]
call fcn.004025dc
xor ebx, ebx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3f0]
add ecx, 0xfffffff0
call fcn.004025dc
inc dword [ebp - 0x3e0]
jmp 0x4125ee
cmp dword [ebp - 0x3f8], ebx
je 0x41292a
push dword [ebp - 0x3dc]
mov ecx, dword [ebp - 0x400]
push dword [ebp - 0x3fc]
push dword [ebp - 0x3f8]
call fcn.0040beb7
mov edi, eax
cmp edi, ebx
jge 0x41292a
mov eax, dword [ebp - 0x3f4]
push str.downLoadFileSet___failed.
lea ecx, [ebp - 0x3dc]
mov dword [eax + 0x38], edi
call fcn.0040215a
push edi
lea eax, [ebp - 0x3dc]
push eax
push 1
mov byte [ebp - 4], 0xc
call fcn.0040e5e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3dc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
cmp esi, ebx
je 0x412c66
mov eax, dword [ebp - 0x3e8]
cmp dword [eax + 8], ebx
jle 0x412c66
mov ecx, dword [ebp - 0x400]
lea eax, [ebp - 0x430]
push eax
lea ebx, [ebp - 0x3e4]
call fcn.0040c1ba
xor ebx, ebx
mov edi, eax
cmp dword [0x48a518], ebx
jne 0x412c66
cmp edi, ebx
jge 0x412a1f
mov eax, dword [ebp - 0x3f4]
push str.DownloadFiles:isComplete_returns_error
lea ecx, [ebp - 0x3dc]
mov dword [eax + 0x38], edi
call fcn.0040215a
push edi
lea eax, [ebp - 0x3dc]
push eax
push 1
mov byte [ebp - 4], 0xd
call fcn.0040e5e0
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3dc]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
lea ecx, [ebp - 0x3dc]
cmp edi, 0x80190194
jne 0x4129e3
push str.Missing_file_on_server__HTTP_Error_404_
call fcn.0040215a
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3dc]
push ecx
push 0x223a8
mov ecx, eax
jmp 0x4129ff
push str.General_Download_File_failure
call fcn.0040215a
lea eax, [ebp - 0x3dc]
push eax
mov byte [ebp - 4], 0xf
push 0x2240c
mov ecx, edi
mov edx, 0x48aa88
call fcn.0040c9a1
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x3dc]
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x412c66
cmp dword [ebp - 0x3e4], 2
je 0x412ac0
cmp dword [ebp - 0x3e4], 1
je 0x412ac0
cmp dword [ebp - 0x3e4], 6
jne 0x412c4c
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 0x412c44
push eax
call fcn.004089a1
mov edi, eax
mov eax, dword [edi]
cmp eax, ebx
je 0x412ab8
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 8]
mov esi, eax
call fcn.00416fe1
test eax, eax
je 0x412ab6
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 0x412a55
mov eax, dword [0x48a508]
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 0x412aec
cmp dword [ebp - 0x430], ebx
jbe 0x412c44
cmp dword [ebp - 0x424], ebx
ja 0x412b00
cmp dword [ebp - 0x428], ebx
jbe 0x412c44
mov edi, dword [0x48aac8]
mov dword [ebp - 0x40c], edi
cmp edi, ebx
je 0x412c44
cmp dword [0x48a518], ebx
jne 0x412c66
mov esi, dword [edi]
push ebx
push 0x64
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call fcn.0043fbc0
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
push edx
push eax
call fcn.00444260
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.0043a400
add esp, 0xc
call fcn.00428b72
push eax
lea ecx, [ebp - 0x3f0]
call fcn.0040fd20
push str.IDS_BAL_DOWNLOADPROGRESS
lea ecx, [ebp - 0x3dc]
mov byte [ebp - 4], 0x10
call fcn.0040215a
lea esi, [ebp - 0x3f0]
lea edi, [ebp - 0x3dc]
mov ebx, 0x48a458
mov byte [ebp - 4], 0x11
call fcn.0040818d
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x3dc]
add ecx, 0xfffffff0
call fcn.004025dc
push 0
push 0x64
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call fcn.0043fbc0
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
push edx
push eax
call fcn.00444260
push eax
push dword [ebp - 0x3f0]
mov eax, 0x100
lea edi, [ebp - 0x3c0]
call fcn.004139cc
pop ecx
pop ecx
mov eax, edi
push eax
lea ecx, [ebp - 0x3ec]
call fcn.0040215a
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x3ec]
mov byte [ebp - 4], 0x12
call fcn.0041cf61
mov ecx, dword [ebp - 0x3ec]
add ecx, 0xfffffff0
call fcn.004025dc
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x3f0]
add ecx, 0xfffffff0
call fcn.004025dc
xor ebx, ebx
cmp dword [0x48a518], ebx
jne 0x412c66
cmp dword [ebp - 0x3e4], 2
je 0x412941
cmp dword [ebp - 0x3e4], 1
je 0x412941
xor ebx, ebx
cmp dword [ebp - 0x3f8], ebx
je 0x412ca9
xor edi, edi
cmp edi, dword [ebp - 0x3f8]
jge 0x412ca9
cmp dword [ebp - 0x3fc], ebx
je 0x412ca6
mov eax, dword [ebp - 0x3fc]
lea esi, [eax + edi*8]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x412c99
push eax
call fcn.004287d6
pop ecx
mov eax, dword [esi]
cmp eax, ebx
je 0x412ca6
push eax
call fcn.004287d6
pop ecx
inc edi
jmp 0x412c72
mov esi, dword [ebp - 0x400]
cmp esi, ebx
je 0x412cd1
cmp dword [0x48a518], ebx
je 0x412cc2
mov eax, esi
call fcn.0040c187
mov eax, dword [ebp - 0x3e4]
push esi
mov dword [esi + 0x38], eax
call fcn.004112df
cmp dword [ebp - 0x3fc], ebx
je 0x412ce5
push dword [ebp - 0x3fc]
call fcn.004287d6
pop ecx
or dword [ebp - 4], 0xffffffff
xor eax, eax
cmp dword [ebp - 0x3e4], 6
sete al
mov edi, eax
test edi, edi
jne 0x412d74
cmp dword [0x48a518], eax
jne 0x412d74
push dword [ebp - 0x408]
call fcn.0041357d
mov edi, eax
test edi, edi
je 0x412d74
push str.Resetting_Error_object
lea ecx, [ebp - 0x3ec]
call fcn.0040215a
push 0
lea eax, [ebp - 0x3ec]
push eax
push 2
mov dword [ebp - 4], 0x15
call fcn.0040e5e0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3ec]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
mov esi, 0x48aa88
call fcn.0040c97c
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.0040b2b8
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.004150e9
mov eax, edi
call fcn.0043c005
ret 4