Function at 0x42214f
Capabilities:
Create directory
Get session user name

Disassembly:
push 0x224
mov eax, 0x4afbb6
call fcn.0046c36c
mov ebx, ecx
mov dword [ebp - 0x224], ebx
push str.Downloading_Manifest:
lea ecx, [ebp - 0x220]
call fcn.00402829
and dword [ebp - 4], 0
lea edx, [ebp - 0x220]
push 0
push 2
pop edi
mov ecx, edi
call fcn.004174d1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.___URL:
lea ecx, [ebp - 0x21c]
call fcn.00402829
lea eax, [ebx + 0x14]
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x220], eax
push esi
push eax
lea edx, [ebp - 0x21c]
mov ecx, edi
call fcn.00416da0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.___file:
lea ecx, [ebp - 0x21c]
call fcn.00402829
mov dword [ebp - 4], edi
lea edx, [ebp - 0x21c]
push esi
lea edi, [ebx + 4]
push edi
push 2
pop ecx
call fcn.00416da0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push edi
push str.UpdateManifestPath
call fcn.00421f5e
test eax, eax
jne 0x422233
inc eax
jmp 0x42284b
push edi
call fcn.0042106c
test eax, eax
jne 0x42233b
push 0x202
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.004847f0
add esp, 0xc
mov dword [ebp - 0x228], 0x101
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4224c6
lea eax, [ebp - 0x214]
push eax
call fcn.00487efd
pop ecx
push eax
lea eax, [ebp - 0x214]
lea esi, [ebx + 8]
push eax
mov ecx, esi
call fcn.004025c6
push 0
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ebx, eax
cmp ebx, 0xa1
je 0x42246a
cmp ebx, 3
je 0x42246a
push 0x5c
mov ecx, esi
call fcn.00427bf8
push esi
mov ecx, edi
call fcn.00402e14
mov ebx, dword [ebp - 0x224]
mov ecx, edi
mov eax, dword [ebx + 0x18]
push dword [eax - 0xc]
push eax
call fcn.004025c6
push edi
call fcn.0042106c
test eax, eax
jne 0x422337
mov byte [ebp - 0x215], al
mov ecx, 0x518e58
lea eax, [ebp - 0x215]
push eax
push 5
push str.Get_Product_Manifest
call fcn.00409e80
push str.Cannot_continue_manifest_download__CleanDestinationPath_failed
lea ecx, [ebp - 0x21c]
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 4
push 0
lea edx, [ebp - 0x21c]
inc ecx
call fcn.004174d1
jmp 0x4224b0
mov byte [ebx + 0x1c], 0
mov ebx, dword [ebp - 0x220]
push dword [ebx]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebx]
xor esi, esi
cmp dword [0x518f2c], esi
mov ecx, 0x1d4c0
mov eax, 0x927c0
mov dword [ebp - 0x21c], 1
cmovne eax, ecx
mov ecx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041f2a0
pop ecx
pop ecx
cmp eax, 6
mov byte [ebp - 0x215], 0
mov ebx, 0x518e58
lea eax, [ebp - 0x215]
mov ecx, ebx
push eax
jne 0x4225b0
push esi
push str.BITS_Product_Manifest
call fcn.00409e80
push str.BITs_download_success:
lea ecx, [ebp - 0x21c]
call fcn.00402829
push esi
push edi
push 2
lea edx, [ebp - 0x21c]
mov dword [ebp - 4], 7
pop ecx
call fcn.00416da0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [edi]
or edx, 0xffffffff
push str.2_16_17_18_19_52_53_54_63_68_81_82_83_84_85_86_87_88_89_90_91_92_93_97
call fcn.0042ef54
mov dword [ebp - 0x228], eax
pop ecx
test eax, eax
jne 0x422548
mov ecx, 0x5193ac
inc esi
call fcn.004155f6
push str.valid_after_BITs_download:
lea ecx, [ebp - 0x21c]
call fcn.00402829
push 0
push edi
push 2
lea edx, [ebp - 0x21c]
mov dword [ebp - 4], 9
pop ecx
call fcn.00416da0
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x215]
mov byte [ebp - 0x215], 0
push eax
push 0
push str.SUCCESS_BITS
push str.Get_Product_Manifest
mov ecx, ebx
call fcn.00409e40
jmp 0x422606
lea eax, [ebp - 0x215]
mov byte [ebp - 0x215], 0
push eax
push ebx
push str.Get_Product_Manifest
mov ecx, 0x518e58
call fcn.00409e80
push str.SHCreateDirectoryEx___failed:
lea ecx, [ebp - 0x21c]
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 3
push ebx
push esi
lea edx, [ebp - 0x21c]
inc ecx
call fcn.00416da0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor eax, eax
jmp 0x42284b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 0x215], 0
lea eax, [ebp - 0x215]
mov ecx, 0x518e58
push eax
push esi
push str.Get_Product_Manifest
call fcn.00409e80
push str.GetUserName_failed
lea ecx, [ebp - 0x224]
call fcn.00402829
push str.Cannot_continue_manifest_download_
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 5
call fcn.00402829
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 6
xor ecx, ecx
lea edx, [ebp - 0x21c]
push esi
push eax
inc ecx
call fcn.00416da0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x224]
jmp 0x4224b7
push str.manifest_invalid_after_BITs_download
lea ecx, [ebp - 0x21c]
call fcn.00402829
mov dword [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
mov ecx, 0x5193ac
push eax
push 0x1fc98
call fcn.00415623
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x215]
mov byte [ebp - 0x215], 0
push eax
push dword [ebp - 0x228]
mov ecx, ebx
push str.Signature_Validation_Error
call fcn.00409e80
jmp 0x422606
push dword [ebp - 0x21c]
push str.BITS_Product_Manifest
call fcn.00409e80
push str.BITs_failed__download_manifest_Job_is_not_in_Transferred_state
lea ecx, [ebp - 0x21c]
call fcn.00402829
mov dword [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
mov ecx, 0x5193ac
push eax
push 0x2240c
call fcn.00415623
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
cmp dword [0x518f40], 0
jne 0x4224bf
test esi, esi
jne 0x422837
call fcn.004524e1
push eax
lea ecx, [ebp - 0x22c]
call fcn.00402899
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xb
call fcn.00402829
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.0040d25c
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x22c]
mov ecx, ebx
push eax
call fcn.0040c982
push str.WinINet_Product_Manifest
lea ecx, [ebp - 0x21c]
call fcn.00402829
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x224]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x220]
push edi
call fcn.00425097
mov byte [ebp - 4], 0xb
mov esi, eax
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00402e64
test esi, esi
je 0x4227e7
mov ecx, dword [edi]
or edx, 0xffffffff
push str.2_16_17_18_19_52_53_54_63_68_81_82_83_84_85_86_87_88_89_90_91_92_93_97
call fcn.0042ef54
mov dword [ebp - 0x228], eax
pop ecx
test eax, eax
je 0x42277e
lea ecx, [ebp - 0x215]
mov byte [ebp - 0x215], 0
push ecx
push eax
push str.Signature_Validation_Error
mov ecx, ebx
xor esi, esi
call fcn.00409e80
push str.invalid_after_BB_download:
lea ecx, [ebp - 0x21c]
call fcn.00402829
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x21c]
push dword [ebp - 0x228]
xor ecx, ecx
push edi
inc ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.manifest_invalid_after_BB_download
lea ecx, [ebp - 0x21c]
call fcn.00402829
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
mov ecx, 0x5193ac
push eax
push 0x1fc98
call fcn.00415623
mov ecx, dword [ebp - 0x21c]
jmp 0x422819
mov ecx, 0x5193ac
call fcn.004155f6
xor esi, esi
lea ecx, [ebp - 0x21c]
push str.valid_after_BB_download:
inc esi
call fcn.00402829
push 0
push edi
push 2
lea edx, [ebp - 0x21c]
mov byte [ebp - 4], 0x10
pop ecx
call fcn.00416da0
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x215]
mov byte [ebp - 0x215], 0
push eax
push 0
push str.SUCCESS_WININET
push str.Get_Product_Manifest
mov ecx, ebx
call fcn.00409e40
jmp 0x422821
push str.BB_download_failed:
lea ecx, [ebp - 0x230]
call fcn.00402829
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x230]
push 0
push dword [ebp - 0x220]
xor ecx, ecx
inc ecx
call fcn.00416da0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test esi, esi
je 0x422849
mov ecx, dword [ebp - 0x224]
call fcn.00423e03
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
call fcn.0046c316
ret