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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fb48
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x47bd50]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x47bd50]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebx, ecx
push str.Downloading_Manifest:
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
call fcn.00402148
xor edi, edi
push edi
lea eax, [esp + 0x14]
push eax
push 2
pop esi
push esi
mov dword [esp + 0x24c], edi
call fcn.0040e1e3
or dword [esp + 0x24c], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025ca
push str.___URL:
lea ecx, [esp + 0x14]
call fcn.00402148
push edi
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x250], 1
call fcn.0040dd5d
or dword [esp + 0x250], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
push str.___file:
lea ecx, [esp + 0x14]
call fcn.00402148
push 0
lea edi, [ebx + 8]
push edi
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x250], esi
call fcn.0040dd5d
or dword [esp + 0x250], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
mov esi, edi
call fcn.004112d2
test eax, eax
jne 0x41188b
push 0x200
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.00434dc0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x1c], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x41188b
lea eax, [esp + 0x24]
lea esi, [ebx + 0xc]
push eax
mov ecx, esi
call fcn.004086b5
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [esp + 0x1c], eax
cmp eax, 0xa1
je 0x4118d4
cmp eax, 3
je 0x4118d4
push 0x5c
mov ecx, esi
call fcn.0041001d
push esi
mov ecx, edi
call fcn.00408894
mov eax, dword [ebx + 0x18]
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.00401f7d
mov esi, edi
call fcn.004112d2
lea esi, [ebx + 0x14]
push dword [esi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [esp + 0x18], 0
and dword [esp + 0x14], 0
mov dword [0x4809ec], eax
mov eax, dword [0x4804e4]
test eax, eax
je 0x411923
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.00411a6b
cmp dword [0x4804f8], 0
mov dword [esp + 0x14], eax
je 0x411916
xor eax, eax
jmp 0x411a47
push str.SHCreateDirectoryEx___failed:
lea ecx, [esp + 0x14]
call fcn.00402148
mov dword [esp + 0x240], 3
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push esi
push eax
push 1
call fcn.0040dd5d
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025ca
mov eax, esi
jmp 0x411a47
test eax, eax
jne 0x411a10
mov eax, dword [0x4804e4]
mov esi, dword [esi]
neg eax
sbb eax, eax
and eax, 0xfff8ad00
add eax, 0x927c0
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
mov dword [esp + 0x20], 1
call fcn.00410863
mov eax, dword [esp + 0x20]
mov dword [0x4809f8], eax
mov esi, dword [edi]
add esp, 0x10
or ebx, 0xffffffff
call fcn.00416714
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, 0x480a00
test esi, esi
je 0x4119b6
push str.Manifest_downloaded_successfully_with_BITs:
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 1
call fcn.00402148
push 0
push edi
lea eax, [esp + 0x24]
push eax
push 2
mov dword [esp + 0x250], 4
call fcn.0040dd5d
or dword [esp + 0x250], 0xffffffff
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025ca
jmp 0x4119d3
cmp dword [esp + 0x10], 0
jl 0x4119d3
push str.ARM_set_error_based_on_DOWNLOAD_TIME_OUT_LIMIT.
mov ecx, ebx
mov dword [0x4809f8], 0x80200010
call fcn.0040aed8
cmp dword [0x4804f8], 0
jne 0x4118cd
cmp dword [esp + 0x14], 0
jne 0x411a14
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.00411a6b
mov dword [esp + 0x14], eax
test eax, eax
je 0x411a10
cmp dword [esp + 0x10], 0
jl 0x411a10
push str.Manifest_downloaded_successfully_using_DownloadManifestDirectly
mov ecx, ebx
call fcn.0040aed8
mov esi, dword [esp + 0x18]
shr esi, 0xa
mov dword [0x4809f0], esi
xor esi, esi
inc esi
mov dword [0x4809f4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4809ec]
push esi
dec eax
mov dword [0x4809ec], eax
mov eax, 0x4809c0
call fcn.0041483b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00433fff
mov esp, ebp
pop ebp
ret