Function at 0x487970
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510cd6
mov eax, dword fs:[0]
push eax
mov eax, 0x142c
call fcn.004e1f60
mov eax, dword [0x55e2f4]
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 ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x142c], eax
mov dword [ebp - 0x1428], 1
mov dword [ebp - 0x1438], esi
mov dword [ebp - 0x1434], esi
mov dword [ebp - 0x1430], esi
push esi
push esi
push 0xffffffffffffffff
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, eax
test edi, edi
jle 0x487aea
push 0x401
lea eax, [ebp - 0xc08]
dec edi
push eax
push esi
push dword [ebp - 0x142c]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
inc esi
cmp esi, 1
jg 0x487a14
lea eax, [ebp - 0xc08]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x487a1e
mov dword [ebp - 0x1428], 0
xor eax, eax
mov dword [ebp - 0x1410], 7
mov dword [ebp - 0x1414], 0
mov word [ebp - 0x1424], ax
cmp word [ebp - 0xc08], ax
jne 0x487a48
xor ecx, ecx
jmp 0x487a60
lea ecx, [ebp - 0xc08]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487a51
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xc08]
push eax
lea ecx, [ebp - 0x1424]
call fcn.004051a0
lea eax, [ebp - 0x1424]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1438]
call fcn.00405410
mov eax, dword [ebp - 0x1410]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x487ae2
mov ecx, dword [ebp - 0x1424]
inc eax
cmp eax, 0x7fffffff
ja 0x487b53
add eax, eax
cmp eax, 0x1000
jb 0x487ad9
test cl, 0x1f
jne 0x487b53
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x487b53
sub ecx, eax
cmp ecx, 4
jb 0x487b53
cmp ecx, 0x23
ja 0x487b53
mov ecx, eax
push ecx
call fcn.00475290
add esp, 4
test edi, edi
jg 0x4879e3
mov esi, dword [ebp - 0x142c]
push esi
call dword [sym.imp.SHELL32.dll_DragFinish]
mov edi, dword [ebp - 0x1428]
mov dword [ebp - 0x1418], str.FILE_OPREATE_TRANSLATE_VOLUME
mov dword [ebp - 0x1414], str.FILE_OPREATE_CREATE_VOLUME
mov dword [ebp - 0x1410], 0
push 0
test edi, edi
je 0x487b58
lea eax, [ebp - 0x1424]
mov dword [ebp - 0x1424], 0
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x1420], str.SELECT_FILE_OPREATE
mov dword [ebp - 0x141c], str.FILE_OPREATE_MOUNT_VOLUME
call fcn.0040d490
add esp, 0xc
jmp 0x487b7f
call fcn.004e8490
lea eax, [ebp - 0x1420]
mov dword [ebp - 0x1420], 0
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x141c], str.SELECT_FILE_OPREATE
call fcn.0040d490
add esp, 0xc
inc eax
cmp eax, 1
jne 0x487bb2
test edi, edi
je 0x487cf3
push 0xffffffffffffffff
lea eax, [ebp - 0xc08]
mov ecx, ebx
push eax
call fcn.00486180
mov ecx, ebx
call fcn.0048a410
push 1
push esi
mov ecx, ebx
call fcn.0048a7a0
jmp 0x487cf3
cmp eax, 2
jne 0x487c52
lea eax, [ebp - 0x142c]
mov dword [ebp - 0x1428], 0xffffffff
push eax
lea eax, [ebp - 0x1428]
mov dword [ebp - 0x142c], 0
push eax
push dword [ebx + 0x10]
call fcn.0047a6a0
add esp, 0xc
cmp eax, 1
jne 0x487cf3
lea eax, [ebp - 0x1438]
push eax
call fcn.00416b00
mov ecx, dword [ebp - 0x1428]
mov esi, eax
mov eax, 0x3a
add ecx, 0x41
push 0x7fe
mov word [ebp - 0x140a], ax
lea eax, [ebp - 0x1408]
push 0
push eax
mov word [ebp - 0x140c], cx
call fcn.004e46b0
push dword [ebp - 0x142c]
lea eax, [ebp - 0x140c]
push eax
push esi
push dword [ebx + 0x10]
call fcn.00417060
push esi
call fcn.004ec0b7
add esp, 0x24
jmp 0x487cf3
cmp eax, 3
jne 0x487cf3
push 0x1ec
lea eax, [ebp - 0x1fc]
push 0
push eax
call fcn.004e46b0
push 0x208
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004e46b0
add esp, 0x18
lea eax, [ebp - 0x1fc]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x487cb5
lea eax, [ebp - 0x404]
push eax
push 0
push str.TempFile
lea eax, [ebp - 0x1fc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
lea eax, [ebp - 0x1438]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00416fb0
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x1fc]
push str.__createbyfile___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x1fc]
push eax
push dword [ebx + 0x10]
call fcn.004a9860
add esp, 0x1c
mov eax, dword [ebp - 0x1438]
test eax, eax
je 0x487d45
push dword [ebp - 0x1428]
lea ecx, [ebp - 0x1438]
push ecx
push dword [ebp - 0x1434]
push eax
call fcn.00403d30
mov ecx, dword [ebp - 0x1430]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1438]
add esp, 0x10
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x1438]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00405300
xor eax, eax
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.004e1f40
mov esp, ebp
pop ebp
ret 8