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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x457edf
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x489d50]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x489d50]
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.0040215a
xor edi, edi
push edi
lea eax, [esp + 0x14]
push eax
push 2
pop esi
push esi
mov dword [esp + 0x24c], edi
call fcn.0040ed4d
or dword [esp + 0x24c], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push str.___URL:
lea ecx, [esp + 0x14]
call fcn.0040215a
push edi
lea eax, [ebx + 0x14]
push eax
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x250], 1
call fcn.0040e8c7
or dword [esp + 0x250], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
push str.___file:
lea ecx, [esp + 0x14]
call fcn.0040215a
push 0
lea edi, [ebx + 8]
push edi
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x250], esi
call fcn.0040e8c7
or dword [esp + 0x250], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
mov esi, edi
call fcn.0041204a
test eax, eax
jne 0x4125c9
push 0x200
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.0043c590
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 0x4125c9
lea eax, [esp + 0x24]
lea esi, [ebx + 0xc]
push eax
mov ecx, esi
call fcn.00408e18
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 0x412611
cmp eax, 3
je 0x412611
push 0x5c
mov ecx, esi
call fcn.004108c4
push esi
mov ecx, edi
call fcn.00408fde
mov eax, dword [ebx + 0x18]
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.00401f90
mov esi, edi
call fcn.0041204a
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 [0x48ea3c], eax
mov eax, dword [0x48e50c]
test eax, eax
je 0x412660
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004127a8
cmp dword [0x48e520], 0
mov dword [esp + 0x14], eax
je 0x412653
xor eax, eax
jmp 0x412784
push str.SHCreateDirectoryEx___failed:
lea ecx, [esp + 0x14]
call fcn.0040215a
mov dword [esp + 0x240], 3
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push esi
push eax
push 1
call fcn.0040e8c7
mov ecx, dword [esp + 0x20]
add esp, 0x10
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025dc
mov eax, esi
jmp 0x412784
test eax, eax
jne 0x41274d
mov eax, dword [0x48e50c]
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.004115be
mov eax, dword [esp + 0x20]
mov dword [0x48ea48], eax
mov esi, dword [edi]
add esp, 0x10
or ebx, 0xffffffff
call fcn.00418534
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, 0x48ea54
test esi, esi
je 0x4126f3
push str.Manifest_downloaded_successfully_with_BITs:
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 1
call fcn.0040215a
push 0
push edi
lea eax, [esp + 0x24]
push eax
push 2
mov dword [esp + 0x250], 4
call fcn.0040e8c7
or dword [esp + 0x250], 0xffffffff
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025dc
jmp 0x412710
cmp dword [esp + 0x10], 0
jl 0x412710
push str.ARM_set_error_based_on_DOWNLOAD_TIME_OUT_LIMIT.
mov ecx, ebx
mov dword [0x48ea48], 0x80200010
call fcn.0040bb93
cmp dword [0x48e520], 0
jne 0x41260a
cmp dword [esp + 0x14], 0
jne 0x412751
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
call fcn.004127a8
mov dword [esp + 0x14], eax
test eax, eax
je 0x41274d
cmp dword [esp + 0x10], 0
jl 0x41274d
push str.Manifest_downloaded_successfully_using_DownloadManifestDirectly
mov ecx, ebx
call fcn.0040bb93
mov esi, dword [esp + 0x18]
shr esi, 0xa
mov dword [0x48ea40], esi
xor esi, esi
inc esi
mov dword [0x48ea44], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x48ea3c]
push esi
dec eax
mov dword [0x48ea3c], eax
mov eax, 0x48ea10
call fcn.0041653f
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.0043b751
mov esp, ebp
pop ebp
ret