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

Disassembly:
push 0x224
mov eax, 0x4ac06b
call fcn.00468c4c
mov esi, ecx
mov dword [ebp - 0x224], esi
push str.Downloading_Manifest:
lea ecx, [ebp - 0x21c]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x21c]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00414ca1
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.___URL:
lea ecx, [ebp - 0x21c]
call fcn.00402829
lea eax, [esi + 0x14]
xor edi, edi
push ebx
push eax
inc edi
lea edx, [ebp - 0x21c]
push 2
mov dword [ebp - 4], edi
pop ecx
mov dword [ebp - 0x220], eax
call fcn.00414570
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
push 2
pop eax
lea ebx, [esi + 4]
mov dword [ebp - 4], eax
push 0
push ebx
lea edx, [ebp - 0x21c]
mov ecx, eax
call fcn.00414570
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push ebx
push str.UpdateManifestPath
call fcn.0041f793
test eax, eax
je 0x42002b
push ebx
call fcn.0041e8a1
test eax, eax
jne 0x41fb65
push 0x202
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00481070
add esp, 0xc
mov dword [ebp - 0x22c], 0x101
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x41fc5d
lea eax, [ebp - 0x214]
push eax
call fcn.0048477d
pop ecx
push eax
lea eax, [ebp - 0x214]
add esi, 8
push eax
mov ecx, esi
call fcn.004025c6
push 0
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
cmp edi, 0xa1
je 0x41fc01
cmp edi, 3
je 0x41fc01
push 0x5c
mov ecx, esi
call fcn.00424d08
push esi
mov ecx, ebx
call fcn.00402e14
mov esi, dword [ebp - 0x224]
mov ecx, ebx
mov eax, dword [esi + 0x18]
push dword [eax - 0xc]
push eax
call fcn.004025c6
push ebx
call fcn.0041e8a1
test eax, eax
jne 0x41fb61
mov byte [ebp - 0x215], al
mov ecx, 0x513e58
lea eax, [ebp - 0x215]
push eax
push 5
push str.Get_Product_Manifest_Result
call fcn.0040a210
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.00414ca1
jmp 0x41fc47
mov byte [esi + 0x1c], 0
mov esi, dword [ebp - 0x220]
push dword [esi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [esi]
xor edi, edi
cmp dword [0x513f2c], edi
mov ecx, 0x1d4c0
mov eax, 0x927c0
mov dword [ebp - 0x21c], 1
cmovne eax, ecx
mov ecx, ebx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041cb20
pop ecx
pop ecx
mov esi, eax
mov byte [ebp - 0x215], 0
lea eax, [ebp - 0x215]
mov ecx, 0x513e58
push eax
push dword [ebp - 0x21c]
push str.BITS_Result
call fcn.0040a210
lea ecx, [ebp - 0x21c]
cmp esi, 6
jne 0x41fcde
push str.BITs_download_success:
call fcn.00402829
push edi
push ebx
push 2
lea edx, [ebp - 0x21c]
mov dword [ebp - 4], 7
pop ecx
call fcn.00414570
pop ecx
pop ecx
jmp 0x41fd0c
lea eax, [ebp - 0x215]
mov byte [ebp - 0x215], 0
push eax
push edi
push str.Get_Product_Manifest_Result
mov ecx, 0x513e58
call fcn.0040a210
push str.SHCreateDirectoryEx___failed:
lea ecx, [ebp - 0x21c]
call fcn.00402829
xor ecx, ecx
mov dword [ebp - 4], 3
push edi
push esi
lea edx, [ebp - 0x21c]
inc ecx
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor eax, eax
jmp 0x42002d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 0x215], 0
lea eax, [ebp - 0x215]
mov ecx, 0x513e58
push eax
push esi
push str.Get_Product_Manifest_Result
call fcn.0040a210
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
push esi
push eax
lea edx, [ebp - 0x21c]
mov ecx, edi
call fcn.00414570
pop ecx
pop ecx
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x224]
jmp 0x41fc4e
push str.Download_manifest_Job_is_not_in_Transferred_state
call fcn.00402829
mov dword [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
mov ecx, 0x5143b0
push eax
push 0x2240c
call fcn.00412e53
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebx]
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.0042f13c
mov esi, eax
pop ecx
test esi, esi
jne 0x41fda3
mov ecx, 0x5143b0
call fcn.00412e26
xor edi, edi
lea ecx, [ebp - 0x21c]
push str.valid_after_BITs_download:
inc edi
call fcn.00402829
push esi
push ebx
push 2
lea edx, [ebp - 0x21c]
mov dword [ebp - 4], 9
pop ecx
call fcn.00414570
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 esi
push str.OK_BITS
mov esi, 0x513e58
push str.Get_Product_Manifest_Result
mov ecx, esi
call fcn.0040a1d0
jmp 0x41fe09
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, 0x5143b0
push eax
push 0x1fc98
call fcn.00412e53
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 esi
mov esi, 0x513e58
push str.Signature_Validation_Error
mov ecx, esi
call fcn.0040a210
cmp dword [0x513f40], 0
jne 0x41fc56
test edi, edi
jne 0x420017
call fcn.0044edd1
push eax
lea ecx, [ebp - 0x228]
call fcn.00402899
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xb
call fcn.00402829
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.0040d62c
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0040cd50
mov esi, dword [ebp - 0x224]
xor eax, eax
push 1
push eax
push eax
push eax
push dword [ebp - 0x220]
mov ecx, esi
push ebx
call fcn.004227d9
mov edi, eax
test edi, edi
je 0x41ffc7
mov ecx, dword [ebx]
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.0042f13c
mov dword [ebp - 0x22c], eax
pop ecx
test eax, eax
je 0x41ff5b
lea ecx, [ebp - 0x215]
mov byte [ebp - 0x215], 0
push ecx
push eax
push str.Signature_Validation_Error
mov ecx, 0x513e58
xor edi, edi
call fcn.0040a210
push str.invalid_after_BB_download:
lea ecx, [ebp - 0x220]
call fcn.00402829
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x220]
push dword [ebp - 0x22c]
xor ecx, ecx
push ebx
inc ecx
call fcn.00414570
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push str.manifest_invalid_after_BB_download
lea ecx, [ebp - 0x220]
call fcn.00402829
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x220]
mov ecx, 0x5143b0
push eax
push 0x1fc98
call fcn.00412e53
mov ecx, dword [ebp - 0x220]
jmp 0x41fff7
mov ecx, 0x5143b0
call fcn.00412e26
xor edi, edi
lea ecx, [ebp - 0x220]
push str.valid_after_BB_download:
inc edi
call fcn.00402829
push 0
push ebx
push 2
lea edx, [ebp - 0x220]
mov byte [ebp - 4], 0xf
pop ecx
call fcn.00414570
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x215]
mov byte [ebp - 0x215], 0
push eax
push 0
push str.OK_BB
push str.Get_Product_Manifest_Result
mov ecx, 0x513e58
call fcn.0040a1d0
jmp 0x41ffff
push str.BB_download_failed:
lea ecx, [ebp - 0x230]
call fcn.00402829
lea eax, [esi + 0x14]
mov byte [ebp - 4], 0x10
xor ecx, ecx
lea edx, [ebp - 0x230]
push 0
push eax
inc ecx
call fcn.00414570
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 - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402e64
test edi, edi
je 0x42002b
jmp 0x42001d
mov esi, dword [ebp - 0x224]
mov ecx, esi
call fcn.00421543
xor ecx, ecx
test eax, eax
cmovne edi, ecx
mov eax, edi
call fcn.00468bf6
ret