Function at 0x4beb00
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6562cb
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.005468f0
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xe60], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xe84], eax
lea eax, [ebp - 0xc44]
push eax
push ecx
mov dword [ebp - 0xe88], esi
mov dword [ebp - 0xe80], ecx
mov dword [ebp - 0xe74], 0
mov dword [ebp - 0xe5c], 0
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [ebp - 0xe80]
neg eax
sbb edi, edi
inc edi
call fcn.004e0130
push 0
push 0
test eax, eax
mov ecx, 1
push 0xb
push dword [ebx]
cmovne edi, ecx
mov dword [ebp - 0xe8c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx + 0xc], 0
lea eax, [ebp - 0xe74]
mov ecx, dword [esi]
mov edx, 0x20
push eax
mov eax, 0xa0
cmove eax, edx
push eax
push 0
push esi
call dword [ecx + 0x10]
mov dword [ebp - 0xe78], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0xe70], edi
xor ebx, ebx
mov dword [ebp - 0xe64], eax
mov dword [ebp - 0xe6c], ebx
mov dword [ebp - 0xe68], eax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x62c]
push 0x208
push ebx
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x834]
push 0x208
push ebx
push eax
call fcn.005e0dd0
add esp, 0xc
mov dword [ebp - 0xe58], ebx
lea eax, [ebp - 0xe58]
push eax
push ebx
push ebx
push 0x12
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
test eax, eax
js 0x4bec70
push 0x8000
push ecx
mov ecx, dword [ebp - 0xe58]
lea edx, [ebp - 0x21c]
call fcn.004dffd0
add esp, 8
push dword [ebp - 0xe58]
call esi
lea eax, [ebp - 0xe58]
mov dword [ebp - 0xe58], 0
push eax
push 0
push 0
push 3
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x4becb5
push 0x8000
push ecx
mov ecx, dword [ebp - 0xe58]
lea edx, [ebp - 0x62c]
call fcn.004dffd0
add esp, 8
push dword [ebp - 0xe58]
call esi
lea eax, [ebp - 0xe58]
mov dword [ebp - 0xe58], 0
push eax
push 0
push 0
push 0xa
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x4becfa
push 0x8000
push ecx
mov ecx, dword [ebp - 0xe58]
lea edx, [ebp - 0x834]
call fcn.004dffd0
add esp, 8
push dword [ebp - 0xe58]
call esi
cmp dword [ebp - 0xe78], 0
jl 0x4bf0c1
mov ecx, dword [ebp - 0xe74]
test ecx, ecx
je 0x4bf0c1
lea edx, [ebp - 0xe7c]
mov dword [ebp - 0xe7c], 1
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0xe5c]
push edx
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x4bef96
nop dword [eax]
cmp dword [ebp - 0xe7c], 1
jne 0x4bef96
mov ecx, dword [ebp - 0xe88]
lea edx, [ebp - 0xe58]
push edx
lea edx, [ebp - 0xe5c]
mov dword [ebp - 0xe58], 0x70000000
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0x24]
test eax, eax
js 0x4bef6a
mov eax, dword [ebp - 0xe58]
test eax, 0x10000000
je 0x4bef6a
test eax, 0x20000000
je 0x4bef6a
test eax, 0x40000000
jne 0x4bee02
push 0x8000
push ecx
mov ecx, dword [ebp - 0xe5c]
lea edx, [ebp - 0x424]
call fcn.004dffd0
add esp, 8
test eax, eax
js 0x4bee02
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, eax
cmovl eax, esi
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.005f012e
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
add esp, 0xc
test eax, eax
je 0x4bef6a
mov ecx, dword [ebp - 0xe88]
lea edx, [ebp - 0x101c]
push edx
push 0
push dword [ebp - 0xe5c]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x2c]
test eax, eax
js 0x4bef6a
push 0x104
lea eax, [ebp - 0xa3c]
push eax
push dword [ebp - 0xe5c]
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRetToBufW]
push dword [ebp - 0xe5c]
push dword [ebp - 0xe80]
call dword [sym.imp.SHELL32.dll_ILCombine]
mov ecx, dword [ebp - 0xe60]
mov dword [ebp - 0xe78], eax
call fcn.004bf170
push dword [ebp - 0xe78]
mov esi, eax
call dword [sym.imp.SHELL32.dll_ILClone]
mov edx, dword [ebp - 0xe60]
mov ecx, dword [edx + 0x2c]
mov dword [ecx + esi*8], eax
push dword [ebp - 0xe5c]
call dword [sym.imp.SHELL32.dll_ILClone]
mov edx, dword [ebp - 0xe60]
mov dword [ebp - 0xc4c], esi
mov ecx, dword [edx + 0x2c]
push ecx
mov dword [ecx + esi*8 + 4], eax
lea eax, [ebp - 0xa3c]
push eax
push ecx
lea ecx, [ebp - 0xe54]
call fcn.004be3c0
lea eax, [ebp - 0xe54]
cmp eax, ebx
jae 0x4bef11
cmp edi, eax
ja 0x4bef11
mov ecx, eax
mov eax, 0x3e88cb3d
sub ecx, edi
imul ecx
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ebx, dword [ebp - 0xe64]
jne 0x4bef03
push ecx
lea ecx, [ebp - 0xe70]
call fcn.004bf5f0
mov eax, dword [ebp - 0xe68]
mov ebx, dword [ebp - 0xe6c]
mov edi, dword [ebp - 0xe70]
mov dword [ebp - 0xe64], eax
test ebx, ebx
je 0x4bef4a
imul esi, esi, 0x20c
add esi, edi
jmp 0x4bef41
cmp ebx, dword [ebp - 0xe64]
jne 0x4bef37
push ecx
lea ecx, [ebp - 0xe70]
call fcn.004bf5f0
mov eax, dword [ebp - 0xe68]
mov ebx, dword [ebp - 0xe6c]
mov dword [ebp - 0xe64], eax
test ebx, ebx
je 0x4bef4a
lea esi, [ebp - 0xe54]
mov ecx, 0x83
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0xe78]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
add ebx, 0x20c
mov dword [ebp - 0xe6c], ebx
call esi
mov edi, dword [ebp - 0xe70]
push dword [ebp - 0xe5c]
call esi
mov eax, dword [ebp - 0xe74]
lea edx, [ebp - 0xe7c]
push edx
lea edx, [ebp - 0xe5c]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4bed40
mov eax, dword [ebp - 0xe74]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, edi
cmp edi, ebx
je 0x4bf080
mov edi, dword [ebp - 0xe90]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x208]
mov dword [ebp - 0xec8], 0x67
movups xmm0, xmmword [ebp - 0xec8]
mov dword [ebp - 0xea4], eax
mov eax, dword [ebp - 0xe84]
movups xmmword [ebp - 0xf0c], xmm0
mov dword [ebp - 0xeb8], esi
mov dword [ebp - 0xeb0], 0xffffffff
mov dword [ebp - 0xeac], 0xffffffff
movups xmm0, xmmword [ebp - 0xeb8]
mov dword [ebp - 0xf14], eax
lea eax, [ebp - 0xf14]
push eax
mov eax, dword [ebp - 0xe60]
movups xmmword [ebp - 0xefc], xmm0
mov dword [ebp - 0xea8], 1
movups xmm0, xmmword [ebp - 0xea8]
push 0
push 0x1132
push dword [eax]
movups xmmword [ebp - 0xeec], xmm0
mov dword [ebp - 0xf10], 0xffff0002
movq xmm0, qword [ebp - 0xe98]
movq qword [ebp - 0xedc], xmm0
mov dword [ebp - 0xed4], edi
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 0x20c
cmp esi, ebx
jne 0x4befc0
mov edi, dword [ebp - 0xe70]
cmp dword [ebp - 0xe8c], 0
je 0x4bf0c1
mov eax, dword [ebp - 0xe84]
lea ecx, [ebp - 0xe70]
push ecx
mov dword [ebp - 0xe70], eax
mov eax, dword [ebp - 0xe60]
push 0
push 0x1115
mov dword [ebp - 0xe6c], 0x4bea80
push dword [eax]
mov dword [ebp - 0xe68], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp - 0xe60]
push 0
push 1
push 0xb
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x14
call fcn.005e74a6
mov esi, eax
add esp, 4
test esi, esi
je 0x4bf11f
mov ecx, dword [ebx]
push dword [ebp - 0xe80]
mov dword [esi], ecx
call dword [sym.imp.SHELL32.dll_ILClone]
push 0
push 0
push esi
push 0x4bf210
push 0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xe84]
push 0
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4bf143
mov ecx, dword [ebp - 0xe64]
mov eax, 0x3e88cb3d
sub ecx, edi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.004bf770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 0xc