Function at 0x421431
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x478f83
call fcn.0045be74
push str.DownloadArmManifest...
lea ecx, [ebp - 0x20]
call fcn.004020a6
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov edi, dword [ebp + 8]
add edi, 0x20
mov esi, edi
mov dword [ebp - 0x20], edi
call fcn.0041c6d0
test eax, eax
jne 0x421616
lea eax, [ebp - 0xd]
push eax
push ebx
push str.ERROR_CDP
push str.Get_ARM_Manifest_Result
mov esi, 0x4c46e8
mov byte [ebp - 0xd], bl
call fcn.0040b111
push str.CleanDestinationPath_failed
lea ecx, [ebp - 0x18]
call fcn.004020a6
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
pop esi
push esi
mov dword [ebp - 4], 1
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp + 8]
add eax, 0x28
push 0x4a0688
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040adb6
add esp, 0xc
push ebx
mov dword [ebp - 4], esi
call fcn.00459264
pop ecx
push eax
call fcn.00459230
pop ecx
call fcn.00459242
mov esi, eax
call fcn.0044825c
push eax
lea ecx, [ebp - 0x18]
call fcn.0041872d
push esi
mov byte [ebp - 4], 3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push str._s_d
push eax
call fcn.00402086
mov esi, dword [ebp - 0x18]
add esp, 0x10
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x28], eax
cmp eax, 0xa1
je 0x4216d5
cmp eax, 3
je 0x4216d5
push 0x5c
mov ecx, edi
call fcn.0040c420
mov dword [ebp - 0x24], eax
call fcn.0044825c
push eax
lea ecx, [ebp - 0x14]
call fcn.0041872d
mov byte [ebp - 4], 5
cmp dword [ebp - 0x24], 0xffffffff
je 0x4216a4
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x24]
mov ecx, edi
dec eax
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040c468
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00402573
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
push 0x48415c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040adb6
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 8
call fcn.00401de9
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00402573
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esi - 0x10]
call fcn.004025d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
push dword [edi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [ebp + 8]
add eax, 0x24
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
push 0xea60
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], 1
call fcn.0041ac5f
mov esi, dword [edi]
add esp, 0xc
mov ebx, 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
or edi, 0xffffffff
call fcn.004289ab
xor ebx, ebx
cmp eax, ebx
jne 0x421720
push str.download_success_with_BITs:
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 1
call fcn.004020a6
push ebx
mov dword [ebp - 4], 0xa
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push 2
call fcn.00414e01
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, 0x4c46e8
jmp 0x42173b
push str.failed_to_get_arm_manifest_name_from
lea ecx, [ebp + 8]
call fcn.004020a6
push ebx
push edi
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 7
call fcn.00414e01
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x14]
jmp 0x4216fe
push str.SHCreateDirectoryEx_failed:
lea ecx, [ebp + 8]
call fcn.004020a6
mov byte [ebp - 4], 4
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push 2
call fcn.00414e01
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea ecx, [esi - 0x10]
call fcn.004025d2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
jmp 0x42189f
lea ecx, [ebp - 0xd]
push ecx
mov byte [ebp - 0xd], bl
mov esi, 0x4c46e8
push eax
mov edi, str.Signature_Validation_Error
mov ebx, esi
call fcn.0040b14d
xor ebx, ebx
cmp dword [0x4c47a8], ebx
jne 0x421719
cmp dword [ebp - 0x14], ebx
jne 0x421885
call fcn.0044825c
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041872d
push 0x484b78
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xb
call fcn.004020a6
lea edi, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.0040e2a6
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, edi
push eax
mov esi, 0x4c46e8
mov eax, esi
call fcn.0040db68
mov edi, dword [ebp - 0x20]
push 1
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push edi
push dword [ebp + 8]
call fcn.0042028c
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x42184a
lea eax, [ebp + 0xb]
push eax
push ebx
push str.OK_BB
push str.Get_ARM_Manifest_Result
mov byte [ebp + 0xb], bl
call fcn.0040b111
mov esi, dword [edi]
mov ebx, 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
or edi, 0xffffffff
call fcn.004289ab
mov esi, eax
xor ebx, ebx
lea ecx, [ebp + 8]
cmp esi, ebx
je 0x421836
push str.invalid_after_BB_download:
mov dword [ebp - 0x14], ebx
call fcn.004020a6
push esi
mov byte [ebp - 4], 0xd
push dword [ebp - 0x20]
lea eax, [ebp + 8]
push eax
push 1
call fcn.00414e01
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [ebp + 0xb]
push eax
mov byte [ebp + 0xb], bl
push esi
mov edi, str.Signature_Validation_Error
mov ebx, 0x4c46e8
call fcn.0040b14d
jmp 0x421878
push str.valid_after_BB_download:
call fcn.004020a6
push ebx
mov byte [ebp - 4], 0xe
push dword [ebp - 0x20]
jmp 0x42185f
push str.BB_download_failed:
lea ecx, [ebp + 8]
call fcn.004020a6
push ebx
mov byte [ebp - 4], 0xf
push dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
push 1
call fcn.00414e01
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x42189c
lea eax, [ebp + 0xb]
push eax
push ebx
push str.OK_BITS
push str.Get_ARM_Manifest_Result
mov byte [ebp + 0xb], bl
call fcn.0040b111
mov eax, dword [ebp - 0x14]
call fcn.0045bf4c
ret 4