Function at 0x101d8e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov edi, ecx
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push edx
call sub.shell32.dll_SHGetKnownFolderPath
test eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x48], edi
je 0x101d9058
mov esi, eax
mov eax, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d8ee8
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d9374
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d9374
mov dword [eax], 1
mov dword [eax + 4], 0
mov edi, eax
mov dword [eax + 8], 0
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d8f2d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d9385
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d9385
cmp esi, 0x80004005
mov dword [eax], edi
mov dword [eax + 4], 0x1043ef0c
mov byte [eax + 8], 0x27
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
je 0x101d9091
cmp esi, 0x80070057
jne 0x101d9174
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d8f92
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d9393
mov dword [ebx], eax
push 0x29
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d9393
mov esi, eax
push 0x29
push str.requested_known_folder_id_does_not_exist.requested_known_folder_id_does_not_have_a_path._INFOSHORT__No_shortcuts_found_in_path:
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [0x1044f00c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x29
mov dword [ebp - 0x2c], 0x29
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d8fe4
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d93ba
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d93ba
mov dword [eax], esi
mov dword [eax + 4], 0x29
mov edi, eax
mov dword [eax + 8], 0x29
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d9025
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d93e4
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d93e4
mov dword [eax], edi
mov esi, eax
mov edi, 3
mov dword [eax + 4], 0x1043ef0c
mov byte [eax + 8], 0x27
lea ecx, [ebp - 0x1c]
call fcn.101a79b0
jmp 0x101d9256
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x101d9282
mov ecx, 0xffffffff
nop dword [eax + eax]
cmp word [eax + ecx*2 + 2], 0
lea ecx, [ecx + 1]
jne 0x101d9070
lea edx, [ebp - 0x34]
push ecx
push eax
push edx
call fcn.10169f90
add esp, 0xc
mov eax, dword [ebp - 0x38]
jmp 0x101d929d
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d90ae
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d939a
mov dword [ebx], eax
push 0x2f
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d939a
mov esi, eax
push 0x2f
push 0x10449485
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [0x1044f00c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x2f
mov dword [ebp - 0x2c], 0x2f
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d9100
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d93c8
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d93c8
mov dword [eax], esi
mov dword [eax + 4], 0x2f
mov edi, eax
mov dword [eax + 8], 0x2f
mov eax, dword [0x1044f00c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d9141
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d93f2
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d93f2
mov dword [eax], edi
mov esi, eax
mov edi, 3
mov dword [eax + 4], 0x1043ef0c
mov byte [eax + 8], 0x27
lea ecx, [ebp - 0x1c]
call fcn.101a79b0
jmp 0x101d9256
lea eax, [ebp - 0x64]
mov dword [ebp - 0x34], 0x10449454
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], 0x1002df20
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
lea esi, [ebp - 0x34]
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.1001b0a0
add esp, 8
mov eax, dword [ebp - 0x58]
movsd xmm0, qword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [0x1044f00c]
movsd qword [ebp - 0x54], xmm0
movsd qword [ebp - 0x34], xmm0
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d91e8
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d93ac
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d93ac
mov edi, eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 8], eax
mov eax, dword [0x1044f00c]
movsd xmm0, qword [ebp - 0x54]
movsd qword [edi], xmm0
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101d9228
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d93d6
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101d93d6
mov dword [eax], edi
mov esi, eax
mov edi, 3
mov dword [eax + 4], 0x1043ef0c
mov byte [eax + 8], 0x27
lea ecx, [ebp - 0x1c]
call fcn.101a79b0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
push dword [ebp - 0x38]
call sub.ole32.dll_CoTaskMemFree
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
movsd xmm0, qword [ebp - 0x1c]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x101d936c
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 1
xor eax, eax
push eax
call sub.ole32.dll_CoTaskMemFree
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x60]
push dword [ebp - 0x2c]
push esi
push eax
call fcn.101769e0
add esp, 0xc
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x3c], esi
test edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
cmove edi, eax
test ebx, ebx
je 0x101d931e
setns al
js 0x101d9400
mov byte [ebp - 0xd], al
mov eax, dword [0x1044f00c]
mov esi, dword [0x1044eff8]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x101d92fc
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101d930b
mov dword [esi], eax
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov esi, eax
test eax, eax
jne 0x101d9323
movzx eax, byte [ebp - 0xd]
push ebx
push eax
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
mov esi, 1
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x30], 0
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
je 0x101d9350
mov eax, dword [0x1044eff8]
push dword [ebp - 0x3c]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x101d936c
cmp dword [ebp - 0x40], 0
je 0x101d936c
mov eax, dword [0x1044eff8]
push ecx
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
mov eax, 0x29
jmp 0x101d939f
mov eax, 0x2f
push eax
push 1
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101d9405
call fcn.1001ac40
ud2