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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4791c9
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4bfd60]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x4bfd60]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov edi, ecx
push str.Downloading_Manifest:
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], edi
call fcn.004020a6
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
push eax
push 2
pop esi
push esi
mov dword [esp + 0x254], ebx
call fcn.004152d1
or dword [esp + 0x254], 0xffffffff
mov ecx, dword [esp + 0x28]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
push str.___URL:
lea ecx, [esp + 0x1c]
call fcn.004020a6
lea eax, [edi + 0x14]
push ebx
push eax
mov dword [esp + 0x250], 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00414e01
or dword [esp + 0x258], 0xffffffff
mov ecx, dword [esp + 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push str.___file:
lea ecx, [esp + 0x1c]
call fcn.004020a6
lea eax, [edi + 4]
push ebx
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x258], esi
call fcn.00414e01
or dword [esp + 0x258], 0xffffffff
mov ecx, dword [esp + 0x28]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, dword [esp + 0x20]
push esi
push str.UpdateManifestPath
call fcn.0041d6a7
test eax, eax
jne 0x41d9ab
inc eax
jmp 0x41dea4
call fcn.0041c6d0
test eax, eax
jne 0x41da9a
push 0x200
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push ebx
push eax
call fcn.00459cf0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x1c], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x41db8c
lea eax, [esp + 0x2c]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.0040af5f
mov eax, dword [esi]
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [esp + 0x24], eax
cmp eax, 0xa1
je 0x41db33
cmp eax, 3
je 0x41db33
push 0x5c
mov ecx, esi
call fcn.004227dd
push esi
mov esi, dword [esp + 0x24]
mov ecx, esi
call fcn.00402573
mov eax, dword [edi + 0x18]
push dword [eax - 0xc]
mov ecx, esi
push eax
call fcn.00401f27
call fcn.0041c6d0
test eax, eax
jne 0x41da97
lea eax, [esp + 0x13]
push eax
mov byte [esp + 0x17], bl
push 5
mov edi, str.Get_Product_Manifest_Result
mov ebx, 0x4c46e8
call fcn.0040b14d
push str.Cannot_continue_manifest_download__CleanDestinationPath_failed
lea ecx, [esp + 0x20]
call fcn.004020a6
push 0
lea eax, [esp + 0x20]
push eax
push 1
mov dword [esp + 0x254], 4
call fcn.004152d1
add esp, 0xc
jmp 0x41db79
mov byte [edi + 0x1c], bl
mov esi, dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [0x4c4794]
mov ecx, dword [esi]
neg eax
sbb eax, eax
and eax, 0xfff8ad00
add eax, 0x927c0
push eax
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 1
call fcn.0041ac5f
add esp, 0xc
mov esi, eax
lea eax, [esp + 0x13]
push eax
push dword [esp + 0x18]
mov byte [esp + 0x1b], bl
mov edi, str.BITS_Result
mov ebx, 0x4c46e8
call fcn.0040b14d
lea ecx, [esp + 0x14]
cmp esi, 6
jne 0x41dc06
push str.BITs_download_success:
call fcn.004020a6
push 0
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push 2
mov dword [esp + 0x258], 7
call fcn.00414e01
add esp, 0x10
jmp 0x41dc36
lea ecx, [esp + 0x13]
push ecx
mov byte [esp + 0x17], bl
push eax
mov edi, str.Get_Product_Manifest_Result
mov ebx, 0x4c46e8
call fcn.0040b14d
push str.SHCreateDirectoryEx___failed:
lea ecx, [esp + 0x20]
call fcn.004020a6
mov dword [esp + 0x248], 3
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push esi
push eax
push 1
call fcn.00414e01
add esp, 0x10
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
jmp 0x41dea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x13]
push eax
mov byte [esp + 0x17], bl
push esi
mov edi, str.Get_Product_Manifest_Result
mov ebx, 0x4c46e8
call fcn.0040b14d
push str.GetUserName_failed
lea ecx, [esp + 0x1c]
call fcn.004020a6
push str.Cannot_continue_manifest_download_
lea ecx, [esp + 0x20]
mov dword [esp + 0x24c], 5
call fcn.004020a6
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push 1
mov byte [esp + 0x258], 6
call fcn.00414e01
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov ecx, dword [esp + 0x18]
jmp 0x41db7d
push str.Download_manifest_Job_is_not_in_Transferred_state
call fcn.004020a6
mov dword [esp + 0x248], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2240c
mov ecx, eax
lea edx, [esp + 0x18]
mov ebx, 0x4c4bf0
call fcn.0041384f
or dword [esp + 0x248], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
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 0x41dcd6
mov esi, 0x4c4bf0
call fcn.00413826
push str.valid_after_BITs_download:
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 1
call fcn.004020a6
push ebx
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push 2
mov dword [esp + 0x258], 9
call fcn.00414e01
or dword [esp + 0x258], 0xffffffff
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
lea eax, [esp + 0x13]
push eax
push ebx
push str.OK_BITS
push str.Get_Product_Manifest_Result
mov esi, 0x4c46e8
mov byte [esp + 0x23], bl
call fcn.0040b111
jmp 0x41dcf1
lea ecx, [esp + 0x13]
push ecx
mov byte [esp + 0x17], bl
push eax
mov edi, str.Signature_Validation_Error
mov ebx, 0x4c46e8
call fcn.0040b14d
xor ebx, ebx
cmp dword [0x4c47a8], ebx
jne 0x41db85
cmp dword [esp + 0x18], ebx
jne 0x41de8f
call fcn.0044825c
push eax
lea ecx, [esp + 0x28]
call fcn.0041872d
push 0x484b78
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 0xa
call fcn.004020a6
lea edi, [esp + 0x24]
lea ecx, [esp + 0x14]
mov esi, 0x4c46e8
mov byte [esp + 0x248], 0xb
call fcn.0040e2a6
mov byte [esp + 0x248], 0xa
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, edi
push eax
mov eax, esi
call fcn.0040db68
mov edi, dword [esp + 0x20]
push 1
push ebx
push ebx
push ebx
push dword [esp + 0x2c]
push edi
push dword [esp + 0x40]
call fcn.0042028c
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x41dec8
mov esi, 0x4c4bf0
call fcn.00413826
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
test esi, esi
je 0x41de4f
and dword [esp + 0x18], 0
lea eax, [esp + 0x13]
push eax
push esi
mov edi, str.Signature_Validation_Error
mov ebx, 0x4c46e8
mov byte [esp + 0x1b], 0
call fcn.0040b14d
push str.invalid_after_BB_download:
lea ecx, [esp + 0x18]
call fcn.004020a6
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push 1
mov byte [esp + 0x258], 0xc
call fcn.00414e01
mov byte [esp + 0x258], 0xa
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
push str.manifest_invalid_after_BB_download
lea ecx, [esp + 0x18]
call fcn.004020a6
mov byte [esp + 0x248], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1fc98
mov ecx, eax
lea edx, [esp + 0x18]
mov ebx, 0x4c4bf0
call fcn.0041384f
mov byte [esp + 0x248], 0xa
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004025d2
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x41de75
lea eax, [esp + 0x13]
push eax
push ebx
push str.OK_BB
push str.Get_Product_Manifest_Result
mov esi, 0x4c46e8
mov byte [esp + 0x23], bl
call fcn.0040b111
or dword [esp + 0x248], 0xffffffff
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.004025d2
cmp dword [esp + 0x18], ebx
je 0x41dea0
mov ecx, dword [esp + 0x28]
call fcn.0041f3fa
test eax, eax
je 0x41dea0
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00458e0e
mov esp, ebp
pop ebp
ret
push str.BB_download_failed:
lea ecx, [esp + 0x18]
call fcn.004020a6
push ebx
mov byte [esp + 0x24c], 0xe
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push 1
call fcn.00414e01
mov byte [esp + 0x258], 0xa
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
jmp 0x41de51