Function at 0x100a20f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ef362
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1013d0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push str.Entered_msadal::StorageWorker::GetCacheRoot
mov dword [ebp - 0x6c], edi
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
call fcn.10045430
add esp, 8
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov dword [ebp - 4], 1
mov word [edi], ax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], 1
push eax
push 0
push 0
push 0x101153f8
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [ebp - 0x58], eax
test eax, eax
js 0x100a2436
mov eax, dword [ebp - 0x5c]
mov edx, eax
lea esi, [edx + 2]
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100a2190
sub edx, esi
mov dword [ebp - 0x18], 0
sar edx, 1
xor ecx, ecx
push edx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
call fcn.1004f6c0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x54], 0xd
cmp edi, eax
je 0x100a21e5
mov ecx, edi
call fcn.1004cda0
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
jmp 0x100a221f
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100a221f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a2215
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a2476
push edx
push ecx
call fcn.10005291
add esp, 8
mov edx, dword [str.MicrosoftIdentityCache1]
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a2230
sub ecx, esi
mov dword [ebp - 0x18], 0
sar ecx, 1
xor eax, eax
push ecx
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1004f6c0
mov eax, 0x3d
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.100a0ee0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x100a22b2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100a22a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100a247b
push edx
push ecx
call fcn.10005291
add esp, 8
cmp dword [edi + 0x10], 0
je 0x100a23e6
mov eax, dword [ebp - 0x5c]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100a22c4
sub edx, esi
mov dword [ebp - 0x18], 0
sar edx, 1
xor ecx, ecx
push edx
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
call fcn.1004f6c0
push 0x101448c8
mov eax, 0xff
mov byte [ebp - 4], 3
push 0x100a0020
push 0x101448c4
mov dword [ebp - 0x54], eax
call fcn.100bf78a
add esp, 0xc
test eax, eax
je 0x100a2480
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x4c]
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.100bfcfd
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x100a2371
mov esi, dword [ebp - 0x3c]
test esi, 0x400
je 0x100a2366
mov eax, dword [ebp - 0x38]
cmp eax, 0xa000000c
jne 0x100a2358
mov esi, 4
jmp 0x100a2384
cmp eax, 0xa0000003
jne 0x100a2366
mov esi, 0xa
jmp 0x100a2384
and esi, 0x10
or esi, 0x20
shr esi, 4
jmp 0x100a2384
cmp eax, 2
je 0x100a237f
cmp eax, 3
je 0x100a237f
xor esi, esi
jmp 0x100a2384
mov esi, 1
push 0x101448c8
push 0x100a0020
push 0x101448c4
call fcn.100bf78a
add esp, 0xc
test eax, eax
je 0x100a2485
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0x101448c8
test esi, esi
je 0x100a23de
push 0x101448c8
push 0x100a0020
push 0x101448c4
call fcn.100bf78a
add esp, 0xc
test eax, eax
je 0x100a248a
cmp esi, 1
je 0x100a23e6
mov byte [ebp - 0x4d], 0
jmp 0x100a23ea
test eax, eax
jne 0x100a248f
mov byte [ebp - 0x4d], 1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], 1
test al, 2
je 0x100a2406
and eax, 0xfffffffd
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x54], eax
call fcn.1004cda0
cmp byte [ebp - 0x4d], 0
push dword [ebp - 0x5c]
jne 0x100a24a1
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100055f3
mov esp, ebp
pop ebp
ret
push str.msadal::StorageWorker::GetCacheRoot
push 0x2d
push str.e:_agent01_work18_s_srccpp_srclibwindows_storageworker.cpp
lea ecx, [ebp - 0x1c]
call fcn.100a6110
sub esp, 8
mov esi, eax
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.1009fbe0
push 0xcaa50011
push esi
lea ecx, [ebp - 0x48]
call fcn.100b12d0
push 0x10137098
lea eax, [ebp - 0x48]
push eax
call fcn.10006a50
call fcn.1000e987
call fcn.1000e987
call fcn.10011974
call fcn.10011974
call fcn.10011974
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
push eax
push str.exists
call fcn.100a5430
push str.Invalid_value_of__localappdata___s
push 0
call fcn.10045430
add esp, 0xc
lea ecx, [ebp - 0x68]
push str.msadal::StorageWorker::GetCacheRoot
push 0x33
push str.e:_agent01_work18_s_srccpp_srclibwindows_storageworker.cpp
call fcn.100a6110
sub esp, 8
mov esi, eax
movzx eax, byte [0x1010b682]
mov ecx, esp
push eax
call fcn.10086350
push 0xcaa50012
push esi
lea ecx, [ebp - 0x2c]
call fcn.100b12d0
push 0x10137098
lea eax, [ebp - 0x2c]
push eax
call fcn.10006a50
int3