Function at 0x4051a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x454768
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], 0
test byte [0x470250], 1
jne 0x405218
or dword [0x470250], 1
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4051fa
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x457e00
mov dword [0x47024c], eax
call fcn.0043dadc
add esp, 4
mov ecx, dword [0x47024c]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4052ad
lea ecx, [esp + 0x18]
call fcn.0042fe3e
mov dword [esp + 0x3c], 0
mov edx, dword [0x47024c]
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.0042fed6
test eax, eax
je 0x405292
mov eax, dword [0x47024c]
add eax, 0xfffffff0
push eax
call fcn.00401f90
mov esi, dword [esp + 0x48]
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esi], eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.0042fe67
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 4
mov ecx, 0x47024c
call fcn.00401b90
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0042fe67
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4052c7
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push str.APN_Stub
push 0x45c74c
lea ecx, [esp + 0x18]
push 0x45c72c
push ecx
mov dword [esp + 0x4c], 1
call fcn.0040f030
add esp, 0x10
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405315
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x3c], 2
mov ecx, dword [ebx + 0xa8]
mov edi, dword [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push 0x45c72c
push edx
call fcn.0040f030
mov edx, dword [0x47024c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
add esp, 0x10
or eax, ecx
jge 0x405377
push 0x104
mov ecx, 0x47024c
call fcn.00401cc0
mov edx, dword [0x47024c]
mov esi, dword [esp + 0x14]
push edx
push esi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov eax, dword [0x47024c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0043d945
add esp, 8
test eax, eax
jl 0x405460
mov ecx, dword [0x47024c]
cmp eax, dword [ecx - 8]
jg 0x405460
mov dword [ecx - 0xc], eax
mov edx, dword [0x47024c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [0x47024c]
cmp dword [eax - 0xc], ecx
jne 0x4053ea
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x4053ea
push str.Error._Unable_to_create_directory_for_local_package.
push 1
push eax
call fcn.00417320
add esp, 0xc
mov eax, dword [0x47024c]
add eax, 0xfffffff0
push eax
call fcn.00401f90
mov ebx, dword [esp + 0x48]
add eax, 0x10
mov dword [ebx], eax
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x3c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405425
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405449
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 4
push 0x80070057
call fcn.00401f60
int3