Function at 0x422c73
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x4aee38
call fcn.0046af88
mov ebx, ecx
mov dword [ebp - 0x24], ebx
push str.DownloadArmManifest...
lea ecx, [ebp - 0x18]
call fcn.00402829
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
push 0
push 2
pop ecx
call fcn.00414071
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea edi, [ebx + 0x20]
push edi
call fcn.0041dcdc
xor esi, esi
inc esi
test eax, eax
jne 0x422e4f
push esi
push str.InitDlManifestError
call fcn.004032da
push str.CleanDestinationPath_failed
lea ecx, [ebp - 0x10]
call fcn.00402829
push 0
mov dword [ebp - 4], esi
lea edx, [ebp - 0x10]
push 2
pop esi
mov ecx, esi
call fcn.00414071
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0x4ec874
lea eax, [ebx + 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402459
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], esi
push ebx
call fcn.00489aae
pop ecx
push eax
call fcn.00489a19
pop ecx
call fcn.004899f8
mov esi, eax
call fcn.00451171
push eax
lea ecx, [ebp - 0x10]
call fcn.00402899
push esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push dword [ebp - 0x18]
push str._s_d
push eax
call fcn.004027d2
mov esi, dword [ebp - 0x10]
add esp, 0x10
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ebx, eax
cmp ebx, 0xa1
je 0x422f56
cmp ebx, 3
je 0x422f56
push 0x5c
push dword [edi]
call fcn.00484080
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x422d8f
or ebx, 0xffffffff
jmp 0x422d93
sub ebx, dword [edi]
sar ebx, 1
call fcn.00451171
push eax
lea ecx, [ebp - 0x14]
call fcn.00402899
mov byte [ebp - 4], 5
cmp ebx, 0xffffffff
je 0x422f0d
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004126f3
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00402e14
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 0x4cfdb8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402459
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004024b8
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00402e14
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea ecx, [esi - 0x10]
call fcn.00402e64
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov ebx, dword [ebp - 0x24]
push dword [edi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebx + 0x24]
lea ecx, [ebp - 0x24]
push 0xea60
push ecx
mov ecx, edi
mov dword [ebp - 0x24], 1
xor esi, esi
call fcn.0041bf30
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
cmp eax, 6
jne 0x422ff0
push str.BITs_download_success:
call fcn.00402829
push esi
push edi
push 2
lea edx, [ebp - 0x1c]
mov dword [ebp - 4], 0xa
pop ecx
call fcn.00413940
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 1
push str.DownloadManifestSuccessBITS
call fcn.004032da
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.0042b4d8
pop ecx
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x422fad
push str.valid_after_BITs_download:
inc esi
call fcn.00402829
push 0
push edi
push 2
lea edx, [ebp - 0x1c]
mov dword [ebp - 4], 0xc
pop ecx
call fcn.00413940
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x423036
push str.failed_to_get_arm_manifest_name_from
lea ecx, [ebp - 0x1c]
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 7
push 0
push edi
lea edx, [ebp - 0x1c]
inc ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 1
push str.InitDlManifestError
call fcn.004032da
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
jmp 0x422f93
push 1
push str.InitDlManifestError
call fcn.004032da
push str.SHCreateDirectoryEx_failed:
lea ecx, [ebp - 0x1c]
call fcn.00402829
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
xor ecx, ecx
lea edx, [ebp - 0x1c]
push ebx
push eax
inc ecx
call fcn.00413940
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.00402e64
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor eax, eax
jmp 0x42318f
push str.ARM_manifest_invalid_after_BITs_download
call fcn.00402829
mov dword [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 0x519278
push eax
push 0x1fc98
call fcn.00411fc6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 1
push str.SignatureValidationError
jmp 0x423031
push str.BITs_failed__download_manifest_Job_is_not_in_Transferred_state
call fcn.00402829
mov dword [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
mov ecx, 0x519278
push eax
push 0x2240c
call fcn.00411fc6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 1
push str.DownloadManifestErrorBITS
call fcn.004032da
cmp dword [0x518e18], 0
jne 0x422fa6
test esi, esi
jne 0x42318d
call fcn.00451171
push eax
lea ecx, [ebp - 0x14]
call fcn.00402899
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xe
call fcn.00402829
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x1c]
mov esi, 0x518d30
push eax
mov ecx, esi
call fcn.0040cabc
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040c1df
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
lea eax, [ebx + 0x24]
push eax
push edi
call fcn.004219c6
mov esi, eax
test esi, esi
je 0x423143
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.0042b4d8
mov dword [ebp - 0x24], eax
pop ecx
lea ecx, [ebp - 0x1c]
test eax, eax
je 0x42310d
push str.invalid_after_BB_download:
xor esi, esi
call fcn.00402829
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x1c]
push dword [ebp - 0x24]
xor ecx, ecx
push edi
inc ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 1
push str.SignatureValidationError
jmp 0x42317d
push str.valid_after_BB_download:
call fcn.00402829
xor ecx, ecx
mov byte [ebp - 4], 0x11
push 0
push edi
lea edx, [ebp - 0x1c]
inc ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 1
push str.DownloadManifestSuccessWinINet
jmp 0x42317d
push str.BB_download_failed:
lea ecx, [ebp - 0x20]
call fcn.00402829
lea eax, [ebx + 0x24]
mov byte [ebp - 4], 0x12
xor ecx, ecx
lea edx, [ebp - 0x20]
push 0
push eax
inc ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402e64
push 1
push str.DownloadManifestErrorWinINet
call fcn.004032da
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, esi
call fcn.0046af51
ret