Function at 0x4802e0
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 0x48045a
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 0x480384
lea eax, [ebp - 0xc08]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x48038e
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 0x4803b8
xor ecx, ecx
jmp 0x4803d0
lea ecx, [ebp - 0xc08]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4803c1
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 0x480452
mov ecx, dword [ebp - 0x1424]
inc eax
cmp eax, 0x7fffffff
ja 0x4804c2
add eax, eax
cmp eax, 0x1000
jb 0x480449
test cl, 0x1f
jne 0x4804c2
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4804c2
sub ecx, eax
cmp ecx, 4
jb 0x4804c2
cmp ecx, 0x23
ja 0x4804c2
mov ecx, eax
push ecx
call fcn.00475290
add esp, 4
test edi, edi
jg 0x480353
push dword [ebp - 0x142c]
call dword [sym.imp.SHELL32.dll_DragFinish]
mov esi, 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 esi, esi
je 0x4804c7
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 0x4804ee
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 0x480593
test esi, esi
je 0x4806d4
lea eax, [ebp - 0xc08]
mov ecx, ebx
push eax
mov eax, dword [ebx]
push 0x40a
call dword [eax + 0x8c]
push eax
call fcn.00418340
lea eax, [ebp - 0xc08]
push eax
call fcn.00429ee0
add esp, 0xc
test eax, eax
jne 0x480545
push eax
push 1
push eax
mov ecx, ebx
call fcn.0047e210
mov ecx, ebx
call fcn.0047c880
jmp 0x4806d4
lea eax, [ebp - 0xc08]
push eax
call fcn.00428c00
add esp, 4
mov esi, eax
mov ecx, ebx
push esi
call fcn.00482040
mov edx, dword [ebx]
mov ecx, ebx
push eax
push 0x3ef
call dword [edx + 0x8c]
push eax
call fcn.00406850
call fcn.00421850
push esi
call fcn.00416d60
add esp, 0xc
call fcn.00421690
mov ecx, ebx
call fcn.0047c880
jmp 0x4806d4
cmp eax, 2
jne 0x480633
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 0x4806d4
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 0x4806d4
cmp eax, 3
jne 0x4806d4
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 0x480696
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 0x480726
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