Function at 0x1007e510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f30d7
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x248], 0
mov dword [ebp - 4], 1
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1007ea3a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
mov ecx, ebx
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x1007e5a0
push 0
push 0x101fe8a0
mov ecx, ebx
call fcn.10006ab0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x248], 1
push eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x244], 0
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp dword [ebp - 0x23c], 0
je 0x1007e906
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp dword [ebp - 0x234], 0
je 0x1007e906
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push 0xa
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov edx, dword [ebp - 0x240]
test edx, edx
je 0x1007e906
mov eax, dword [ebp - 0x23c]
lea esi, [ebp - 0x224]
push esi
push 0x1020b9fc
push 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x1007e906
mov eax, dword [ecx]
lea edx, [ebp - 0x238]
push edx
push 0xe0
push 0
push ecx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x1007e906
mov eax, dword [ecx]
lea edx, [ebp - 0x244]
push edx
lea edx, [ebp - 0x220]
push edx
push 1
push ecx
call dword [eax + 0xc]
cmp eax, 1
je 0x1007e8d0
mov esi, dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x358]
push edx
push 0
push dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x460]
push edx
push 0x8001
push dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x358]
mov dword [ebp - 0x22c], 0
push eax
call esi
test eax, eax
js 0x1007e8a5
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x460]
push eax
call esi
test eax, eax
js 0x1007e8a5
mov esi, dword [ebp - 0x228]
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1007ea3a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
push esi
call fcn.10004060
test al, al
jne 0x1007e7d3
test esi, esi
jne 0x1007e7b2
xor eax, eax
jmp 0x1007e7c6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1007e7b7
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.10006ab0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x21c]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x1007ea30
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1007e80b
push edi
lea ecx, [ebp - 0x21c]
call fcn.10006970
mov esi, dword [ebp - 0x21c]
lea eax, [edi + 1]
push eax
push esi
call fcn.101a8f52
add esp, 8
cmp edi, dword [esi - 8]
jg 0x1007ea30
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
jb 0x1007e83e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1007ea3a
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1007e866
test dx, dx
je 0x1007e862
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1007e866
add ecx, 4
add eax, 4
test dx, dx
jne 0x1007e840
xor edi, edi
jmp 0x1007e86b
sbb edi, edi
or edi, 1
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1007e887
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1007e930
push dword [ebp - 0x228]
call ebx
push dword [ebp - 0x22c]
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x244]
push edx
lea edx, [ebp - 0x220]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
cmp eax, 1
jne 0x1007e6c1
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x234]
push dword [ebp - 0x240]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.10003a70
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x22c]
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1007ea44
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x21c]
push esi
call fcn.10004060
test al, al
jne 0x1007e990
test esi, esi
jne 0x1007e96f
xor ecx, ecx
jmp 0x1007e983
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007e974
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x21c]
call fcn.10006ab0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x21c]
mov esi, dword [edx]
lea edi, [eax - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x1007ea02
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1007e9f1
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x1007e9f1
push edi
call fcn.100041a0
mov dword [ebp - 0x24c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1007e9de
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x24c]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1007e9fc
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.10006ab0
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1007ea1b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x228]
call ebx
push dword [ebp - 0x22c]
call ebx
jmp 0x1007e8ca
push 0x80070057
call fcn.10004040
push 0x80004005
call fcn.10004040
push 0x80004005
call fcn.10004040
int3