Function at 0x422aa7
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x4889c0
call fcn.00464e48
mov ebx, ecx
mov dword [ebp - 0x28], ebx
push str.DownloadArmManifest...
lea ecx, [ebp - 0x1c]
call fcn.0040279b
and dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push 0
push 2
pop esi
mov ecx, esi
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea edi, [ebx + 0x20]
push edi
call fcn.0041d9a2
test eax, eax
jne 0x422c95
mov byte [ebp - 0xd], al
mov ecx, 0x4e1f90
lea eax, [ebp - 0xd]
push eax
push 0
push str.ERROR_CDP
push str.Get_ARM_Manifest_Result
call fcn.004098b0
push str.CleanDestinationPath_failed
lea ecx, [ebp - 0x18]
call fcn.0040279b
push 0
lea edx, [ebp - 0x18]
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 0x4bcc20
lea eax, [ebx + 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004023e9
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], esi
push ebx
call fcn.0046bc6c
pop ecx
push eax
call fcn.0046bbd7
pop ecx
call fcn.0046bbb6
mov esi, eax
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x14]
call fcn.00402824
push esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push dword [ebp - 0x1c]
push str._s_d
push eax
call fcn.00402762
mov esi, dword [ebp - 0x14]
add esp, 0x10
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ebx, eax
cmp ebx, 0xa1
je 0x422d4a
cmp ebx, 3
je 0x422d4a
push 0x5c
push dword [edi]
call fcn.004673a7
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x422bd5
or ebx, 0xffffffff
jmp 0x422bd9
sub ebx, dword [edi]
sar ebx, 1
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x18]
call fcn.00402824
mov byte [ebp - 4], 5
cmp ebx, 0xffffffff
je 0x422d11
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.0040abbb
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00402d9f
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 0x49fb68
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004023e9
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402448
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00402d9f
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea ecx, [esi - 0x10]
call fcn.00402def
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ebx, dword [ebp - 0x28]
push dword [edi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea eax, [ebx + 0x24]
mov dword [ebp - 0x28], 1
mov edx, dword [eax]
lea ecx, [ebp - 0x28]
push 0xea60
push ecx
mov ecx, edi
mov dword [ebp - 0x24], eax
xor esi, esi
call fcn.0041bc50
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.0042d48a
add esp, 0xc
test eax, eax
jne 0x422d95
push str.download_success_with_BITs:
lea ecx, [ebp - 0x20]
inc esi
call fcn.0040279b
push 0
push edi
push 2
lea edx, [ebp - 0x20]
mov dword [ebp - 4], 0xa
pop ecx
call fcn.00413900
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x422dad
push str.failed_to_get_arm_manifest_name_from
lea ecx, [ebp - 0x20]
call fcn.0040279b
push 0
push edi
push 2
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 7
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x422d7b
push str.SHCreateDirectoryEx_failed:
lea ecx, [ebp - 0x20]
call fcn.0040279b
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
push 2
lea edx, [ebp - 0x20]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov esi, dword [ebp - 0x14]
lea ecx, [esi - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402def
xor eax, eax
jmp 0x422f1c
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push ecx
push eax
push str.Signature_Validation_Error
mov ecx, 0x4e1f90
call fcn.004098f0
cmp dword [0x4e2078], 0
jne 0x422d8e
test esi, esi
jne 0x422efc
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402824
push str.IDS_TITLE_CHECKING
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xb
call fcn.0040279b
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x20]
mov esi, 0x4e1f90
push eax
mov ecx, esi
call fcn.0040c9da
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0040c24b
push 1
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
lea eax, [ebx + 0x24]
push eax
push edi
call fcn.004218ce
mov esi, eax
test esi, esi
je 0x422ec1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push 0
push str.OK_BB
push str.Get_ARM_Manifest_Result
mov ecx, 0x4e1f90
call fcn.004098b0
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.0042d48a
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x20]
test ebx, ebx
je 0x422eae
push str.invalid_after_BB_download:
xor esi, esi
call fcn.0040279b
xor ecx, ecx
mov byte [ebp - 4], 0xd
push ebx
push edi
lea edx, [ebp - 0x20]
inc ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push ebx
push str.Signature_Validation_Error
mov ecx, 0x4e1f90
call fcn.004098f0
jmp 0x422eef
push str.valid_after_BB_download:
call fcn.0040279b
push 0
mov byte [ebp - 4], 0xe
push edi
jmp 0x422ed7
push str.BB_download_failed:
lea ecx, [ebp - 0x20]
call fcn.0040279b
push 0
mov byte [ebp - 4], 0xf
push dword [ebp - 0x24]
xor ecx, ecx
lea edx, [ebp - 0x20]
inc ecx
call fcn.00413900
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402def
jmp 0x422f1a
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push 0
push str.OK_BITS
push str.Get_ARM_Manifest_Result
mov ecx, 0x4e1f90
call fcn.004098b0
mov eax, esi
call fcn.00464e11
ret